[systemd-devel] [patch] Fix AC_PATH_PROG usage in configure.ac for systems with (still) bin vs. sbin distiction
Samuli Suominen
ssuominen at gentoo.org
Sat Mar 8 00:17:30 PST 2014
This version of the patch is likely more agreeable. No reason to add
/usr/bin:/bin again to $PATH as it should be safe to expect at least
they are there,
or otherwise the system is really *broken*. :-)
On 08/03/14 09:52, Samuli Suominen wrote:
> If eg. setcap is in /sbin and user is building as a normal user without
> $PATH having /sbin, the build system
> will default to /usr/sbin/setcap as it's defined in AC_PATH_PROG and
> fail during the build with 'setcap: command not found'
>
> For example, my $PATH as normal user:
>
> $ echo $PATH
> /usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2
>
> I see Debian and Ubuntu carries a patch that changes these hardcoded
> paths to what they have, but that's equally
> unwise.
> And since sbin is by definion a superuser directory, and some
> distributions indeed still make this distiction, this
> patch is cheap to apply, no regressions to others.
>
> Ref, http://www.delorie.com/gnu/docs/autoconf/autoconf_41.html
>
> Thanks!
>
>
>
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Find-the-tools-for-users-with-no-sbin-usr-sbin-in-PA.patch
Type: text/x-patch
Size: 1423 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140308/1de1afee/attachment.bin>
More information about the systemd-devel
mailing list