Skip to content

Commit

Permalink
opensuse-leap: install gnutls from source to obtain the latest version
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wxleong authored and AndreasFuchsTPM committed Mar 12, 2024
1 parent 9031e40 commit 8c77c93
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions opensuse-leap.docker.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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 /

0 comments on commit 8c77c93

Please sign in to comment.