From bbf09b4fd751c19aebd4c8d58f4bdfbf71342a5e Mon Sep 17 00:00:00 2001 From: raramakr <91213141+raramakr@users.noreply.github.com> Date: Wed, 16 Apr 2025 18:21:09 -0700 Subject: [PATCH] SWDEV-504756 - Prevent the modification of interpreter directives (#168) CPACK is converting /usr/bin/env python3 to /usr/libexec/platform-python in RHEL8. This is resulting in dependency to platform-python Undefining __brp_mangle_shebangs will prevent the same [ROCm/rocprofiler-systems commit: 1c3616fcc2e1f30b5ee9ac08015219769e20fecd] --- projects/rocprofiler-systems/cmake/ConfigCPack.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/rocprofiler-systems/cmake/ConfigCPack.cmake b/projects/rocprofiler-systems/cmake/ConfigCPack.cmake index d767948375..663e3b0540 100644 --- a/projects/rocprofiler-systems/cmake/ConfigCPack.cmake +++ b/projects/rocprofiler-systems/cmake/ConfigCPack.cmake @@ -250,6 +250,7 @@ string(REPLACE ";" ", " _RPM_PACKAGE_REQUIRES "${_RPM_PACKAGE_REQUIRES}") set(CPACK_RPM_PACKAGE_REQUIRES ${_RPM_PACKAGE_REQUIRES} CACHE STRING "RPM package requires" FORCE) +set(CPACK_RPM_SPEC_MORE_DEFINE "%undefine __brp_mangle_shebangs") set(CPACK_RPM_PACKAGE_LICENSE "MIT") set(CPACK_RPM_FILE_NAME "RPM-DEFAULT") set(CPACK_RPM_PACKAGE_RELEASE_DIST ON)