What is rpmdeplint?
How does rpmdeplint task work?
Rpmdeplint task computes package dependencies of proposed updates and evaluates whether these dependencies are satisfied. The whole set of builds submitted to a certain repository (fedora, updates or updates-testing) is always considered together -- even though Bodhi update should be completely standalone, rpmdeplint will be able to find and resolve dependencies between individual updates, as long as they are submitted together (request to be pushed to the same repository at the same time).
At the moment, rpmdeplint task only decides whether each of the submitted builds is installable. This is equivalent to trying to install that build into a completely empty environment (no RPM packages pre-installed). If some other package build (that is already present in the target repository) gets broken as a result of this, that's not currently detected by this task. The detection is supported by the underlying rpmdeplint tool, it just hasn't been implemented yet in the task (stay tuned).
Looking at an example failure log, we see the following:
results: - arch: x86_64 item: wine-1.9.21-1.fc24 outcome: FAILED scenario: x86_64 type: koji_build nothing provides wine-mono = 4.6.3 needed by wine-1.9.21-1.fc24.i686 nothing provides wine-mono = 4.6.3 needed by wine-1.9.21-1.fc24.x86_64
Fortunately, the fixes for dependency errors tend to be relatively straight-forward and tend to fall into one of two categories listed below.
- Problems caused by your package
Examine any changes to
specfile. Ensure correct spelling of all dependencies and confirm that any changed requirements do resolve for the appropriate release. If the dependencies of your package have not changed, it's possible that other packages no longer satisfy the dependencies as expected.
dnf repoqueryis helpful to track dependencies.
- Problems caused by other package(s)
If your package failed because the dependencies of other packages changed (features they were providing changed or were removed), update the requirements of your package or consult with maintainers of the corresponding packages.
If you still don't understand why your update failed the test, if you think there's something wrong in our test or its documentation or if you have any other suggestions, please contact us.