-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/03/2016 09:35 AM, Petr Pisar wrote: > On 2016-02-02, Florian Weimer <fweimer@xxxxxxxxxx> wrote: >> May packages assume that /usr/sbin is on PATH when they are built? >> >> If you need a program which is currently only in /usr/sbin, should a >> package use an absolute path, or reset PATH to include /usr/sbin? >> > When I was small, I was tought that sbin is for programs executed by > superuser, therefore only root user's login shell adds sbin into PATH. > > Thus the question boils down to: What user does build the package? > > But I can forsee the answer for `Does Fedora support building packages as > non-root?' The answer is `defined by koji^Wimplementation'. So does not > have answer. > > I would call the programs by absolute path. > Koji/mock will only build as a non-root user. That said, we have a specific RPM macro for this: %{_sbindir}, which should be used for calling sbin binaries. (Ditto %{_bindir} for /usr/bin binaries). -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlayEkAACgkQeiVVYja6o6Nv6ACgnWLvpEdcKuYp5pDeWuJR4BYF QDoAn02L/4yozYcgP3CcCcxPD9YI9v/n =sEB5 -----END PGP SIGNATURE----- -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx