diff --git a/srcpkgs/gnutls/patches/tests-certtool-no-prompt.patch b/srcpkgs/gnutls/patches/tests-certtool-no-prompt.patch new file mode 100644 index 00000000000..6625c25ff58 --- /dev/null +++ b/srcpkgs/gnutls/patches/tests-certtool-no-prompt.patch @@ -0,0 +1,22 @@ +upstream: no +reason: don't prompt for password, don't assume it has been asked for + +--- tests/cert-tests/certtool ++++ tests/cert-tests/certtool +@@ -26,6 +26,7 @@ + TMPFILE1=certtool-file1.$$.tmp + TMPFILE2=certtool-file2.$$.tmp + PASS="1234" ++export GNUTLS_PIN="1234" + + if test -n "$DISABLE_BASH_TESTS"; then + exit 77 +@@ -66,7 +67,7 @@ + fi + + grep "Enter password" ${TMPFILE2} >/dev/null 2>&1 +- if test $? != 0;then ++ if test $? != 0 && test -z "$GNUTLS_PIN" ; then + cat ${TMPFILE2} + echo "No password was asked" + exit 1 diff --git a/srcpkgs/gnutls/template b/srcpkgs/gnutls/template index dc5c58da50e..95bfab6a3f2 100644 --- a/srcpkgs/gnutls/template +++ b/srcpkgs/gnutls/template @@ -1,17 +1,17 @@ # Template file for 'gnutls' pkgname=gnutls version=3.6.13 -revision=1 +revision=2 build_style=gnu-configure configure_args="--with-zlib --disable-guile --disable-static --disable-valgrind-tests --disable-rpath --with-default-trust-store-file=/etc/ssl/certs/ca-certificates.crt --with-trousers-lib=${XBPS_CROSS_BASE}/usr/lib" -hostmakedepends="which gettext-devel pkg-config libtool" -# add autogen when #6550 is solved +hostmakedepends="automake gettext-devel libtool pkg-config which" makedepends="zlib-devel lzo-devel readline-devel libgpg-error-devel libtasn1-devel libgcrypt-devel p11-kit-devel nettle-devel libidn2-devel libunistring-devel unbound-devel trousers-devel" +checkdepends="iproute2" short_desc="GNU Transport Layer Security library" maintainer="Orphaned " license="GPL-3.0-only, LGPL-2.1-or-later" @@ -19,6 +19,15 @@ homepage="https://gnutls.org" distfiles="https://www.gnupg.org/ftp/gcrypt/gnutls/v${version%.*}/gnutls-${version}.tar.xz" checksum=32041df447d9f4644570cf573c9f60358e865637d69b7e59d1159b7240b52f38 +pre_configure() { + autoreconf -vfi +} + +pre_check() { + # same as $PASS in tests/cert-tests/certtool + export GNUTLS_PIN=1234 +} + gnutls-devel_package() { depends="${makedepends} ${sourcepkg}>=${version}_${revision}" short_desc+=" - development files"