| Summary: | app-arch/rpm - rpmbuild segfaults due to missing file | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Paul Winkler <stuff> |
| Component: | New packages | Assignee: | 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: | --- | |
*** This bug has been marked as a duplicate of bug 153292 *** 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? |
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.