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
这个提交包含在:
Ranjith Ramakrishnan 编写, David Yat Sin 于 2024-08-06 10:54:27 -04:00 提交
1 父节点 0600911f0b
当前提交 aa8a83815e
1 个文件已更改
+3
+3
查看文件
@@ -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)