SWDEV-504756 - Prevent the modification of python interpreter directives (#27)

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

[ROCm/rocm-core commit: 0d7160da9a]
This commit is contained in:
Ramakrishnan, Ranjith authored and GitHub committed 2025-06-18 09:27:05 -07:00
1 parent 701bbf5126
commit 311f83e921
1 file changed
+3
+3
View File
@@ -263,6 +263,9 @@ if ( PROC_RESULT EQUAL "0" AND NOT EVAL_RESULT STREQUAL "" )
endif()
message(STATUS "Using CPACK_RPM_PACKAGE_RELEASE: ${CPACK_RPM_PACKAGE_RELEASE}")
set ( CPACK_RPM_FILE_NAME "RPM-DEFAULT" )
# #!/usr/bin/env is converted to /usr/libexec/platform-python in some OS like RHEL
# Prevent the modification of python interpreter directives in runpath_to_rpath.py
set( CPACK_RPM_SPEC_MORE_DEFINE "\n%undefine __brp_mangle_shebangs")
# Debian Lintian Fix - Add Dependency for Python Script delivered
set( DEB_DEPENDS_STRING "python3, libc6 (>= 2.34)" )