View Issue Details

IDProjectCategoryView StatusLast Update
0007416CentOS-7centos-releasepublic2016-11-23 06:39
ReporterMorten_Stevens Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version7.0-1406 
Summary0007416: dist tag issue for mock / epel-7-x86_64
DescriptionIf I request an epel-7 build on my local build machine CentOS adds a ".centos" tag to all rpms.

This is an issue for Fedora-EPEL maintainers.

For example:

mock -r epel-7-x86_64 --rebuild htop-1.0.3-3.el7.src.rpm

Result:

-rw-rw-r-- 1 mockbuild mock 407683 Jul 22 00:25 htop-1.0.3-3.el7.centos.src.rpm
-rw-rw-r-- 1 mockbuild mock 88400 Jul 22 00:25 htop-1.0.3-3.el7.centos.x86_64.rpm
-rw-rw-r-- 1 mockbuild mock 194936 Jul 22 00:25 htop-debuginfo-1.0.3-3.el7.centos.x86_64.rpm

Expected result:

No .centos tag!
Additional InformationI suspect that this is the problem:

https://git.centos.org/commitdiff/rpms!centos-release/c742ab5b7e192a189803546bb5d1c759c687fcbd
    
-%define dist .el%{dist_release_version}
+%define dist .el%{dist_release_version}.centos
TagsNo tags attached.
abrt_hash
URL

Activities

user1999

2014-07-22 09:43

  ~0020497

The release tag is defined on purpose as .el7.centos. You must override that in your build system if you want to use a different tag
adamb

adamb

2014-08-19 21:11

reporter   ~0020714

Adding this to /etc/mock/epel-7-x86_64 should resolve the problem:

  config_opts['macros']['%dist'] = '.el7'
toracat

toracat

2016-11-23 06:39

manager   ~0027979

This '.centos' tag was added as of CentOS 7.

In CentOS 6,

$ cat /etc/rpm/macros.dist
# dist macros.

%rhel 6
%centos 6
%centos_ver 6
%dist .el6
%el6 1

Issue History

Date Modified Username Field Change
2014-07-22 09:27 Morten_Stevens New Issue
2014-07-22 09:43 user1999 Note Added: 0020497
2014-08-19 21:11 adamb Note Added: 0020714
2014-09-22 14:25 user1999 Status new => closed
2014-09-22 14:25 user1999 Resolution open => no change required
2016-11-23 06:39 toracat Note Added: 0027979