diff options
author | Karlson2k (Evgeny Grin) <k2k@narod.ru> | 2021-06-10 21:31:55 +0300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-06-10 18:39:16 +0000 |
commit | 776f3c282674288ce9ea8369bc06e7b8f0d452e4 (patch) | |
tree | 29249974fded0ebf0a44c44a9fb74016a7ffe0b7 /net-libs | |
parent | games-rpg/rpg-cli: add me to co-maintainers (diff) | |
download | gentoo-776f3c282674288ce9ea8369bc06e7b8f0d452e4.tar.gz gentoo-776f3c282674288ce9ea8369bc06e7b8f0d452e4.tar.bz2 gentoo-776f3c282674288ce9ea8369bc06e7b8f0d452e4.zip |
net-libs/libmicrohttpd: fixed testing
Closes: https://bugs.gentoo.org/795105
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/21191
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs')
4 files changed, 41 insertions, 0 deletions
diff --git a/net-libs/libmicrohttpd/files/libmicrohttpd-0.9.73-test-ssl3.patch b/net-libs/libmicrohttpd/files/libmicrohttpd-0.9.73-test-ssl3.patch new file mode 100644 index 000000000000..e8d5dce0edcb --- /dev/null +++ b/net-libs/libmicrohttpd/files/libmicrohttpd-0.9.73-test-ssl3.patch @@ -0,0 +1,35 @@ + Disable usage of SSLv3 in testing + + Integrated uptream version 0.9.74 + + +diff --git a/src/testcurl/https/test_tls_options.c b/src/testcurl/https/test_tls_options.c + +--- a/src/testcurl/https/test_tls_options.c ++++ b/src/testcurl/https/test_tls_options.c +@@ -119,11 +119,6 @@ main (int argc, char *const *argv) + fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); + return 77; + } +- if (0 != strncmp (ssl_version, "GnuTLS", 6)) +- { +- fprintf (stderr, "This test can be run only with libcurl-gnutls.\n"); +- return 77; +- } + + if (! testsuite_curl_global_init ()) + return 99; +@@ -152,10 +147,10 @@ main (int argc, char *const *argv) + fprintf (stderr, + "The following handshake should fail (and print an error message)...\n"); + if (0 != +- test_wrap ("TLS1.0 vs SSL3", ++ test_wrap ("TLS1.1 vs TLS1.0", + &test_unmatching_ssl_version, NULL, port, daemon_flags, + aes256_sha, +- CURL_SSLVERSION_SSLv3, ++ CURL_SSLVERSION_TLSv1_1, + MHD_OPTION_HTTPS_MEM_KEY, srv_key_pem, + MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, + MHD_OPTION_HTTPS_PRIORITIES, + diff --git a/net-libs/libmicrohttpd/libmicrohttpd-0.9.68-r1.ebuild b/net-libs/libmicrohttpd/libmicrohttpd-0.9.68-r1.ebuild index 05e8225d1ee3..da4a05bb2914 100644 --- a/net-libs/libmicrohttpd/libmicrohttpd-0.9.68-r1.ebuild +++ b/net-libs/libmicrohttpd/libmicrohttpd-0.9.68-r1.ebuild @@ -11,6 +11,8 @@ DESCRIPTION="Small C library to run an HTTP server as part of another applicatio HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/" SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz" +PATCHES=( "${FILESDIR}"/${PN}-0.9.73-test-ssl3.patch ) + LICENSE="LGPL-2.1" SLOT="0/12" KEYWORDS="amd64 x86" diff --git a/net-libs/libmicrohttpd/libmicrohttpd-0.9.72.ebuild b/net-libs/libmicrohttpd/libmicrohttpd-0.9.72.ebuild index 40ebbfa6764d..52e14e5dad16 100644 --- a/net-libs/libmicrohttpd/libmicrohttpd-0.9.72.ebuild +++ b/net-libs/libmicrohttpd/libmicrohttpd-0.9.72.ebuild @@ -24,6 +24,8 @@ DEPEND="${RDEPEND} virtual/pkgconfig " +PATCHES=( "${FILESDIR}"/${PN}-0.9.73-test-ssl3.patch ) + S=${WORKDIR}/${MY_P} DOCS="AUTHORS NEWS README ChangeLog" diff --git a/net-libs/libmicrohttpd/libmicrohttpd-0.9.73.ebuild b/net-libs/libmicrohttpd/libmicrohttpd-0.9.73.ebuild index 4a3af5871918..ec1dd7a58e54 100644 --- a/net-libs/libmicrohttpd/libmicrohttpd-0.9.73.ebuild +++ b/net-libs/libmicrohttpd/libmicrohttpd-0.9.73.ebuild @@ -12,6 +12,8 @@ HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/" SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz" S="${WORKDIR}"/${MY_P} +PATCHES=( "${FILESDIR}"/${PN}-0.9.73-test-ssl3.patch ) + LICENSE="LGPL-2.1+" SLOT="0/12" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |