I wrote a requires generator for `.qml` files, which converts import statements 
to RPM capabilities in the format

```
qt5qmlimport(QtQuick.Controls.2) >= 3
qt5qmlimport(QtQuick.Controls.Layouts.2) >= 3
```

This works as expected, but the dependency generator is called for each file, 
so they accumulate. If one file needs version `2.3` and another needs `2.4`, 
the final package has:

```
qt5qmlimport(QtQuick.Controls.2) >= 3
qt5qmlimport(QtQuick.Controls.2) >= 4
qt5qmlimport(QtQuick.Controls.Layouts.2) >= 3
qt5qmlimport(QtQuick.Controls.Layouts.2) >= 4
```

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.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1476
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to