From: Michael Tremer Date: Mon, 8 Jul 2013 19:34:27 +0000 (+0200) Subject: gnutls: Add patch to fix pem-decoding error in testsuite. X-Git-Tag: pango~197^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c955da5a71e3b553d83c4cd304149b06d791a5e4;p=people%2Fstevee%2Fipfire-3.x.git gnutls: Add patch to fix pem-decoding error in testsuite. --- diff --git a/gnutls/gnutls.nm b/gnutls/gnutls.nm index 070a7fc1e..9d1f7279a 100644 --- a/gnutls/gnutls.nm +++ b/gnutls/gnutls.nm @@ -7,7 +7,7 @@ name = gnutls version = %{ver_maj}.%{ver_min} ver_maj = 3.2 ver_min = 1 -release = 1.1 +release = 1.2 groups = System/Libraries url = http://www.gnu.org/software/gnutls/ diff --git a/gnutls/patches/gnutls-3.2.1-pem-decoding.patch b/gnutls/patches/gnutls-3.2.1-pem-decoding.patch new file mode 100644 index 000000000..2764f8b2d --- /dev/null +++ b/gnutls/patches/gnutls-3.2.1-pem-decoding.patch @@ -0,0 +1,35 @@ +From b12040aeab5fbaf02677571db1d8bf1995bd5ee0 Mon Sep 17 00:00:00 2001 +From: Nikos Mavrogiannopoulos +Date: Sun, 2 Jun 2013 12:10:06 +0200 +Subject: [PATCH] Avoid comparing the expiration date to prevent false positive error in 32-bit systems. + +--- + tests/cert-tests/pem-decoding | 6 ++++-- + 1 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/tests/cert-tests/pem-decoding b/tests/cert-tests/pem-decoding +index fe769ec..f8c6372 100755 +--- a/tests/cert-tests/pem-decoding ++++ b/tests/cert-tests/pem-decoding +@@ -61,7 +61,9 @@ if test "$rc" != "0"; then + exit $rc + fi + +-diff $srcdir/complex-cert.pem tmp-pem.pem ++cat $srcdir/complex-cert.pem |grep -v "Not After:" >tmp1 ++cat $srcdir/tmp-pem.pem |grep -v "Not After:" >tmp2 ++diff tmp1 tmp2 + rc=$? + + if test "$rc" != "0"; then +@@ -69,6 +71,6 @@ if test "$rc" != "0"; then + exit $rc + fi + +-rm -f tmp-pem.pem ++rm -f tmp-pem.pem tmp1 tmp2 + + exit 0 +-- +1.7.1 +