[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
Fri Mar 7 23:52:03 PST 2014


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!


-------------- 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: 1507 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140308/8a0b613c/attachment-0001.bin>


More information about the systemd-devel mailing list