[Rpm-maint] [rpm-software-management/rpm] RFE: add --norichdeps option/macro to fail a build when rich deeps are encountered (#460)

Jeff Johnson notifications at github.com
Thu Jun 28 17:08:00 UTC 2018


To make the implementation crystal clear:

1) make the allow_richdeps disabler in parseRCPOT() global

2) add a rpmbuild option --norichdeps to set the value of allow_richdeps to -1

3) initialize allow_richdeps from a configuration macro like %_rpmbuild_permit_richdeps with expected values -1, 0, 1

4) change the tests in parseRCPOT() to globally disable richdeps parsing when allow_richdeps is less than 1. You -- of course -- will have to change the logic in the case to not override the allow_richdeps value if already set.

5) configure the macro to -1, or add --norichdeps when invoking, and builds of specfilesrunning that use richdeps will always fail.

That simple disabler can be done quickly and easily, permitting builds using latest rpmbuild that can build specfiles that may (or may not) use richdeps.

I suspect you will need a mechanism like this if you are ever going to succeed back porting, not only EL7, but everywhere. Build masters need a simple control function to instantiated a "no rich depsolver please" policy

-- 
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/460#issuecomment-401106574
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180628/8e32c015/attachment.html>


More information about the Rpm-maint mailing list