Please do not redefine %_bindir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Building the fedora 9 cpio package for a distribution that puts install-info into /usr/bin (where it probably belongs - the info dir is in /usr/share so /usr is going to be mounted when you run it, and users can make there own info dir so it probably shouldn't be a /sbin or /usr/sbin binary, but anyway ...)

So - to port the rpm I needed to change the references to /sbin/install-info to %{_bindir}/install-info

After building, it would not install because - yup, the fedora spec file redefines %_bindir at the top of the spec file to /bin

Don't do that.

There should be a packaging guideline against that.
It impacts more than just the %configure macro and the %files section, which I assume is why it was done. It impacts anything else that uses %{_binder}

just add --bindir=/bin to the end of the %configure line and specify /bin/ in %files and don't redefine the filesystem path macros.

Thank you.

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux