On 09/03/14 21:49, Michael Biebl wrote: > 2014-03-08 8:52 GMT+01:00 Samuli Suominen <ssuomi...@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 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel