mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
autobuild: Only enable rust build if cargo exists
We need to do this to prevent CI systems which are missing cargo (Debian) from attempting to configure with Rust. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
549f67a9e6
commit
24710a5f4e
@ -19,6 +19,7 @@ from email.mime.multipart import MIMEMultipart
|
||||
from sysconfig import get_path
|
||||
import platform
|
||||
import ssl
|
||||
import shutil
|
||||
|
||||
def get_libc_version():
|
||||
import ctypes
|
||||
@ -177,12 +178,13 @@ builddirs = {
|
||||
ctdb_configure_params = " --enable-developer ${PREFIX}"
|
||||
samba_configure_params = " ${ENABLE_COVERAGE} ${PREFIX} --with-profiling-data"
|
||||
|
||||
# We cannot configure himmelblau on old systems missing openssl 3 or with glibc
|
||||
# older than version 2.32.
|
||||
# We cannot configure himmelblau on old systems missing openssl 3, with glibc
|
||||
# older than version 2.32, or when cargo isn't available.
|
||||
himmelblau_configure_params = ''
|
||||
rust_configure_param = ''
|
||||
glibc_vers = float('.'.join(get_libc_version().split('.')[:2]))
|
||||
if glibc_vers >= 2.32:
|
||||
cargo = shutil.which('cargo')
|
||||
if glibc_vers >= 2.32 and cargo != None:
|
||||
rust_configure_param = ' --enable-rust'
|
||||
if ssl.OPENSSL_VERSION_INFO[0] >= 3 and rust_configure_param:
|
||||
himmelblau_configure_params = rust_configure_param + ' --with-himmelblau'
|
||||
|
Loading…
x
Reference in New Issue
Block a user