-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
rpm: Lack of magic files #22930
Comments
Required file named "rpm.magic" and located in source archive root. |
What command do I need to run to see this error message? |
I can't even compile rpm because it seems to want to build universal binaries but its library dependencies are not universal on my system. Looking at configure, it seems that some incantation of "--with-path-magic" would fix this, but I don't know exactly what. |
@jacknagel |
@t3hk0d3 Please provide a complete repro case; if additional files are needed, please gist them, etc. |
@adamv Its quite difficult task, because you have to literally recreate all workspace required for RPM package creation. I'll try my best to create mock for bug reproduction, but it will require some time. |
If you can't give us a minimal set of repro instructions, how will we know what change fixes the problem? |
@adamv |
It defaults to the bundled/internal version of file, had missed to configure the magic path properly. There's some examples in devtool.conf in CVS, but I will provide a proper (oneline) patch. Reproducer is to add an actual file to the sample package, I seem to forget this when testing. |
@afb Here is contents of my When i tried to put libmagic's file, i've got load of format errors. |
The important part is that the magic file matches the libmagic in use... That is, if using the internal "file" then the installed version and if using external "file" then the version from the file formula... |
@afb |
Test spec https://gist.github.com/afb/6821217 |
bump |
Pulled the fix. |
@jacknagel |
I can still reproduce the problem with latest rpm:
|
Latest version seems to want the file as brew upgrade libmagic |
I'm still running into this issue with a fresh brew installation. I'm not familiar with the details here but this looks like a problem:
Earlier in this issue someone mentioned that it requires the text format magic file? It looks like the one installed by lib magic is in a binary format. I'm not really sure how this relates to bash on OSX not supporting the --rpm-requires option like it does on RHEL variants?
|
@afb am I missing something or doing something wrong here? |
Having the same problem here. |
Can someone provide a simple, reproducible test case here and open a new issue with it? |
It's super easy actually. All you need is a spec file that has a |
Got one very simple that triggers the error. Use this spec file:
And run this in any directory:
If you uncomment the
|
Yeah I realized that this is not the right issue to post it on. |
@MikeMcQuaid: it used to have a "rpmbuild" test, but it got rebased away sometime (probably around the same time that my formula got renamed from rpm5 to rpm or so)... Test spec was at dc583fc, if anyone cares to revive it. |
@MikeMcQuaid i provided a simple reproducible case in the linked issue last year: |
Install log: https://gist.github.com/t3hk0d3/6756947
RPM version is lastest available in brew ATM.
The text was updated successfully, but these errors were encountered: