From 576b88044a4087519302cd8d322d7b357b306319 Mon Sep 17 00:00:00 2001 From: "wenxin.leong" Date: Tue, 12 Mar 2024 11:05:24 +0800 Subject: [PATCH] opensuse-leap: install gnutls from source to obtain the latest version To resolve a known issue (https://gitlab.com/gnutls/gnutls/-/issues/965) that leads to the failure of the tpm2-pkcs11 CI, it's necessary to install GNUTLS from the source. This is because the ZYpp package manager does not offer the latest version of GNUTLS. Signed-off-by: wenxin.leong --- opensuse-leap.docker.m4 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/opensuse-leap.docker.m4 b/opensuse-leap.docker.m4 index 0708145..3df631a 100644 --- a/opensuse-leap.docker.m4 +++ b/opensuse-leap.docker.m4 @@ -49,11 +49,12 @@ RUN zypper -n in \ patch \ sqlite3 \ openssl-engine-libp11 \ - gnutls \ acl \ json-glib-devel \ libusb-devel \ - libftdi1-devel + libftdi1-devel \ + libnettle-devel \ + p11-kit-devel include(`autoconf.m4') include(`python3.7.2.m4') @@ -81,4 +82,13 @@ include(`swtpm.m4') include(`uthash.m4') include(`junit.m4') +# Install GnuTLS-3.8.3 from source +RUN wget --no-verbose https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.3.tar.xz +RUN tar -xf gnutls-3.8.3.tar.xz --one-top-level=/tmp/ +WORKDIR /tmp/gnutls-3.8.3 +RUN ./configure --with-included-unistring --disable-doc --disable-tests \ + && make -j \ + && make install \ + && ldconfig + WORKDIR /