From 43176a8c6f54d7d68bb208e5bae2c89e73300b5b Mon Sep 17 00:00:00 2001 From: Dave Page Date: Tue, 23 Nov 2021 10:57:20 +0000 Subject: [PATCH] Don't generate build-id links in RPMs. Fixes #7013 We don't ship debuginfo RPMs so they're of no use, and can cause conflicts. --- pkg/redhat/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/redhat/build.sh b/pkg/redhat/build.sh index a7ea4c9a7..2991a6eb3 100755 --- a/pkg/redhat/build.sh +++ b/pkg/redhat/build.sh @@ -41,6 +41,7 @@ echo "Creating the server package..." cat << EOF > "${BUILDROOT}/server.spec" %global __requires_exclude_from ^/.*$ %global __provides_exclude_from ^/.*$ +%global _build_id_links none # Bytecompiling Python 3 doesn't work on RHEL/CentOS 7, so make it a no-op %if 0%{?rhel} && 0%{?rhel} == 7 @@ -84,6 +85,7 @@ echo "Creating the desktop package..." cat << EOF > "${BUILDROOT}/desktop.spec" %global __requires_exclude_from ^/.*$ %global __provides_exclude_from ^/.*$ +%global _build_id_links none %undefine __brp_mangle_shebangs %undefine __brp_ldconfig @@ -131,6 +133,7 @@ echo "Creating the web package..." cat << EOF > "${BUILDROOT}/web.spec" %global __requires_exclude_from ^/.*$ %global __provides_exclude_from ^/.*$ +%global _build_id_links none %undefine __brp_mangle_shebangs %undefine __brp_ldconfig @@ -178,6 +181,7 @@ echo "Creating the meta package..." cat << EOF > "${BUILDROOT}/meta.spec" %global __requires_exclude_from ^/.*$ %global __provides_exclude_from ^/.*$ +%global _build_id_links none %undefine __brp_mangle_shebangs %undefine __brp_ldconfig