From 17d5912d24bc7a42aaa5f47d44aec7ad7baa8152 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Thu, 11 Aug 2022 14:10:01 -0400 Subject: [PATCH] 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