Skip to contentSkip to conversation

RPM and libmagic

DISCUSSION Saul Wold 2 participants 2 messages Sep 26, 2011

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

Mark,

I recently found a problem with RPM and libmagic, specificly the rpmdeps command as it's used in package.bbclass. The issue being that it was not finding the correct magic.mgc file. I notice that we wrap the other RPM commands, but not rpmdeps.

Additionally, as I have discovered the wrappers that we have in place currently does not define a MAGIC environment variable to correct the location.

I know rpm and friends are an important part of OE packaging, so I wanted to check with you first about the correct location to set this, if we should use the MAGIC or pass a --define '%_rpmfc_magic_path ...' on the command line.

Please advise, I know you are traveling, and I can implement the change once we figure out the correct approach.

Thanks

Signature · 5 lines
    Sau!

Saul Wold
Yocto Component Wrangler @ Intel
Yocto Project / Poky Build System
#1 lore raw
Quoted 7 lines · Saul Wold

Mark,

I recently found a problem with RPM and libmagic, specificly the rpmdeps command as it's used in package.bbclass. The issue being that it was not finding the correct magic.mgc file. I notice that we wrap the other RPM commands, but not rpmdeps.

That is likely a bug.

Quoted 3 lines

Additionally, as I have discovered the wrappers that we have in place currently does not define a MAGIC environment variable to correct the location.

Is the proper variable "MAGIC" or is it's something else?

Quoted 4 lines

I know rpm and friends are an important part of OE packaging, so I wanted to check with you first about the correct location to set this, if we should use the MAGIC or pass a --define '%_rpmfc_magic_path ...' on the command line.

I believe the intention is to pass the _rpmfs_magic_path.. that patch can be made up of other potential dynamic results. If the wrapper is building up _librpm (something like that), then we can use:

%_rpmfc_magic_path %{_rpmlib}/../../share/magic

Note about is ramblings, not actual code.. ;)

Quoted 2 lines

Please advise, I know you are traveling, and I can implement the change once we figure out the correct approach.

Thanks.. if you need to call me +1-612-669-2612.

Quoted 2 lines

Thanks