New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redundant requires from generators are not merged #1476
Comments
rpm needs to assign dependencies to files so that 'rpm -q --filerequire' works. So it can't simply drop dependencies. In case you're wondering: rpm does this to ignore dependencies for files that are not installed, e.g. because they have the wrong file color. |
(At least I thought it does that. Maybe that just was wishful thinking...) |
I see. For this case at least the mapping is not really useful. How did this work with the old dep generators? Not at all, I assume? |
Pretty much not at all, since RPM shelled out to a program which then returned a blob of text it stored as dependency information. |
While there is work to do in the dependency generation department I don't see us merging those dependencies as they are per file. Closing. |
I wrote a requires generator for
.qml
files, which converts import statements to RPM capabilities in the formatThis works as expected, but the dependency generator is called for each file, so they accumulate. If one file needs version
2.3
and another needs2.4
, the final package has:The dependency generator is smart enough to only print the highest required version, but that can only work if it's fed with all files inside each package. That doesn't seem to be possible without using the external dep generator...
Would it be possible to merge those in RPM itself? Or even better, introduce a flag so that the generator is called only once for each package? That would also provide a speedup.
The text was updated successfully, but these errors were encountered: