From d4f4ca8963018239daef4ecc81b0536ad52d449d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 16 Oct 2016 21:16:43 +0000 Subject: Implement --enable-absolute-paths --- INSTALL | 2 +- Makefile | 11 +++++------ configure | 25 +++++++++++++------------ doc/s6-linux-init-maker.html | 4 ++-- package/targets.mak | 4 +--- 5 files changed, 22 insertions(+), 24 deletions(-) diff --git a/INSTALL b/INSTALL index 74bb27f..02867d9 100644 --- a/INSTALL +++ b/INSTALL @@ -32,7 +32,7 @@ scripts will not run properly on another OS. ./configure && make && sudo make install will work for most users. - It will install the s6-linux-init-maker binary in /sbin. + It will install the binaries in /bin. You can strip the binaries and libraries of their extra symbols via "make strip" before the "make install" phase. It will shave a few bytes diff --git a/Makefile b/Makefile index 67fb474..bffc468 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,7 @@ RANLIB := $(CROSS_COMPILE)ranlib STRIP := $(CROSS_COMPILE)strip INSTALL := ./tools/install.sh -ALL_BINS := $(LIBEXEC_TARGETS) $(BIN_TARGETS) $(SBIN_TARGETS) +ALL_BINS := $(LIBEXEC_TARGETS) $(BIN_TARGETS) ALL_LIBS := $(SHARED_LIBS) $(STATIC_LIBS) $(INTERNAL_LIBS) ALL_INCLUDES := $(wildcard src/include/$(package)/*.h) @@ -78,11 +78,10 @@ ifneq ($(strip $(ALL_BINS)$(SHARED_LIBS)),) exec $(STRIP) -R .note -R .comment -R .note.GNU-stack $(ALL_BINS) $(SHARED_LIBS) endif -install: install-dynlib install-libexec install-bin install-sbin install-lib install-include +install: install-dynlib install-libexec install-bin install-lib install-include install-dynlib: $(SHARED_LIBS:lib%.so.xyzzy=$(DESTDIR)$(dynlibdir)/lib%.so) install-libexec: $(LIBEXEC_TARGETS:%=$(DESTDIR)$(libexecdir)/%) install-bin: $(BIN_TARGETS:%=$(DESTDIR)$(bindir)/%) -install-sbin: $(SBIN_TARGETS:%=$(DESTDIR)$(sbindir)/%) install-lib: $(STATIC_LIBS:lib%.a.xyzzy=$(DESTDIR)$(libdir)/lib%.a) install-include: $(ALL_INCLUDES:src/include/$(package)/%.h=$(DESTDIR)$(includedir)/$(package)/%.h) install-data: $(ALL_DATA:src/etc/%=$(DESTDIR)$(datadir)/%) @@ -94,7 +93,7 @@ $(DESTDIR)$(exthome): $(DESTDIR)$(home) update: $(DESTDIR)$(exthome) -global-links: $(DESTDIR)$(exthome) $(SHARED_LIBS:lib%.so.xyzzy=$(DESTDIR)$(sproot)/library.so/lib%.so.$(version_M)) $(BIN_TARGETS:%=$(DESTDIR)$(sproot)/command/%) $(SBIN_TARGETS:%=$(DESTDIR)$(sproot)/command/%) +global-links: $(DESTDIR)$(exthome) $(SHARED_LIBS:lib%.so.xyzzy=$(DESTDIR)$(sproot)/library.so/lib%.so.$(version_M)) $(BIN_TARGETS:%=$(DESTDIR)$(sproot)/command/%) $(DESTDIR)$(sproot)/command/%: $(DESTDIR)$(home)/command/% exec $(INSTALL) -D -l ..$(subst $(sproot),,$(exthome))/command/$(&3 3>&- diff --git a/doc/s6-linux-init-maker.html b/doc/s6-linux-init-maker.html index cc18bf4..426896b 100644 --- a/doc/s6-linux-init-maker.html +++ b/doc/s6-linux-init-maker.html @@ -326,7 +326,7 @@ absolutely necessary for s6-linux-utils binaries to be accessible via initial_path, else the machine will not boot. Default is -/usr/bin:/usr/sbin:/bin:/sbin.

+/usr/bin:/bin.

  • -m initial_umask : the value of the initial file umask for all the starting processes, in octal. @@ -360,7 +360,7 @@ variables into the env_store directory, via the program, before erasing them. env_store should obviously be a writable directory, so it should be located under tmpfsdir! If this option is not given (which is the default), the environment -inherited from the kernel isn't saved anywhere.
  • +inherited from the kernel isn't saved anywhere.

  • -e initial_envvar : this option can be repeated. For every initial_envvar, s6-linux-init-maker diff --git a/package/targets.mak b/package/targets.mak index 83ed8c5..26ef489 100644 --- a/package/targets.mak +++ b/package/targets.mak @@ -1,6 +1,4 @@ -BIN_TARGETS := - -SBIN_TARGETS := \ +BIN_TARGETS := \ s6-linux-init-maker \ s6-halt \ s6-poweroff \ -- cgit v1.3.1