Bug 1252751 - Additional packages for "minimal buildroot" need to be installed to (re-)generate SRPM
Summary: Additional packages for "minimal buildroot" need to be installed to (re-)gene...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Copr
Classification: Community
Component: backend
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-12 08:13 UTC by Pavel Raiskup
Modified: 2015-08-12 09:35 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-08-12 09:35:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Pavel Raiskup 2015-08-12 08:13:58 UTC
Failed build log:
https://copr-be.cloud.fedoraproject.org/results/praiskup/rpm-config/fedora-23-x86_64/00108212-compat-rpm-config/mockchain.log.gz

Package 'compat-rpm-macros' needs to be installed before the SRPM is
generated, otherwise some SPEC macros are not defined.  Not sure whether the
SRPM shouldn't be generated in mock too.

This used to work (it is kind of usage regression) because (a) srpm was not
generated from dist-git before.

Comment 1 Miroslav Suchý 2015-08-12 09:35:03 UTC
You should use those macros conditionally. E.g.
  %{?scl_prefix}
Otherwise somebody else would not be able to generate that SRPM too.
And then you should include that package with macros in build time of binary RPM. Which is doable in Copr for months.


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