]> git.sesse.net Git - vlc/commitdiff
Contribs: update GnuTLS to 3.1.10
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Mar 2013 17:42:47 +0000 (18:42 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Mar 2013 17:44:35 +0000 (18:44 +0100)
contrib/src/gnutls/SHA512SUMS
contrib/src/gnutls/gnutls-no-egd.patch
contrib/src/gnutls/gnutls-win32.patch
contrib/src/gnutls/no-create-time-h.patch
contrib/src/gnutls/read-file-limits.h.patch
contrib/src/gnutls/rules.mak

index 098d2ae3ee20141566f5fe2db7d1d3f24eb8d86c..f89475a93768bc16926e6a7952f7c7b1d8a3e2c9 100644 (file)
@@ -1 +1 @@
-7780e9ca7b592350ce9b11e53a63d3212320402d8ad2462bfbc0e69aec4a48bb372a1925627abb7996535c87c90e3d79537ea118c8bb36d26aae8e19eaae3a06  gnutls-2.12.23.tar.bz2
+cfe381825b9d9a6e040a2eccd1adb0927c058c3c512298525ad39e584796e4de5b1972301cd2f024ac071eb328e783a0cbc5e4474154e106227cd197eddc35d2  gnutls-3.1.10.tar.xz
index f4537e1e6bcb75120b2c9b215f7077d132faecd2..c0e3407570a641c479d38b1bd22c01473b4aebec 100644 (file)
@@ -1,54 +1,55 @@
-diff -ru gnutls.orig/lib/nettle/Makefile.am gnutls/lib/nettle/Makefile.am
---- gnutls.orig/lib/nettle/Makefile.am 2011-07-19 20:25:09.000000000 +0300
-+++ gnutls/lib/nettle/Makefile.am      2011-07-19 20:25:39.000000000 +0300
-@@ -35,4 +35,4 @@
+diff -ru gnutls.orig/lib/nettle/rnd.c gnutls/lib/nettle/rnd.c
+--- gnutls-3.1.10/lib/nettle/Makefile.am.orig  2013-03-25 14:41:50.265377296 +0100
++++ gnutls-3.1.10/lib/nettle/Makefile.am       2013-03-25 14:50:17.436084975 +0100
+@@ -33,7 +33,7 @@
  
  noinst_LTLIBRARIES = libcrypto.la
  
--libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c egd.c egd.h
-+libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c
---- gnutls/lib/nettle/Makefile.in.orig 2011-11-22 23:27:22.099568057 -0500
-+++ gnutls/lib/nettle/Makefile.in      2011-11-22 23:27:45.711685158 -0500
-@@ -117,8 +117,7 @@
- CONFIG_CLEAN_VPATH_FILES =
+-libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c egd.c egd.h \
++libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c \
+       multi.c wmnaf.c ecc_free.c ecc.h ecc_make_key.c ecc_shared_secret.c \
+       ecc_map.c ecc_mulmod.c ecc_mulmod_cached.c \
+       ecc_points.c ecc_projective_dbl_point_3.c ecc_projective_isneutral.c \
+--- gnutls-3.1.10/lib/nettle/Makefile.in.orig  2013-03-25 14:41:50.268710655 +0100
++++ gnutls-3.1.10/lib/nettle/Makefile.in       2013-03-25 14:51:42.180123726 +0100
+@@ -219,7 +219,7 @@
  LTLIBRARIES = $(noinst_LTLIBRARIES)
  libcrypto_la_LIBADD =
--am_libcrypto_la_OBJECTS = pk.lo mpi.lo mac.lo cipher.lo rnd.lo init.lo \
--      egd.lo
-+am_libcrypto_la_OBJECTS = pk.lo mpi.lo mac.lo cipher.lo rnd.lo init.lo
- libcrypto_la_OBJECTS = $(am_libcrypto_la_OBJECTS)
- AM_V_lt = $(am__v_lt_$(V))
- am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
-@@ -829,7 +828,7 @@
+ am_libcrypto_la_OBJECTS = pk.lo mpi.lo mac.lo cipher.lo rnd.lo init.lo \
+-      egd.lo multi.lo wmnaf.lo ecc_free.lo ecc_make_key.lo \
++      multi.lo wmnaf.lo ecc_free.lo ecc_make_key.lo \
+       ecc_shared_secret.lo ecc_map.lo ecc_mulmod.lo \
+       ecc_mulmod_cached.lo ecc_points.lo \
+       ecc_projective_dbl_point_3.lo ecc_projective_isneutral.lo \
+@@ -1536,7 +1536,7 @@
        -I$(srcdir)/../includes -I$(builddir)/../includes \
-       -I$(srcdir)/.. $(am__append_1)
+       -I$(builddir)/../../gl -I$(srcdir)/.. $(am__append_1)
  noinst_LTLIBRARIES = libcrypto.la
--libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c egd.c egd.h
-+libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c
- all: all-am
- .SUFFIXES:
-@@ -883,7 +882,6 @@
-       -rm -f *.tab.c
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cipher.Plo@am__quote@
+-libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c egd.c egd.h \
++libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c \
+       multi.c wmnaf.c ecc_free.c ecc.h ecc_make_key.c ecc_shared_secret.c \
+       ecc_map.c ecc_mulmod.c ecc_mulmod_cached.c \
+       ecc_points.c ecc_projective_dbl_point_3.c ecc_projective_isneutral.c \
+@@ -1610,7 +1610,6 @@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecc_shared_secret.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecc_sign_hash.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecc_verify_hash.Plo@am__quote@
 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/egd.Plo@am__quote@
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mac.Plo@am__quote@
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpi.Plo@am__quote@
-diff -ru gnutls.orig/lib/nettle/rnd.c gnutls/lib/nettle/rnd.c
---- gnutls.orig/lib/nettle/rnd.c       2011-07-19 20:25:09.000000000 +0300
-+++ gnutls/lib/nettle/rnd.c    2011-07-19 20:26:47.000000000 +0300
-@@ -159,7 +159,7 @@
- #ifdef HAVE_GETRUSAGE
- #include <sys/resource.h>
- #endif
+--- gnutls-3.1.10/lib/nettle/rnd.c.orig        2013-03-21 21:42:28.000000000 +0100
++++ gnutls-3.1.10/lib/nettle/rnd.c     2013-03-25 14:52:50.004027534 +0100
+@@ -205,7 +205,7 @@
+ #include <sys/time.h>
+ #include <fcntl.h>
+ #include <locks.h>
 -#include "egd.h"
 +//#include "egd.h"
  
  #define DEVICE_READ_SIZE 16
  #define DEVICE_READ_SIZE_MAX 32
-@@ -288,6 +288,7 @@
+@@ -276,6 +276,7 @@
    return 0;
  }
  
@@ -56,7 +57,7 @@ diff -ru gnutls.orig/lib/nettle/rnd.c gnutls/lib/nettle/rnd.c
  static int
  do_device_source_egd (int init)
  {
-@@ -342,6 +343,7 @@
+@@ -329,6 +330,7 @@
      }
    return 0;
  }
@@ -64,7 +65,7 @@ diff -ru gnutls.orig/lib/nettle/rnd.c gnutls/lib/nettle/rnd.c
  
  static int
  do_device_source (int init)
-@@ -359,11 +361,13 @@
+@@ -346,11 +348,13 @@
  
        do_source = do_device_source_urandom;
        ret = do_source (init);
index 2d543b556624ffef76c6197381dc2ef66e7c08e8..170d12ffd6f7592f6487b80fada9fb5bf8abb276 100644 (file)
  # endif
 +#endif
  #endif /* !HAVE_DECL_GAI_STRERROR */
---- gnutls-2.12.20/lib/gnutls.pc.in.orig       2012-09-27 14:40:07.243581693 +0200
-+++ gnutls-2.12.20/lib/gnutls.pc.in    2012-01-06 20:06:23.000000000 +0100
-@@ -19,7 +19,7 @@
+--- gnutls-3.1.10/lib/gnutls.pc.in.orig        2013-03-25 14:41:04.248360118 +0100
++++ gnutls-3.1.10/lib/gnutls.pc.in     2013-03-25 14:41:03.355020008 +0100
+@@ -18,7 +18,7 @@
  Description: Transport Security Layer implementation for the GNU system
- URL: http://www.gnu.org/software/gnutls/
+ URL: http://www.gnutls.org/
  Version: @VERSION@
 -Libs: -L${libdir} -lgnutls
 +Libs: -L${libdir} -lgnutls -lws2_32 -lcrypt32 @LTLIBINTL@
- Libs.private: @LTLIBGCRYPT@ @LTLIBNETTLE@ @NETTLE_LIBS@ @GNUTLS_ZLIB_LIBS_PRIVATE@
+ Libs.private: @LTLIBNETTLE@ @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @LIB_CLOCK_GETTIME@
  @GNUTLS_REQUIRES_PRIVATE@
  Cflags: -I${includedir}
