rpm packaging: account for fedora > 31
RocksDB failed to package on fedora 32 and 33 with *** ERROR: ambiguous python shebang in /usr/bin/myrocks_hotbackup: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
This commit is contained in:
parent
7e9bc7bf4e
commit
bafec28e43
@ -247,7 +247,7 @@ ELSEIF(RPM MATCHES "sles")
|
||||
"mariadb-server = %{version}-%{release}"
|
||||
)
|
||||
ENDIF()
|
||||
IF(RPM MATCHES "fedora31" OR RPM MATCHES "(rhel|centos)8")
|
||||
IF(RPM MATCHES "fedora" OR RPM MATCHES "(rhel|centos)8")
|
||||
SET(PYTHON_SHEBANG "/usr/bin/python3" CACHE STRING "python shebang")
|
||||
ENDIF()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user