[Rpm-maint] [rpm-software-management/rpm] RFE: ignore BuildRequires with prefix 'external:' (#1100)

Miroslav Suchý notifications at github.com
Thu Mar 5 08:55:27 UTC 2020


Can you please ignore in rpmbuild all BuildRequires with prefix 'external:'? E.g.:

  BuildRequires: external:rubygem(foo)
  BuildRequires: external:pypi(bar)

Not everything is packaged as rpm. Sometimes you need one library, but transitively it requires a dozen other modules. While in Fedora/RHEL world you must package all these requirements, in the wild world e.g small shops, hackers can see this as a big obstacle. Especially when you can, in fact, install those modules using native utilities like pip or gem.

The actual work will be done in Mock. Everything we need is just that rpmbuild will ignore those dependencies. The semantics would be that if 'dnf builddep' returns 'external:rubygem(foo)' then Mock will run 'gem install foo' in the buildroot and then run rpmbuild. Rpmbuild will ignore this BR as it should be managed by layered tool (Mock in this case).

Note: I am talking just about build dependencies for now. Runtime dependencies are out of scope.
And I am not saying that this should be actually used in Packaging Guidelines. Just technically possible.

I would guess that we can filter it at:
https://github.com/rpm-software-management/rpm/blob/master/build/spec.c#L346

I am pretty fine if rpmbuild would print some warning when such BR are detected. But it should not be fatal.

-- 
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/1100
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200305/c145bdb2/attachment.html>


More information about the Rpm-maint mailing list