Red Hat Bugzilla – Bug 339881
mikmod build fails in check-buildroot
Last modified: 2013-07-02 19:23:15 EDT
Description of problem:
mikmod cannot be built under Fedora 8.
The mikmod spec file has some funny hacks which causes check-buildroot to fail
and therefore mikmod cannot be built. The root of the problem is the mikmod
source contains both libmikmod and also the mikmod binary which requires
libmikmod. Because of this there are hacks in the spec file that causes some
references in the binaries to the buildroot dir:
It seems the proper way to build mikmod would be to split it into 2 packages, a
libmikmod rpm and then a separate mikmod package that depends on libmikmod.
I assume we got away with this in the past because rpmbuild did not do the
Version-Release number of selected component (if applicable):
Steps to Reproduce:
* on a Fedora 8 system *
1. rpmbuild --rebuild -bb mikmod-3.2.2-2.fc7.src.rpm
Found '/var/tmp/mikmod-3.2.2-2.fc8-root-root' in installed files; aborting
error: Bad exit status from /var/tmp/rpm-tmp.3931 (%install)
should build cleanly
This error comes from the way how mikmod is linked against libmikmod, because
spec file tricks the compilation in the way that libmikmod is installed to a
buildroot and then mikmod links against the libmikmod in the buildroot what
causes that there are paths pointing to buildroot present in the mikmod executable.
The proper way how resolve this is likely to package libmikmod separately and BR
it from mikmod. It's shipped in a separate tarball anyway.
Review request for libmikmod submitted, bug 345261.
Fixed, libmikmod is now packaged separately and new mikmod built.