Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1517519 - Please add chroot CentOS 7.4 to Copr
Summary: Please add chroot CentOS 7.4 to Copr
Alias: None
Product: Copr
Classification: Community
Component: backend
Version: unspecified
Hardware: Unspecified
OS: Linux
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2017-11-26 11:19 UTC by Patsev Anton
Modified: 2017-11-27 03:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-11-27 03:03:44 UTC

Attachments (Terms of Use)

Description Patsev Anton 2017-11-26 11:19:56 UTC
Description of problem:
Dont have chroot CentOS 7.4 in Copr

I try build rpm for CentOS 7.4 and get failed

I try build rpm for CentOS 7 and get succeeded

Comment 1 Pavel Raiskup 2017-11-26 15:00:46 UTC
There certainly is 7.4 buildroot, but:

The cgit(dist-git) links seem to be broken :( so I can not cite the proper
line..  So here:

 19 %if 0%{?rhel} == 7
 20 BuildRequires: redhat-lsb-core
 21 %define _group System Environment/Daemons
 22 %define epoch 1
 23 Epoch: %{epoch}
 24 Requires(pre): shadow-utils
 25 Requires: systemd
 26 BuildRequires: systemd
 27 %define os_minor %(lsb_release -rs | cut -d '.' -f 2)
 28 %if %{os_minor} >= 4

During some parts of the package build, the lsb_release is not available,
so you should s/%{os_minor}/0%{os_minor}/.

 29 Requires: openssl >= 1.0.2
 30 BuildRequires: openssl-devel >= 1.0.2
 31 %define dist .el7_4
 32 %else
 33 Requires: openssl >= 1.0.1
 34 BuildRequires: openssl-devel >= 1.0.1
 35 %define dist .el7

Btw., why not to depend on openssl-devel (without specific version)
and don't re-define the %dist?

 36 %endif
 37 %endif

Comment 2 Patsev Anton 2017-11-27 03:03:44 UTC
RPM is not my.

[root@centos-7-4 ~]# cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core) 

sh: lsb_release: command not found
error: /root/rpmbuild/SPECS/nginx.spec:28: bad %if condition

Thank you

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