Re: Question about enable-absolute-paths option

From: Colin Booth <colin_at_heliocat.net>
Date: Mon, 3 Sep 2018 07:48:36 +0000

On Mon, Sep 03, 2018 at 12:46:10PM +0800, Shengjing Zhu wrote:
> On Mon, Sep 3, 2018 at 5:36 AM Guillermo <gdiazhartusch_at_gmail.com> wrote:
> > You don't need to do that. You *can* install the full set of execline
> > binaries in /usr/lib/execline using --enable-absolute-paths, (and you
> > should add --shebangdir=\$${prefix}/lib/execline too), just like in
> > your OP. Both s6 and s6-rc should work fine with it.
> >
> > I think currently only fdmove, fdclose and execlineb are called by s6
> > binaries, but you should't rely on a list of execline binaries that s6
> > uses. This list can change from release to release as the author
> > pleases.
> >
>
> Got it.
>
Another option is to pass an alternate --with-default-path to the
skalibs compilation that includes /usr/lib/execline. It isn't perfect
because you'll need to call emptyenv in order to flush the default
environment in stand-alone execline scripts, but it will work in a pinch
since all execline utilities will fail back to the compiled-in defaults
if $PATH is unavailable.

-- 
Colin Booth
Received on Mon Sep 03 2018 - 07:48:36 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC