Prevent the modification of interpreter directives

CPACK is converting /usr/bin/env python3 to /usr/libexec/platform-python in RHEL8.
Undefining __brp_mangle_shebangs will prevent the same

Change-Id: I0803d0a6cc1ddc991e8e9a8e6617436930ef013a


[ROCm/rocminfo commit: aa8a83815e]
This commit is contained in:
Ranjith Ramakrishnan
2024-08-05 09:38:04 -07:00
zatwierdzone przez David Yat Sin
rodzic 75ca98570c
commit 6072326740
+3
Wyświetl plik
@@ -247,6 +247,9 @@ endif()
if ( ROCM_DEP_ROCMCORE )
string ( APPEND CPACK_RPM_PACKAGE_REQUIRES " rocm-core" )
endif()
# Cpack converts !/usr/bin/env python3 to /usr/libexec/platform-python in RHEL8.
# prevent the BRP(buildroot policy) script from checking and modifying interpreter directives
set(CPACK_RPM_SPEC_MORE_DEFINE "%undefine __brp_mangle_shebangs")
#Set rpm distro
if(CPACK_RPM_PACKAGE_RELEASE)