From 357f950c28ce91540160a26f3a05a529c0ed142c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 20 Jan 2022 18:04:31 +0100 Subject: [PATCH] Remove package ELF note from the extension LDFLAGS Related: https://bugzilla.redhat.com/2043092 --- macros | 3 ++- redhat-rpm-config.spec | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/macros b/macros index 6049699..1bdd43a 100644 --- a/macros +++ b/macros @@ -104,7 +104,8 @@ local name = rpm.expand("%{1}") local value = " " .. rpm.expand("%{build_" .. name .. "}") local specs_pattern = "%s+-specs=[^%s]+" local lto_flags_pattern = rpm.expand("%{?_lto_cflags}"):gsub("[%-%.]", "%%%1") -local result = value:gsub(specs_pattern, " "):gsub(lto_flags_pattern, "") +local package_note_flags_pattern = "%-Wl,%S*package_note%S*" +local result = value:gsub(specs_pattern, " "):gsub(lto_flags_pattern, ""):gsub(package_note_flags_pattern, "") print(result) } diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 97e620b..c9b0532 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 209 +Version: 210 Release: 1%{?dist} # No version specified. License: GPL+ @@ -191,6 +191,10 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %doc buildflags.md %changelog +* Thu Jan 20 2022 Miro Hrončok - 210-1 +- Remove package ELF note from the extension LDFLAGS +- Related: rhbz#2043092 + * Thu Jan 13 2022 Zbigniew Jędrzejewski-Szmek - 209-1 - Add package ELF note to the default LDFLAGS