Bug 339881

Summary: mikmod build fails in check-buildroot
Product: [Fedora] Fedora Reporter: Doug Chapman <dchapman>
Component: mikmodAssignee: Jindrich Novy <jnovy>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-24 11:41:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 163350    

Description Doug Chapman 2007-10-19 15:20:43 UTC
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:
/var/tmp/mikmod-3.2.2-2.fc8-root-mockbuild

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
check-buildroot step.


Version-Release number of selected component (if applicable):
mikmod-3.2.2-2.fc7.src.rpm


How reproducible:
100%

Steps to Reproduce:
* on a Fedora 8 system *
1. rpmbuild --rebuild -bb mikmod-3.2.2-2.fc7.src.rpm
2.
3.
  
Actual results:
+ /usr/lib/rpm/check-buildroot
Binary file
/var/tmp/mikmod-3.2.2-2.fc8-root-root/usr/lib/debug/usr/bin/mikmod.debug matches
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)


Expected results:
should build cleanly


Additional info:

Comment 1 Jindrich Novy 2007-10-22 11:06:32 UTC
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.

Comment 2 Jindrich Novy 2007-10-22 14:30:51 UTC
Review request for libmikmod submitted, bug 345261.

Comment 3 Jindrich Novy 2007-10-24 11:41:05 UTC
Fixed, libmikmod is now packaged separately and new mikmod built.