perl-devel requires redhat-rpm-config because of hardened compiler profiles

$Config{ccflags} inherits
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 from perl.spec build
time. That breaks building XS modules if redhat-rpm-config is not
installed.
This commit is contained in:
Petr Písař 2018-04-19 17:04:47 +02:00
parent 8ee4862e56
commit 150a309e82
1 changed files with 10 additions and 1 deletions

View File

@ -81,7 +81,7 @@ License: GPL+ or Artistic
Epoch: %{perl_epoch}
Version: %{perl_version}
# release number must be even higher, because dual-lived modules will be broken otherwise
Release: 411%{?dist}
Release: 412%{?dist}
Summary: Practical Extraction and Report Language
Url: http://www.perl.org/
Source0: http://www.cpan.org/src/5.0/perl-%{perl_version}.tar.bz2
@ -504,6 +504,11 @@ Requires: perl(ExtUtils::ParseXS)
Requires: %perl_compat
# Match library and header files when downgrading releases
Requires: perl-libs%{?_isa} = %{perl_epoch}:%{perl_version}-%{release}
# Compiler and linker options stored into perl and used when building XS
# modules refer to hardering profiles like
# /usr/lib/rpm/redhat/redhat-hardened-cc1 that are delivered by
# redhat-rpm-config. Bug #1557667.
Requires: redhat-rpm-config
%if %{defined perl_bootstrap}
%gendep_perl_devel
%endif
@ -5187,6 +5192,10 @@ popd
# Old changelog entries are preserved in CVS.
%changelog
* Thu Apr 19 2018 Petr Pisar <ppisar@redhat.com> - 4:5.26.2-412
- perl-devel requires redhat-rpm-config because of hardened compiler profiles
(bug #1557667)
* Mon Apr 16 2018 Petr Pisar <ppisar@redhat.com> - 4:5.26.2-411
- 5.26.2 bump