<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/970bdae3e6a30a0cfc877eecff56b39629d31b3b">https://github.com/macports/macports-ports/commit/970bdae3e6a30a0cfc877eecff56b39629d31b3b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 970bdae3e6a30a0cfc877eecff56b39629d31b3b
</span>Author: Marius Schamschula <mps@macports.org>
AuthorDate: Tue Jul 4 05:57:32 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> gnutls: update to version 3.5.14
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> use snowleopard_fixes PortGroup, rather than patch
</span>---
devel/gnutls/Portfile | 10 ++---
.../files/patch-tests-pkcs11-pkcs11-mock.c.diff | 43 ----------------------
2 files changed, 5 insertions(+), 48 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/gnutls/Portfile b/devel/gnutls/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1c01f69..09d244f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/gnutls/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/gnutls/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,9 +4,10 @@ PortSystem 1.0
</span>
PortGroup compiler_blacklist_versions 1.0
PortGroup muniversal 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup snowleopard_fixes 1.0
</span>
name gnutls
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 3.5.13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 3.5.14
</span> set branch [join [lrange [split ${version} .] 0 1] .]
categories devel security
# yes, some of the libs are GPL only
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,8 +26,8 @@ long_description \
</span> master_sites ftp://ftp.gnutls.org/gcrypt/gnutls/v${branch}/ \
http://mirrors.dotsrc.org/gcrypt/gnutls/v${branch}/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 8d425288302672ae9617e6e827f7d2721a361b95 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 79f5480ad198dad5bc78e075f4a40c4a315a1b2072666919d2d05a08aec13096
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 efeea3c159afa5205ce99b012f06bb239bdee71a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 4aa12dec92f42a0434df794aca3d02f6f2a35b47b48c01252de65f355c051bda
</span>
use_xz yes
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -41,8 +42,7 @@ depends_lib port:gmp \
</span> port:nettle \
port:zlib
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-lib-system-certs.c.diff \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-tests-pkcs11-pkcs11-mock.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-lib-system-certs.c.diff
</span>
post-patch {
# Remove comments which confuse at least Leopard's assembler.
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/gnutls/files/patch-tests-pkcs11-pkcs11-mock.c.diff b/devel/gnutls/files/patch-tests-pkcs11-pkcs11-mock.c.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 351d339..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/gnutls/files/patch-tests-pkcs11-pkcs11-mock.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,43 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- tests/pkcs11/pkcs11-mock.c.orig 2016-05-10 13:14:55.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ tests/pkcs11/pkcs11-mock.c 2016-05-24 14:18:03.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -17,6 +17,40 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include "pkcs11-mock.h"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifndef __MAC_OS_X_VERSION_MIN_REQUIRED
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <Availability.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+static char * strndup (char const *s, size_t n);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+static size_t strnlen (const char *string, size_t maxlen);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+static size_t
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+strnlen (const char *string, size_t maxlen)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+{
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ const char *end = memchr (string, '\0', maxlen);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return end ? (size_t) (end - string) : maxlen;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+static char *
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+strndup (char const *s, size_t n)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+{
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ size_t len = strnlen (s, n);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ char *new = malloc (len + 1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (new == NULL)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return NULL;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ new[len] = '\0';
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return memcpy (new, s, len);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* This is a very basic mock PKCS #11 module that will return a given fixed
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * certificate, and public key for all searches. It will also provide a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * CKO_X_CERTIFICATE_EXTENSION so that it can be used as a p11-kit trust
</span></pre><pre style='margin:0'>
</pre>