summaryrefslogtreecommitdiff
path: root/security/gnutls/patches
diff options
context:
space:
mode:
Diffstat (limited to 'security/gnutls/patches')
-rw-r--r--security/gnutls/patches/patch-configure13
-rw-r--r--security/gnutls/patches/patch-lib_nettle_egd.c62
-rw-r--r--security/gnutls/patches/patch-tests_Makefile.in16
-rw-r--r--security/gnutls/patches/patch-tests_openpgp-certs_Makefile.in16
4 files changed, 32 insertions, 75 deletions
diff --git a/security/gnutls/patches/patch-configure b/security/gnutls/patches/patch-configure
deleted file mode 100644
index c0ebbdd0aee..00000000000
--- a/security/gnutls/patches/patch-configure
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-configure,v 1.1 2013/11/29 22:55:29 wiz Exp $
-
---- configure.orig 2013-11-29 17:00:05.000000000 +0000
-+++ configure
-@@ -48402,7 +48402,7 @@ $as_echo "#define NO_OPTIONAL_OPT_ARGS 1
-
- fi # end of AC_DEFUN of LIBOPTS_CHECK
-
--if test "$NEED_LIBOPTS_DIR" == "true";then
-+if test "$NEED_LIBOPTS_DIR" = "true";then
- for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do
- nam=`echo $i|sed 's/.bak//g'`
- if test -f $i;then
diff --git a/security/gnutls/patches/patch-lib_nettle_egd.c b/security/gnutls/patches/patch-lib_nettle_egd.c
deleted file mode 100644
index e914de92fdb..00000000000
--- a/security/gnutls/patches/patch-lib_nettle_egd.c
+++ /dev/null
@@ -1,62 +0,0 @@
-$NetBSD: patch-lib_nettle_egd.c,v 1.2 2013/11/29 22:55:29 wiz Exp $
-
-http://lists.gnupg.org/pipermail/gnutls-devel/2013-November/006588.html
-
---- lib/nettle/egd.c.orig 2013-11-10 17:59:14.000000000 +0000
-+++ lib/nettle/egd.c
-@@ -155,12 +155,10 @@ int _rndegd_connect_socket(void)
-
- fd = socket(LOCAL_SOCKET_TYPE, SOCK_STREAM, 0);
- if (fd == -1) {
-- _gnutls_debug_log("can't create unix domain socket: %s\n",
-- strerror(errno));
-+ _gnutls_debug_log("can't create unix domain socket\n");
- return -1;
- } else if (connect(fd, (struct sockaddr *) &addr, addr_len) == -1) {
-- _gnutls_debug_log("can't connect to EGD socket `%s': %s\n",
-- name, strerror(errno));
-+ _gnutls_debug_log("can't connect to EGD socket `%s'\n", name);
- close(fd);
- fd = -1;
- }
-@@ -202,13 +200,11 @@ int _rndegd_read(int *fd, void *_output,
- buffer[1] = nbytes;
-
- if (do_write(*fd, buffer, 2) == -1)
-- _gnutls_debug_log("can't write to the EGD: %s\n",
-- strerror(errno));
-+ _gnutls_debug_log("can't write to the EGD\n");
-
- n = do_read(*fd, buffer, 1);
- if (n == -1) {
-- _gnutls_debug_log("read error on EGD: %s\n",
-- strerror(errno));
-+ _gnutls_debug_log("read error on EGD\n");
- do_restart = 1;
- goto restart;
- }
-@@ -217,8 +213,7 @@ int _rndegd_read(int *fd, void *_output,
- if (n) {
- n = do_read(*fd, buffer, n);
- if (n == -1) {
-- _gnutls_debug_log("read error on EGD: %s\n",
-- strerror(errno));
-+ _gnutls_debug_log("read error on EGD\n");
- do_restart = 1;
- goto restart;
- }
-@@ -240,12 +235,10 @@ int _rndegd_read(int *fd, void *_output,
- buffer[0] = 2; /* blocking */
- buffer[1] = nbytes;
- if (do_write(*fd, buffer, 2) == -1)
-- _gnutls_debug_log("can't write to the EGD: %s\n",
-- strerror(errno));
-+ _gnutls_debug_log("can't write to the EGD\n");
- n = do_read(*fd, buffer, nbytes);
- if (n == -1) {
-- _gnutls_debug_log("read error on EGD: %s\n",
-- strerror(errno));
-+ _gnutls_debug_log("read error on EGD\n");
- do_restart = 1;
- goto restart;
- }
diff --git a/security/gnutls/patches/patch-tests_Makefile.in b/security/gnutls/patches/patch-tests_Makefile.in
new file mode 100644
index 00000000000..a6c29809c0c
--- /dev/null
+++ b/security/gnutls/patches/patch-tests_Makefile.in
@@ -0,0 +1,16 @@
+$NetBSD: patch-tests_Makefile.in,v 1.1 2014/01/16 10:14:09 wiz Exp $
+
+Disable dsa test. Hangs on NetBSD-6.99.28/amd64 in gnutls-3.8.2.1.
+Please retest during updates.
+
+--- tests/Makefile.in.orig 2013-12-20 18:30:47.000000000 +0000
++++ tests/Makefile.in
+@@ -2063,7 +2063,7 @@ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ SUBDIRS = . rsa-md5-collision pkcs1-padding pkcs8-decode pkcs12-decode \
+- userid cert-tests key-id sha2 safe-renegotiation dsa scripts \
++ userid cert-tests key-id sha2 safe-renegotiation scripts \
+ ecdsa slow dtls srp $(am__append_1) $(am__append_2)
+ EXTRA_DIST = suppressions.valgrind eagain-common.h
+ AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
diff --git a/security/gnutls/patches/patch-tests_openpgp-certs_Makefile.in b/security/gnutls/patches/patch-tests_openpgp-certs_Makefile.in
new file mode 100644
index 00000000000..3081a7270af
--- /dev/null
+++ b/security/gnutls/patches/patch-tests_openpgp-certs_Makefile.in
@@ -0,0 +1,16 @@
+$NetBSD: patch-tests_openpgp-certs_Makefile.in,v 1.1 2014/01/16 10:14:09 wiz Exp $
+
+Disable testcerts test. Hangs on NetBSD-6.99.28/amd64 with gnutls-3.8.2.1.
+Please retest during updates.
+
+--- tests/openpgp-certs/Makefile.in.orig 2014-01-16 09:45:13.000000000 +0000
++++ tests/openpgp-certs/Makefile.in
+@@ -1417,7 +1417,7 @@ dist_check_SCRIPTS = testselfsigs testce
+
+ # The selftest is disabled until we can make it work under Wine and
+ # under Debian buildds (problem with 127.0.0.2?).
+-@ENABLE_OPENPGP_TRUE@TESTS = testselfsigs $(am__append_1)
++@ENABLE_OPENPGP_TRUE@TESTS = testselfsigs # $(am__append_1)
+ TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) \
+ LC_ALL="C" \
+ top_builddir="$(top_builddir)" \