Bug 1532 - libmagic (via RPM) looks to the host filesystem for the magic file
Summary: libmagic (via RPM) looks to the host filesystem for the magic file
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: High major
Target Milestone: 1.1
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-09-27 10:58 UTC by Saul Wold
Modified: 2011-09-28 16:47 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.