diff options
author | Sam James <sam@gentoo.org> | 2024-08-21 06:29:58 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-08-21 06:30:28 +0100 |
commit | 10656ddc55952ddad4d3e72351580d20ccdb9099 (patch) | |
tree | ac765a1557048adaeda4c6ee72864155faa789a1 /net-libs | |
parent | dev-debug/systemtap: link to upstream bug re which (diff) | |
download | gentoo-10656ddc55952ddad4d3e72351580d20ccdb9099.tar.gz gentoo-10656ddc55952ddad4d3e72351580d20ccdb9099.tar.bz2 gentoo-10656ddc55952ddad4d3e72351580d20ccdb9099.zip |
net-libs/gnutls: fix test
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/gnutls/files/gnutls-3.8.7.1-tests.patch | 45 | ||||
-rw-r--r-- | net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild | 1 |
2 files changed, 46 insertions, 0 deletions
diff --git a/net-libs/gnutls/files/gnutls-3.8.7.1-tests.patch b/net-libs/gnutls/files/gnutls-3.8.7.1-tests.patch new file mode 100644 index 000000000000..1e1b3b54f49d --- /dev/null +++ b/net-libs/gnutls/files/gnutls-3.8.7.1-tests.patch @@ -0,0 +1,45 @@ +https://gitlab.com/gnutls/gnutls/-/commit/f3e8eac0586a19f4dafd89f68006a536b826e65a + +From f3e8eac0586a19f4dafd89f68006a536b826e65a Mon Sep 17 00:00:00 2001 +From: Andreas Metzler <ametzler@bebt.de> +Date: Thu, 15 Aug 2024 16:22:02 +0200 +Subject: [PATCH] revert back to datefudge for "openssl ocsp". + +openssl's -attime only changes the verification logic but not the +generation. + +Broken by: d1bc7f644422c4d87edfcd9fafe7f292a1a3a6de + +Signed-off-by: Andreas Metzler <ametzler@bebt.de> +--- a/tests/ocsp-tests/ocsp-must-staple-connection.sh ++++ b/tests/ocsp-tests/ocsp-must-staple-connection.sh +@@ -48,6 +48,8 @@ fi + + . "${srcdir}/scripts/common.sh" + ++skip_if_no_datefudge ++ + eval "${GETPORT}" + # Port for gnutls-serv + TLS_SERVER_PORT=$PORT +@@ -69,7 +71,6 @@ fi + + CERTDATE="2016-04-28 00:00:00" + TESTDATE="2016-04-29 00:00:00" +-EPOCHTESTDATE=1461888000 + EXP_OCSP_DATE="2016-03-27 00:00:00" + + OCSP_PID="" +@@ -129,8 +130,8 @@ cp "${srcdir}/ocsp-tests/certs/ocsp_index.txt.attr" ${ATTRFILE} + # SO_REUSEADDR usage. + PORT=${OCSP_PORT} + launch_bare_server \ +- "${OPENSSL}" ocsp -attime "${EPOCHTESTDATE}" \ +- -index "${INDEXFILE}" -text \ ++ "$FAKETIME" "${TESTDATE}" \ ++ "${OPENSSL}" ocsp -index "${INDEXFILE}" -text \ + -port "${OCSP_PORT}" \ + -rsigner "${srcdir}/ocsp-tests/certs/ocsp-server.pem" \ + -rkey "${srcdir}/ocsp-tests/certs/ocsp-server.key" \ +-- +GitLab diff --git a/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild b/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild index 3474e58c4983..74f6ffe49d3a 100644 --- a/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild +++ b/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild @@ -74,6 +74,7 @@ QA_CONFIG_IMPL_DECL_SKIP=( PATCHES=( "${FILESDIR}"/${PN}-3.8.7.1-configure-brotli.patch + "${FILESDIR}"/${PN}-3.8.7.1-tests.patch ) src_prepare() { |