From 551de2548eb856f78c5177ab982e706ebc9ae329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 18 Oct 2021 12:43:38 +0200 Subject: [PATCH] Rebuild with new RPM_LD_FLAGS redhat-rpm-config added annobin flags to build_ldflags (bug #1983727): $ rpm --eval '%{build_ldflags}' -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 perl needs to be rebuilt to pass them to XS modules: $ perl -e 'use Config; print $Config{ldflags}, qq{\n}' -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -L/usr/local/lib Without that annocheck reports on i686: Hardened: /usr/lib/perl5/vendor_perl/auto/JavaScript/Minifier/XS/XS.so: FAIL: stack-realign test because stack realign See and the next comment. --- perl.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl.spec b/perl.spec index 24a18fb..7151af4 100644 --- a/perl.spec +++ b/perl.spec @@ -100,7 +100,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: 481%{?dist} +Release: 482%{?dist} Summary: Practical Extraction and Report Language Url: https://www.perl.org/ Source0: https://www.cpan.org/src/5.0/perl-%{perl_version}.tar.xz @@ -6996,6 +6996,9 @@ popd # Old changelog entries are preserved in CVS. %changelog +* Mon Oct 18 2021 Petr Pisar - 4:5.34.0-482 +- Rebuild with new RPM_LD_FLAGS + * Thu Jul 22 2021 Fedora Release Engineering - 4:5.34.0-481 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild