Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 167943

Summary: app-arch/rpm - rpmbuild segfaults due to missing file
Product: Gentoo Linux Reporter: Paul Winkler <stuff>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Paul Winkler 2007-02-22 01:19:34 UTC
I'm just learning to create my own RPMs.
All was well until I tried to do:

 rpmbuild -ba foo.spec

... and got a segmentation fault.  strace revealed this:
open("/usr/lib/rpm/magic.mgc", O_RDONLY) = -1 ENOENT (No such file or directory)--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 10633 detached


After a bit of searching on the gentoo forums, I found out that the missing file is a copy of the magic.mgc file used by file(1).  So I just did this:

sudo ln -s /usr/share/misc/file/magic.mgc /usr/lib/rpm/magic.mgc

... and that fixed the segfault.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-22 01:23:10 UTC

*** This bug has been marked as a duplicate of bug 153292 ***
Comment 2 Paul Winkler 2007-02-22 01:28:31 UTC
Sorry about the duplicate!  Something is weird with bugzilla searches.  If you type rpmbuild into the search box at the bottom of most pages in bugzilla, you get zarro boogs. But if you go to the search page at 
http://bugs.gentoo.org/query.cgi and type in rpmbuild for "words", you find bugs.
WTF?