]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Enable OpenSSL 3.x build with -DOPENSSL_NO_DEPRECATED=1
authorOndřej Surý <ondrej@isc.org>
Wed, 18 Jan 2023 10:10:30 +0000 (11:10 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 18 Jan 2023 10:13:19 +0000 (11:13 +0100)
Add a CI job where we explicitly disable any use of OpenSSL functions
that have been deprecated in OpenSSL 3.x.

.gitlab-ci.yml

index ba74e23ac7b4c529874bc4d1a14b4541523d9250..545439d05a8beac62cb44a9306764dcb5b05956b 100644 (file)
@@ -765,6 +765,30 @@ scan-build:
     expire_in: "1 day"
     when: on_failure
 
+# Jobs for strict OpenSSL 3.x (no deprecated) GCC builds on Debian "sid" (amd64)
+
+gcc:ossl3:sid:amd64:
+  variables:
+    CC: gcc
+    CFLAGS: "${CFLAGS_COMMON} -O3 -DOPENSSL_NO_DEPRECATED=1 -DOPENSSL_API_COMPAT=30000"
+    RUN_MAKE_INSTALL: 1
+  <<: *debian_sid_amd64_image
+  <<: *build_job
+
+system:gcc:ossl3:sid:amd64:
+  <<: *debian_sid_amd64_image
+  <<: *system_test_job
+  needs:
+    - job: gcc:ossl3:sid:amd64
+      artifacts: true
+
+unit:gcc:ossl3:amd64:
+  <<: *debian_sid_amd64_image
+  <<: *unit_test_job
+  needs:
+    - job: gcc:ossl3:sid:amd64
+      artifacts: true
+
 # Jobs for regular GCC builds on Debian "sid" (amd64)
 # Also tests configration option: --without-lmdb.