[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
Sun Mar 9 12:49:39 PDT 2014


On 09/03/14 21:49, Michael Biebl wrote:
> 2014-03-08 8:52 GMT+01:00 Samuli Suominen <ssuominen at gentoo.org>:
>> 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.
> We do patch those defaults so we don't have to actually build-depend
> on all those packages.
> Your patch doesn't really help with that.
>

That's true...

Still, the patch is the correct thing to do, otherwise building systemd
on a box without superuser's $PATH causes
misconfigures, and it'd be weird to require root privileges for an
userspace application like this,
when even kernel is recommended to be built as normal user

- Samuli


More information about the systemd-devel mailing list