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.
On Sat, 2008-09-27 at 21:07 -0700, Michael A. Peters wrote:
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.
A lot of ancient Fedora packages that date back to the RHL era do things like this. We can add this to the guidelines (and perhaps we should), but in the majority of cases like this, it will do nothing to fix the actual packages which are brain-damaged like this.
If you have not already done so, please file a bug against the Fedora cpio package.
~spot
On Sat, 2008-09-27 at 21:07 -0700, Michael A. Peters wrote:
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 ...)
install-info belongs into /sbin or /usr/sbin, to keep it out of an ordinary user's $PATH.
So - to port the rpm I needed to change the references to /sbin/install-info to %{_bindir}/install-info
Don't do this. Your package MUST comply to the Fedora conventions.
Ralf
packaging@lists.fedoraproject.org