nettle: bump to version 3.1.1
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Mon, 5 Oct 2015 14:25:41 +0000 (11:25 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 5 Oct 2015 14:59:01 +0000 (15:59 +0100)
API is now compatible with nettle 2.7.x

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/nettle/0001-disable-testsuite-examples.patch [new file with mode: 0644]
package/nettle/0001-fix-shared-only-build.patch [deleted file]
package/nettle/0002-disable-testsuite-examples.patch [deleted file]
package/nettle/nettle.hash
package/nettle/nettle.mk

diff --git a/package/nettle/0001-disable-testsuite-examples.patch b/package/nettle/0001-disable-testsuite-examples.patch
new file mode 100644 (file)
index 0000000..82d97d5
--- /dev/null
@@ -0,0 +1,20 @@
+Makefile: disable testsuite and example
+
+We do not need them in the context of Buildroot.
+
+Also, they break for a shared-only build (but it's fixed in patch 0001).
+
+Signed-off-by:  "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+diff -durN nettle-2.7.1.orig/Makefile.in nettle-2.7.1/Makefile.in
+--- nettle-2.7.1.orig/Makefile.in      2013-05-28 16:21:54.000000000 +0200
++++ nettle-2.7.1/Makefile.in   2014-12-12 19:57:12.499805574 +0100
+@@ -16,7 +16,7 @@
+ OPT_ASM_SOURCES = @OPT_ASM_SOURCES@
+-SUBDIRS = tools testsuite examples
++SUBDIRS = tools
+ include config.make
diff --git a/package/nettle/0001-fix-shared-only-build.patch b/package/nettle/0001-fix-shared-only-build.patch
deleted file mode 100644 (file)
index 3c9b186..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-static/shared: use available libraries when linking our tools/examples/testsuite
-
-For a shared-only build, static libraries do not exist, so the build fails as
-soon as we try to link either of our tools, examples or testsuite utils.
-
-Use whatever libraries are available, with a preference toward using shared
-libraries.
-
-Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-
-diff -durN nettle-2.7.1.orig/config.make.in nettle-2.7.1/config.make.in
---- nettle-2.7.1.orig/config.make.in   2013-05-28 16:21:53.000000000 +0200
-+++ nettle-2.7.1/config.make.in        2014-12-12 19:56:07.031292752 +0100
-@@ -30,6 +30,8 @@
- PACKAGE_VERSION = @PACKAGE_VERSION@
- SHLIBCFLAGS = @SHLIBCFLAGS@
-+@IF_STATIC@LIBS_EXT = .a
-+@IF_SHARED@LIBS_EXT = .so
- LIBNETTLE_MAJOR = @LIBNETTLE_MAJOR@
- LIBNETTLE_MINOR = @LIBNETTLE_MINOR@
-diff -durN nettle-2.7.1.orig/tools/Makefile.in nettle-2.7.1/tools/Makefile.in
---- nettle-2.7.1.orig/tools/Makefile.in        2013-05-28 16:21:54.000000000 +0200
-+++ nettle-2.7.1/tools/Makefile.in     2014-12-12 19:57:12.499805574 +0100
-@@ -34,19 +34,19 @@
- DISTFILES = $(SOURCES) Makefile.in input.h misc.h output.h parse.h
- sexp_conv_OBJS = $(sexp_conv_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
--sexp-conv$(EXEEXT): $(sexp_conv_OBJS) ../libnettle.a
-+sexp-conv$(EXEEXT): $(sexp_conv_OBJS) ../libnettle$(LIBS_EXT)
-       $(LINK) $(sexp_conv_OBJS) -lnettle $(LIBS) -o $@
--nettle-lfib-stream$(EXEEXT): nettle-lfib-stream.$(OBJEXT) ../libnettle.a
-+nettle-lfib-stream$(EXEEXT): nettle-lfib-stream.$(OBJEXT) ../libnettle$(LIBS_EXT)
-       $(LINK) nettle-lfib-stream.$(OBJEXT) -lnettle $(LIBS) -o $@
- pkcs1_conv_OBJS = $(pkcs1_conv_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
--pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../libnettle.a ../libhogweed.a
-+pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../libnettle$(LIBS_EXT) ../libhogweed$(LIBS_EXT)
-       $(LINK) $(pkcs1_conv_OBJS) -lhogweed -lnettle $(LIBS) -o $@
- # FIXME: Avoid linking with gmp
- nettle_hash_OBJS = $(nettle_hash_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
--nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../libnettle.a
-+nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../libnettle$(LIBS_EXT)
-       $(LINK) $(nettle_hash_OBJS) -lnettle $(LIBS) -o $@
-diff -durN nettle-2.7.1.orig/examples/Makefile.in nettle-2.7.1/examples/Makefile.in
---- nettle-2.7.1.orig/examples/Makefile.in     2013-05-28 16:21:54.000000000 +0200
-+++ nettle-2.7.1/examples/Makefile.in  2014-12-12 21:54:48.286251022 +0100
-@@ -117,8 +117,8 @@
-       -lhogweed -lnettle $(BENCH_LIBS) $(LIBS) $(OPENSSL_LIBFLAGS) \
-       -o hogweed-benchmark$(EXEEXT)
--$(TARGETS) : io.$(OBJEXT) ../libnettle.a
--$(HOGWEED_TARGETS): ../libhogweed.a
-+$(TARGETS) : io.$(OBJEXT) ../libnettle$(LIBS_EXT)
-+$(HOGWEED_TARGETS): ../libhogweed$(LIBS_EXT)
- check: $(TS_ALL)
-       LD_LIBRARY_PATH=../.lib PATH="../.lib:$$PATH" srcdir="$(srcdir)" \
-diff -durN nettle-2.7.1.orig/testsuite/Makefile.in nettle-2.7.1/testsuite/Makefile.in
---- nettle-2.7.1.orig/testsuite/Makefile.in    2013-05-28 16:21:54.000000000 +0200
-+++ nettle-2.7.1/testsuite/Makefile.in 2014-12-12 21:55:30.414814549 +0100
-@@ -96,7 +96,7 @@
- include $(srcdir)/.test-rules.make
- $(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) ../nettle-internal.$(OBJEXT) \
--      ../libnettle.a @IF_HOGWEED@ ../libhogweed.a
-+      ../libnettle$(LIBS_EXT) @IF_HOGWEED@ ../libhogweed$(LIBS_EXT)
- # For use as, e.g.,
- #
diff --git a/package/nettle/0002-disable-testsuite-examples.patch b/package/nettle/0002-disable-testsuite-examples.patch
deleted file mode 100644 (file)
index 82d97d5..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-Makefile: disable testsuite and example
-
-We do not need them in the context of Buildroot.
-
-Also, they break for a shared-only build (but it's fixed in patch 0001).
-
-Signed-off-by:  "Yann E. MORIN" <yann.morin.1998@free.fr>
-
-diff -durN nettle-2.7.1.orig/Makefile.in nettle-2.7.1/Makefile.in
---- nettle-2.7.1.orig/Makefile.in      2013-05-28 16:21:54.000000000 +0200
-+++ nettle-2.7.1/Makefile.in   2014-12-12 19:57:12.499805574 +0100
-@@ -16,7 +16,7 @@
- OPT_ASM_SOURCES = @OPT_ASM_SOURCES@
--SUBDIRS = tools testsuite examples
-+SUBDIRS = tools
- include config.make
index 34c38627b6c6a6e122cd2583ad3a8bc55242684a..f506992594feb3366e058294f9df68fbc64502e1 100644 (file)
@@ -1,2 +1,2 @@
 # Locally calculated after checking pgp signature
-sha256 bc71ebd43435537d767799e414fce88e521b7278d48c860651216e1fc6555b40        nettle-2.7.1.tar.gz
+sha256 5fd4d25d64d8ddcb85d0d897572af73b05b4d163c6cc49438a5bfbb8ff293d4c        nettle-3.1.1.tar.gz
index a25bb24322fbbc1ab5c0f6e522ebd0328cd3dd03..67ae0a17cbce6c1b468f6a8cd7f03b1d8f6436c1 100644 (file)
@@ -4,12 +4,12 @@
 #
 ################################################################################
 
-NETTLE_VERSION = 2.7.1
+NETTLE_VERSION = 3.1.1
 NETTLE_SITE = http://www.lysator.liu.se/~nisse/archive
 NETTLE_DEPENDENCIES = gmp
 NETTLE_INSTALL_STAGING = YES
-NETTLE_LICENSE = LGPLv2.1+
-NETTLE_LICENSE_FILES = COPYING.LIB
+NETTLE_LICENSE = Dual GPLv2+/LGPLv3+
+NETTLE_LICENSE_FILES = COPYING.LESSERv3 COPYINGv2
 # don't include openssl support for (unused) examples as it has problems
 # with static linking
 NETTLE_CONF_OPTS = --disable-openssl
@@ -19,17 +19,10 @@ ifeq ($(BR2_ARM_CPU_ARMV4)$(BR2_ARM_CPU_ARMV5),y)
 NETTLE_CONF_OPTS += --disable-assembler
 endif
 
-# ARM NEON, requires binutils 2.21+
-ifeq ($(BR2_ARM_CPU_HAS_NEON)$(BR2_TOOLCHAIN_BUILDROOT)$(BR2_BINUTILS_VERSION_2_20_1),yy)
+ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
 NETTLE_CONF_OPTS += --enable-arm-neon
 else
 NETTLE_CONF_OPTS += --disable-arm-neon
 endif
 
-define NETTLE_DITCH_DEBUGGING_CFLAGS
-       $(SED) '/CFLAGS/ s/ -ggdb3//' $(@D)/configure
-endef
-
-NETTLE_POST_EXTRACT_HOOKS += NETTLE_DITCH_DEBUGGING_CFLAGS
-
 $(eval $(autotools-package))