From 05bceac0728bd30594ea78258f693a7a89d7a790 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Thu, 11 Aug 2022 13:38:26 -0400 Subject: [PATCH 1/2] Prevent rpmbuild from checking and modifying interpreter directives --- xCAT-server/xCAT-server.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index e95b0b69d..0823f2a1f 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -28,6 +28,9 @@ AutoReqProv: no # Define a different location for various httpd configs in s390x mode %define httpconfigdir %(if [ "$s390x" = "1" ];then echo "xcathttpdsave"; else echo "xcat"; fi) +# Disable shebang mangling of python scripts +%undefine __brp_mangle_shebangs + # AIX will build with an arch of "ppc" # also need to fix Requires for AIX %ifos linux From 17d5912d24bc7a42aaa5f47d44aec7ad7baa8152 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Thu, 11 Aug 2022 14:10:01 -0400 Subject: [PATCH 2/2] Prevent rpmbuild from checking and modifying interpreter directives2 --- xCAT-openbmc-py/xCAT-openbmc-py.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-openbmc-py/xCAT-openbmc-py.spec b/xCAT-openbmc-py/xCAT-openbmc-py.spec index 563b34a2a..a323b5d8a 100644 --- a/xCAT-openbmc-py/xCAT-openbmc-py.spec +++ b/xCAT-openbmc-py/xCAT-openbmc-py.spec @@ -12,6 +12,9 @@ Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} Prefix: /opt/xcat BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root +# Disable shebang mangling of python scripts +%undefine __brp_mangle_shebangs + %ifnos linux AutoReqProv: no %endif