This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Github .
Bug 973582 - rpm: fail build if depgenerator exits with non zero code
Summary: rpm: fail build if depgenerator exits with non zero code
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Festi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-12 09:10 UTC by Stanislav Ochotnicky
Modified: 2023-11-23 15:17 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-11-23 15:17:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github   rpm-software-management rpm issues 1183 0 None open RPM generators errors are ignored 2023-11-23 15:17:36 UTC

Description Stanislav Ochotnicky 2013-06-12 09:10:35 UTC
rpm runs depgenerators and uses their output to produce provides/requires. However depgenerator has no way to stop the build if the package contains packaging problems. One such problem is files being put in incorrect subpackage (see bug 973304).

Depgenerator is the only phase of build that has access to mapping between files and subpackages and any checks that could be done, have to be done there. 

I would like to ask if rpm could honor exit codes of generators and fail whole build if they exit with non-zero code. This way we would catch packaging problems early instead of late when dependencies are being pulled.

Obviously there are ways this could break buildroots (but there are multiple ways to do that already). A simple suggestion would be that for rpmbuild to honor depgenerator exit code there has to be output of length XXX on stderr. That way we can force depgenerators to describe why the build is failing.

Version-Release number of selected component (if applicable):
rpm-4.10.3.1-1.fc18.x86_64 (but I assume this is true of trunk as well)

Comment 1 Fedora End Of Life 2013-09-16 14:09:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora20

Comment 2 Fedora End Of Life 2015-05-29 09:07:03 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Alexander Kurtakov 2021-04-23 11:33:34 UTC
It's time to accept that the time for this one is gone. Being one of the original packagers hit by it I have no more memory what is it for anymore. World has moved on.

Comment 4 Mikolaj Izdebski 2021-04-28 10:11:20 UTC
Reopening, this is still valid request. Javapackages tools contain workarounds for this issue.


Note You need to log in before you can comment on or make changes to this bug.