rpmbuild-order: Order RPM packages by dependencies

[ bsd3, distribution, library, program ] [ Propose Tags ]

The rpmbuild-order tool orders RPM packages by dependencies, so that they can be built in the correct order. It does this by reading RPM package spec files and then topologically sorts them according to their dependencies. The code originates from cabal-sort by Henning Thielemann. It can also output the ordered dependencies or reverse depends for one or more packages, provided all the packages are checked out in neighbouring directories. This is also useful to see what packages are affected when a low-level package changes.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.2, 0.2.1, 0.3, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.4.2.1, 0.4.3, 0.4.3.1, 0.4.3.2, 0.4.4, 0.4.4.1, 0.4.5, 0.4.6, 0.4.6.1, 0.4.7, 0.4.8, 0.4.9, 0.4.10, 0.4.11 (info)
Change log ChangeLog
Dependencies base (<5), Cabal, containers, directory, explicit-exception, fgl, filepath, process, transformers [details]
License BSD-3-Clause
Copyright 2010-2018 Henning Thielemann, 2018 Jens Petersen <petersen@redhat.com>
Author Henning Thielemann <haskell@henning-thielemann.de>
Maintainer Jens Petersen <petersen@redhat.com>
Category Distribution
Home page https://github.com/juhp/rpmbuild-order
Bug tracker https://github.com/juhp/rpmbuild-order/issues
Source repo head: git clone https://github.com/juhp/rpmbuild-order
Uploaded by JensPetersen at 2018-07-23T07:14:47Z
Distributions Fedora:0.4.10, LTSHaskell:0.4.11, Stackage:0.4.11
Reverse Dependencies 1 direct, 0 indirect [details]
Executables rpmbuild-order
Downloads 5108 total (86 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2018-07-23 [all 2 reports]

Readme for rpmbuild-order-0.1

[back to package description]

Build Status

rpmbuild-order

This package based on code from cabal-sort, sorts rpm package spec files by build order.

$ rpmbuild-order --help
$ rpmbuild-order sort mycore mylib myapp
mylib
mycore
myapp

The arguments passed can either be directories named after the package, or spec files.

By default it outputs the package names, but it can also output the spec filenames or directory paths for easier scripting.

Using the rpmbuild-order deps and rdeps commands the ordered dependencies and reverse dependencies of a package can be obtained from the current set of checked out package sources.

Known problems

Given packages A, B, C, where C depends on B, and B depends on A, and you call

rpmbuild-order C.spec A.spec

then the output may be wrong if C does not have a direct dependency on A. Even if the order is correct, B is missing in the output and thus in this case the list of packages cannot be reliably used for a sequence of builds.