[CPack] Prevent the modification of interpreter directives (#278)
* SWDEV-521309 - 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
* Correct the cmake format
[ROCm/rocprofiler-sdk commit: 0a227e6b9e]
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
50ed966153
Коммит
3d1b5eec37
@@ -196,6 +196,9 @@ endif()
|
||||
set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
|
||||
set(CPACK_RPM_PACKAGE_LICENSE "MIT")
|
||||
|
||||
# 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")
|
||||
# -------------------------------------------------------------------------------------- #
|
||||
#
|
||||
# Prepare final version for the CPACK use
|
||||
|
||||
Ссылка в новой задаче
Block a user