From af861917c5118cb9f1490f407d86f40fd5e01437 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Fri, 17 Sep 2021 11:24:07 +0200 Subject: ci: temporarily set -Wno-deprecated-declarations in Packit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to suppress OpenSSL 3.0 deprecation warnings (until a proper solution is deployed): ``` ../src/shared/creds-util.c: In function ‘sha256_hash_host_and_tpm2_key’: ../src/shared/creds-util.c:412:9: error: ‘SHA256_Init’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 412 | if (SHA256_Init(&sha256_context) != 1) | ^~ In file included from /usr/include/openssl/x509.h:41, from ../src/shared/openssl-util.h:8, from ../src/shared/creds-util.c:21: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ ../src/shared/creds-util.c:415:9: error: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 415 | if (host_key && SHA256_Update(&sha256_context, host_key, host_key_size) != 1) | ^~ In file included from /usr/include/openssl/x509.h:41, from ../src/shared/openssl-util.h:8, from ../src/shared/creds-util.c:21: /usr/include/openssl/sha.h:74:27: note: declared here 74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c, | ^~~~~~~~~~~~~ ../src/shared/creds-util.c:418:9: error: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 418 | if (tpm2_key && SHA256_Update(&sha256_context, tpm2_key, tpm2_key_size) != 1) | ^~ In file included from /usr/include/openssl/x509.h:41, from ../src/shared/openssl-util.h:8, from ../src/shared/creds-util.c:21: /usr/include/openssl/sha.h:74:27: note: declared here 74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c, | ^~~~~~~~~~~~~ ../src/shared/creds-util.c:421:9: error: ‘SHA256_Final’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 421 | if (SHA256_Final(ret, &sha256_context) != 1) | ^~ In file included from /usr/include/openssl/x509.h:41, from ../src/shared/openssl-util.h:8, from ../src/shared/creds-util.c:21: /usr/include/openssl/sha.h:76:27: note: declared here 76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c); | ^~~~~~~~~~~~ cc1: all warnings being treated as errors ``` --- .packit.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to '.packit.yml') diff --git a/.packit.yml b/.packit.yml index 962c77913e..98b71fc15e 100644 --- a/.packit.yml +++ b/.packit.yml @@ -31,6 +31,9 @@ actions: # [0] https://github.com/mesonbuild/meson/issues/7360 # [1] https://github.com/systemd/systemd/pull/18908#issuecomment-792250110 - 'sed -i "/^CONFIGURE_OPTS=(/a--werror" .packit_rpm/systemd.spec' + # FIXME: temporarily disable the deprecated-declarations check to suppress + # OpenSSL 3.0 warnings in Rawhide + - 'sed -i "1 i %global optflags %{optflags} -Wno-deprecated-declarations" .packit_rpm/systemd.spec' jobs: - job: copr_build -- cgit v1.2.1