index ac6fe6677d667e30c35176a250ebe918fc0bb6fd..d355c7cc6b3603e17c465dd51bee517b70ddf756 100644 (file)
@@ -1,5 +1,5 @@
---- gnutls/lib/gl/Makefile.am  2011-04-07 17:30:44.000000000 -0700
-+++ gnutls/lib/gl/Makefile.am  2012-03-02 19:51:53.576555217 -0800
+--- gnutls/gl/Makefile.am      2011-04-07 17:30:44.000000000 -0700
++++ gnutls/gl/Makefile.am      2012-03-02 19:51:53.576555217 -0800
 @@ -891,7 +891,7 @@ EXTRA_DIST += sys_stat.in.h
  
  ## begin gnulib module time
index 7679e51027080ed5857277d4a2f1322110c4bdd2..b13b1a88f482bce0d18cb239132237313b5cfd0b 100644 (file)
@@ -1,5 +1,5 @@
---- gnutls/lib/gl/read-file.c.orig     2012-03-06 20:59:29.600593329 -0500
-+++ gnutls/lib/gl/read-file.c  2012-03-06 20:59:44.568593328 -0500
+--- gnutls/gl/read-file.c.orig 2012-03-06 20:59:29.600593329 -0500
++++ gnutls/gl/read-file.c      2012-03-06 20:59:44.568593328 -0500
 @@ -35,6 +35,9 @@
  /* Get errno. */
  #include <errno.h>
index 8881a4ad8249805638752e851261fb78597eca93..f7367b88ad982d39f5fd33864ed7c3bb9daa4519 100644 (file)
@@ -1,19 +1,19 @@
 # GnuTLS
 
-GNUTLS_VERSION := 2.12.23
-GNUTLS_URL := ftp://ftp.gnutls.org/gcrypt/gnutls/v2.12/gnutls-$(GNUTLS_VERSION).tar.bz2
+GNUTLS_VERSION := 3.1.10
+GNUTLS_URL := ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/gnutls-$(GNUTLS_VERSION).tar.xz
 
 PKGS += gnutls
 ifeq ($(call need_pkg,"gnutls >= 2.0.0"),)
 PKGS_FOUND += gnutls
 endif
 
-$(TARBALLS)/gnutls-$(GNUTLS_VERSION).tar.bz2:
+$(TARBALLS)/gnutls-$(GNUTLS_VERSION).tar.xz:
        $(call download,$(GNUTLS_URL))
 
-.sum-gnutls: gnutls-$(GNUTLS_VERSION).tar.bz2
+.sum-gnutls: gnutls-$(GNUTLS_VERSION).tar.xz
 
-gnutls: gnutls-$(GNUTLS_VERSION).tar.bz2 .sum-gnutls
+gnutls: gnutls-$(GNUTLS_VERSION).tar.xz .sum-gnutls
        $(UNPACK)
 ifdef HAVE_WIN32
        $(APPLY) $(SRC)/gnutls/gnutls-win32.patch
@@ -24,7 +24,6 @@ endif
        $(APPLY) $(SRC)/gnutls/gnutls-no-egd.patch
        $(APPLY) $(SRC)/gnutls/read-file-limits.h.patch
        $(call pkg_static,"lib/gnutls.pc.in")
-       $(call pkg_static,"libextra/gnutls-extra.pc.in")
        $(UPDATE_AUTOCONFIG)
        $(MOVE)
 
@@ -35,22 +34,20 @@ GNUTLS_CONF := \
        --disable-srp-authentication \
        --disable-psk-authentication-FIXME \
        --disable-anon-authentication \
-       --disable-camellia \
        --disable-openpgp-authentication \
-       --disable-session-ticket \
        --disable-openssl-compatibility \
        --disable-guile \
        $(HOSTCONF)
 
 USE_GCRYPT=0
 ifdef HAVE_WIN32
-USE_GCRYPT=1
+USE_GCRYPT=0
 endif
 ifdef HAVE_MACOSX
 USE_GCRYPT=1
 endif
 ifdef HAVE_ANDROID
-USE_GCRYPT=1
+USE_GCRYPT=0
 endif
 
 ifeq (1,$(USE_GCRYPT))
@@ -67,5 +64,6 @@ ifdef HAVE_ANDROID
 else
        cd $< && $(HOSTVARS) ./configure $(GNUTLS_CONF)
 endif
+       cd $</gl && $(MAKE) install
        cd $</lib && $(MAKE) install
        touch $@