Skip to contentSkip to conversation

execline: restore --shebangdir configure option

PATCH New Eric Le Bihan 3 participants 3 messages Jul 7, 2017 – Jul 8, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 execline: restore --shebangdir configure option

Passing the option --shebangdir=/usr/bin to the configuration script adds the CPP definition EXECLINE_SHEBANGPREFIX to execline-x.y.z/src/include/execline/config.h. It is used by s6-rc-compile from the s6-rc package to set the path to the execline interpreter in the scripts it generates.

So, when building the host variant of execline, this path will be used in the target service scripts generated by the host variant of s6-rc-compile. If not forced to /usr/bin, the location of the execline interpreter on the target, it will default to $(HOST_DIR)/bin thus leading to non-working scripts on the target.

So, restore this option for the host variant.

---
 package/execline/execline.mk | 3 +++
 1 file changed, 3 insertions(+)
package/execline/execline.mk +3 -0
index d3d69a8..576f11c 100644
@@ -44,8 +44,11 @@ endef
 
 HOST_EXECLINE_DEPENDENCIES = host-skalibs
 
+# Set --shebangdir to /usr/bin, as this value is used by the host variant of
+# s6-rc when generating execline scripts for the target.
 HOST_EXECLINE_CONF_OPTS = \
 	--prefix=$(HOST_DIR) \
+	--shebangdir=/usr/bin \
 	--with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \
 	--with-include=$(HOST_DIR)/include \
 	--with-dynlib=$(HOST_DIR)/lib \
Signature · 1 line
2.9.4
#1 lore raw

PATCH 1/1 execline: restore --shebangdir configure option

Quoted 24 lines · Eric Le Bihan

Passing the option --shebangdir=/usr/bin to the configuration script adds the CPP definition EXECLINE_SHEBANGPREFIX to execline-x.y.z/src/include/execline/config.h. It is used by s6-rc-compile from the s6-rc package to set the path to the execline interpreter in the scripts it generates.

So, when building the host variant of execline, this path will be used in the target service scripts generated by the host variant of s6-rc-compile. If not forced to /usr/bin, the location of the execline interpreter on the target, it will default to $(HOST_DIR)/bin thus leading to non-working scripts on the target.

So, restore this option for the host variant.

---
 package/execline/execline.mk | 3 +++
 1 file changed, 3 insertions(+)
package/execline/execline.mk +0 -0
index d3d69a8..576f11c 100644

package/execline/execline.mk endef · line 48

Quoted 5 lines
package/execline/execline.mk +2 -0
@@ -44,8 +44,11 @@ endef
 
 HOST_EXECLINE_DEPENDENCIES = host-skalibs
 
+# Set --shebangdir to /usr/bin, as this value is used by the host variant of
+# s6-rc when generating execline scripts for the target.

A comment that clarifies it! Excellent! And indeed, execline is installed in
/usr/bin, so

Regards,
Arnout

Quoted 7 lines
package/execline/execline.mk +1 -0
 HOST_EXECLINE_CONF_OPTS = \
 	--prefix=$(HOST_DIR) \
+	--shebangdir=/usr/bin \
 	--with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \
 	--with-include=$(HOST_DIR)/include \
 	--with-dynlib=$(HOST_DIR)/lib \
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH 1/1 execline: restore --shebangdir configure option

In reply to Eric Le Bihan
Quoted 14 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Le Bihan <[email protected]> writes:

Passing the option --shebangdir=/usr/bin to the configuration script adds the CPP definition EXECLINE_SHEBANGPREFIX to execline-x.y.z/src/include/execline/config.h. It is used by s6-rc-compile from the s6-rc package to set the path to the execline interpreter in the scripts it generates.

So, when building the host variant of execline, this path will be used in the target service scripts generated by the host variant of s6-rc-compile. If not forced to /usr/bin, the location of the execline interpreter on the target, it will default to $(HOST_DIR)/bin thus leading to non-working scripts on the target.

Quoted 3 lines

So, restore this option for the host variant.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard