From 150a309e8267d441a68c16e6077f27a04b8862e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 19 Apr 2018 17:04:47 +0200 Subject: [PATCH] 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. --- perl.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/perl.spec b/perl.spec index 13718ed..1076ef6 100644 --- a/perl.spec +++ b/perl.spec @@ -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 - 4:5.26.2-412 +- perl-devel requires redhat-rpm-config because of hardened compiler profiles + (bug #1557667) + * Mon Apr 16 2018 Petr Pisar - 4:5.26.2-411 - 5.26.2 bump