Bug 1532

Summary: libmagic (via RPM) looks to the host filesystem for the magic file
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Saul Wold <sgw>
Component: devtools / tool chainAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: High CC: mark.hatle, meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Saul Wold 2011-09-27 10:58:17 UTC
rpm has a hard-coded path to /usr/share/misc/magic for looking for the magic file, this should not be hard coded.

Also a number of /usr/lib/rpm/binaries need wrappers in order to redirect where they get their macros from.

This fix for this is to change the macro's file definitin of %_rpmfc_magic_path from /usr/share/misc/magic to %{_usrlibrpm}/../../share/misc/magic, and then ensure that the rpm-native binaries all have wrappers so that usrlibrpm is defined correctly.

Thanks to Mark Hatle for helping with this.