1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

autobuild: Only configure himmelblau if openssl >= 3

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
David Mulder 2024-08-27 15:39:36 -06:00
parent 986e398887
commit 882a761a50

View File

@ -18,6 +18,7 @@ from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart from email.mime.multipart import MIMEMultipart
from sysconfig import get_path from sysconfig import get_path
import platform import platform
import ssl
import logging import logging
@ -169,6 +170,12 @@ builddirs = {
ctdb_configure_params = " --enable-developer ${PREFIX}" ctdb_configure_params = " --enable-developer ${PREFIX}"
samba_configure_params = " ${ENABLE_COVERAGE} ${PREFIX} --with-profiling-data" samba_configure_params = " ${ENABLE_COVERAGE} ${PREFIX} --with-profiling-data"
# We cannot configure himmelblau on old systems missing openssl 3
himmelblau_configure_params = ''
rust_configure_param = ' --enable-rust'
if ssl.OPENSSL_VERSION_INFO[0] >= 3:
himmelblau_configure_params = rust_configure_param + ' --with-himmelblau'
samba_libs_envvars = "PYTHONPATH=${PYTHON_PREFIX}:$PYTHONPATH" samba_libs_envvars = "PYTHONPATH=${PYTHON_PREFIX}:$PYTHONPATH"
samba_libs_envvars += " PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${PREFIX_DIR}/lib/pkgconfig" samba_libs_envvars += " PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${PREFIX_DIR}/lib/pkgconfig"
samba_libs_envvars += " ADDITIONAL_CFLAGS='-Wmissing-prototypes'" samba_libs_envvars += " ADDITIONAL_CFLAGS='-Wmissing-prototypes'"
@ -313,7 +320,7 @@ tasks = {
"samba": { "samba": {
"sequence": [ "sequence": [
("random-sleep", random_sleep(300, 900)), ("random-sleep", random_sleep(300, 900)),
("configure", "./configure.developer --enable-rust --with-himmelblau" + samba_configure_params), ("configure", "./configure.developer" + himmelblau_configure_params + samba_configure_params),
("make", "make -j"), ("make", "make -j"),
("test", make_test(exclude_envs=[ ("test", make_test(exclude_envs=[
"none", "none",
@ -818,7 +825,7 @@ tasks = {
"samba-o3": { "samba-o3": {
"sequence": [ "sequence": [
("random-sleep", random_sleep(300, 900)), ("random-sleep", random_sleep(300, 900)),
("configure", "ADDITIONAL_CFLAGS='-O3 -Wp,-D_FORTIFY_SOURCE=2' ./configure.developer --abi-check-disable --enable-rust" + samba_configure_params), ("configure", "ADDITIONAL_CFLAGS='-O3 -Wp,-D_FORTIFY_SOURCE=2' ./configure.developer --abi-check-disable" + rust_configure_param + samba_configure_params),
("make", "make -j"), ("make", "make -j"),
("test", make_test(cmd='make test', TESTS="--exclude=selftest/slow-none", include_envs=["none"])), ("test", make_test(cmd='make test', TESTS="--exclude=selftest/slow-none", include_envs=["none"])),
("quicktest", make_test(cmd='make quicktest', include_envs=["ad_dc", "ad_dc_smb1", "ad_dc_smb1_done"])), ("quicktest", make_test(cmd='make quicktest', include_envs=["ad_dc", "ad_dc_smb1", "ad_dc_smb1_done"])),