On Thu, Jul 26, 2018 at 7:29 AM Jens-Ulrik Petersen <petersen@redhat.com> wrote:

This is an early announcement about a tool called 'rpmbuild-order' I made to sort RPM-based packages in build dependency order. I am not sure if such a tool exists already?  Certainly some tools like `mockchain` can already order builds in this way, but I don't know of such a standalone utility.


It works by reading the BRs in spec files of the packages you want to build, generating a graph of their interdependencies internally, from which it outputs the packages in a build dependency order. If you have a complete family of packages checked out, it can also output the dependencies or reverse dependency of any of the packages.

You can try it from my copr repo:

Let me know if you if it works for you or you find any problems.
I have tested it lightly a set of about 400 packages. There are probably optimization that could be made.  I feel it would be good to do mass-rebuilds for example in dependency order perhaps.

Well, the main problem would be that it's written in Haskell which makes it impossible for me to contribute ;)

So… Since I have hard times understanding code, I will just ask questions here:
* Does it use libsolv? I guess not.
* Does it handle rich dependencies? I guess not.
* How does it know Provides if package is not built yet?
* How does it handle conditions in specs?

Note that mizdebsk already had such tool for quite some time.

Also, I am planning to add this package to Fedora: before doing that I am open to suggestions for alternative names for the tool - I couldn't really think of a better one..

Cheers, Jens

devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/ECWHXZHDJ5UEPTLRHGYYGN65EW7Y6GRU/

-Igor Gnatenko