summaryrefslogtreecommitdiff
path: root/security/nettle/patches
diff options
context:
space:
mode:
authordrochner <drochner>2013-03-15 18:22:03 +0000
committerdrochner <drochner>2013-03-15 18:22:03 +0000
commit5cfa37424e76045d890cb04ac91e6b64ef80fa27 (patch)
tree11a8b7fdf3c8970d6809ea573cce919acc7c00e7 /security/nettle/patches
parent51d04b5b3144246065fe140ef6053dd5abfe0969 (diff)
downloadpkgsrc-5cfa37424e76045d890cb04ac91e6b64ef80fa27.tar.gz
update to 2.6
changes: -support for PKCS #5 PBKDF2, SHA3, GOST R 34.11-94 -bugfixes -minor improvements
Diffstat (limited to 'security/nettle/patches')
-rw-r--r--security/nettle/patches/patch-Makefile.in22
-rw-r--r--security/nettle/patches/patch-aa13
-rw-r--r--security/nettle/patches/patch-testsuite_Makefile.in23
-rw-r--r--security/nettle/patches/patch-tools_Makefile.in20
-rw-r--r--security/nettle/patches/patch-x86_camellia-crypt-internal.asm15
5 files changed, 47 insertions, 46 deletions
diff --git a/security/nettle/patches/patch-Makefile.in b/security/nettle/patches/patch-Makefile.in
index 98f6febde61..050e3824cce 100644
--- a/security/nettle/patches/patch-Makefile.in
+++ b/security/nettle/patches/patch-Makefile.in
@@ -1,8 +1,8 @@
-$NetBSD: patch-Makefile.in,v 1.3 2011/08/22 15:09:21 wiz Exp $
+$NetBSD: patch-Makefile.in,v 1.4 2013/03/15 18:22:03 drochner Exp $
Use LIBTOOL.
---- Makefile.in.orig 2011-07-11 13:59:25.000000000 +0000
+--- Makefile.in.orig 2013-01-14 21:44:12.000000000 +0000
+++ Makefile.in
@@ -14,13 +14,13 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = $(INSTALL_PROGRAM) -s
@@ -15,12 +15,12 @@ Use LIBTOOL.
PRE_CPPFLAGS = -I.
# FIXME: Add configuration of LIBEXT?
--LIBTARGETS = libnettle.a @IF_HOGWEED@ libhogweed.a
-+LIBTARGETS = libnettle.la @IF_HOGWEED@ libhogweed.la
- SHLIBTARGETS = $(LIBNETTLE_FORLINK) @IF_HOGWEED@ $(LIBHOGWEED_FORLINK)
+-LIBTARGETS = @IF_STATIC@ libnettle.a @IF_HOGWEED@ libhogweed.a
++LIBTARGETS = @IF_STATIC@ libnettle.la @IF_HOGWEED@ libhogweed.la
+ SHLIBTARGETS = @IF_SHARED@ $(LIBNETTLE_FORLINK) @IF_HOGWEED@ $(LIBHOGWEED_FORLINK)
- TARGETS = aesdata$(EXEEXT) desdata$(EXEEXT) shadata$(EXEEXT) gcmdata$(EXEEXT)\
-@@ -141,18 +141,18 @@ nettle_PURE_OBJS = $(nettle_OBJS:.$(OBJE
+ getopt_SOURCES = getopt.c getopt1.c
+@@ -169,18 +169,18 @@ nettle_PURE_OBJS = $(nettle_OBJS:.$(OBJE
hogweed_OBJS = $(hogweed_SOURCES:.c=.$(OBJEXT))
hogweed_PURE_OBJS = $(hogweed_OBJS:.$(OBJEXT)=.p$(OBJEXT))
@@ -48,8 +48,8 @@ Use LIBTOOL.
+ ${LIBTOOL} --mode=compile --tag=CC $(COMPILE) $(CCPIC_MAYBE) -c $< \
&& $(DEP_PROCESS)
- # Rules building shared libraries
-@@ -205,7 +205,7 @@ des.$(OBJEXT): des.c des.h $(des_headers
+ # Rules building shared libraries.
+@@ -244,7 +244,7 @@ des.$(OBJEXT): des.c des.h $(des_headers
.asm.$(OBJEXT):
$(M4) $(srcdir)/asm.m4 machine.m4 config.m4 \
$< >$*.s
@@ -58,7 +58,7 @@ Use LIBTOOL.
echo "$@ : $< $(srcdir)/asm.m4 machine.m4 config.m4" >$@.d
.asm.p$(OBJEXT):
-@@ -271,7 +271,7 @@ install-here: install-info install-heade
+@@ -317,7 +317,7 @@ install-here: install-doc install-header
install-static: $(LIBTARGETS)
$(MKDIR_P) $(DESTDIR)$(libdir)
for f in $(LIBTARGETS); do \
@@ -66,4 +66,4 @@ Use LIBTOOL.
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} $$f $(DESTDIR)$(libdir) ; \
done
- install-shared-nettle: $(LIBNETTLE_FORLINK)
+ install-dll-nettle:
diff --git a/security/nettle/patches/patch-aa b/security/nettle/patches/patch-aa
new file mode 100644
index 00000000000..405ff05585b
--- /dev/null
+++ b/security/nettle/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1 2013/03/15 18:22:03 drochner Exp $
+
+--- configure.orig 2013-01-14 21:44:12.000000000 +0000
++++ configure
+@@ -6886,7 +6886,7 @@ fi
+ enable_documentation=yes
+
+ else
+- if test "x$enable_documentation" == "xauto" ; then
++ if test "x$enable_documentation" = "xauto" ; then
+ enable_documentation=no
+ else
+ as_fn_error $? "Cannot find 'makeinfo', required for documentation." "$LINENO" 5
diff --git a/security/nettle/patches/patch-testsuite_Makefile.in b/security/nettle/patches/patch-testsuite_Makefile.in
index 20620e4a52a..7e63ebb7784 100644
--- a/security/nettle/patches/patch-testsuite_Makefile.in
+++ b/security/nettle/patches/patch-testsuite_Makefile.in
@@ -1,26 +1,27 @@
-$NetBSD: patch-testsuite_Makefile.in,v 1.2 2011/08/22 15:09:21 wiz Exp $
+$NetBSD: patch-testsuite_Makefile.in,v 1.3 2013/03/15 18:22:03 drochner Exp $
Use LIBTOOL.
---- testsuite/Makefile.in.orig 2011-07-11 13:59:25.000000000 +0000
+--- testsuite/Makefile.in.orig 2013-01-14 21:44:13.000000000 +0000
+++ testsuite/Makefile.in
-@@ -64,8 +64,8 @@ all: $(TARGETS) $(EXTRA_TARGETS)
+@@ -70,9 +70,9 @@ all: $(TARGETS) $(EXTRA_TARGETS)
# to use suffix rules to build the test executables. So we use an
# explicit rule for each and every executable.
-LIB_HOGWEED = @IF_HOGWEED@ -lhogweed
--TEST_OBJS = testutils.$(OBJEXT) $(LIB_HOGWEED) -lnettle $(LIBS)
+LIB_HOGWEED = @IF_HOGWEED@ ../libhogweed.la
-+TEST_OBJS = testutils.$(OBJEXT) $(LIB_HOGWEED) ../libnettle.la $(LIBS)
+ TEST_OBJS = testutils.$(OBJEXT) ../nettle-internal.$(OBJEXT) \
+- $(LIB_HOGWEED) -lnettle $(LIBS)
++ $(LIB_HOGWEED) ../libnettle.la $(LIBS)
- .PHONY: test-rules
- test-rules:
-@@ -83,7 +83,7 @@ test-rules:
+ ../nettle-internal.$(OBJEXT):
+ ( cd .. && $(MAKE) nettle-internal.$(OBJEXT) )
+@@ -93,7 +93,7 @@ test-rules:
include $(srcdir)/.test-rules.make
- $(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) \
+ $(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) ../nettle-internal.$(OBJEXT) \
- ../libnettle.a @IF_HOGWEED@ ../libhogweed.a
+ ../libnettle.la @IF_HOGWEED@ ../libhogweed.la
- # The PATH update is for locating dlls on w*ndows.
- check: $(TS_ALL) $(srcdir)/run-tests
+ # For use as, e.g.,
+ #
diff --git a/security/nettle/patches/patch-tools_Makefile.in b/security/nettle/patches/patch-tools_Makefile.in
index ff308ae78f8..8090b375a65 100644
--- a/security/nettle/patches/patch-tools_Makefile.in
+++ b/security/nettle/patches/patch-tools_Makefile.in
@@ -1,13 +1,13 @@
-$NetBSD: patch-tools_Makefile.in,v 1.2 2011/08/22 15:09:21 wiz Exp $
+$NetBSD: patch-tools_Makefile.in,v 1.3 2013/03/15 18:22:03 drochner Exp $
Use LIBTOOL.
---- tools/Makefile.in.orig 2011-07-11 13:59:25.000000000 +0000
+--- tools/Makefile.in.orig 2013-01-14 21:44:12.000000000 +0000
+++ tools/Makefile.in
-@@ -33,19 +33,19 @@ SOURCES = $(sexp_conv_SOURCES) nettle-ha
- DISTFILES = $(SOURCES) Makefile.in getopt.h input.h misc.h output.h parse.h
+@@ -34,20 +34,20 @@ SOURCES = $(sexp_conv_SOURCES) nettle-ha
+ DISTFILES = $(SOURCES) Makefile.in input.h misc.h output.h parse.h
- sexp_conv_OBJS = $(sexp_conv_SOURCES:.c=.$(OBJEXT))
+ sexp_conv_OBJS = $(sexp_conv_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
-sexp-conv$(EXEEXT): $(sexp_conv_OBJS) ../libnettle.a
- $(LINK) $(sexp_conv_OBJS) -lnettle $(LIBS) -o $@
+sexp-conv$(EXEEXT): $(sexp_conv_OBJS) ../libnettle.la
@@ -18,20 +18,22 @@ Use LIBTOOL.
+nettle-lfib-stream$(EXEEXT): nettle-lfib-stream.$(OBJEXT) ../libnettle.la
+ $(LINK) nettle-lfib-stream.$(OBJEXT) ../libnettle.la $(LIBS) -o $@
- pkcs1_conv_OBJS = $(pkcs1_conv_SOURCES:.c=.$(OBJEXT))
+ pkcs1_conv_OBJS = $(pkcs1_conv_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
-pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../libnettle.a ../libhogweed.a
- $(LINK) $(pkcs1_conv_OBJS) -lhogweed -lnettle $(LIBS) -o $@
+pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../libnettle.la ../libhogweed.la
+ $(LINK) $(pkcs1_conv_OBJS) ../libhogweed.la ../libnettle.la $(LIBS) -o $@
# FIXME: Avoid linking with gmp
- nettle_hash_OBJS = $(nettle_hash_SOURCES:.c=.$(OBJEXT))
+ nettle_hash_OBJS = $(nettle_hash_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
-nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../libnettle.a
+- $(LINK) $(nettle_hash_OBJS) -lnettle $(LIBS) -o $@
+nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../libnettle.la
- $(LINK) $(nettle_hash_OBJS) -lnettle $(LIBS) -o $@
++ $(LINK) $(nettle_hash_OBJS) ../libnettle.la $(LIBS) -o $@
-@@ -62,7 +62,7 @@ check:
+ .c.$(OBJEXT):
+@@ -69,7 +69,7 @@ check:
install: $(TARGETS)
$(MKDIR_P) $(DESTDIR)$(bindir)
for f in $(TARGETS) ; do \
diff --git a/security/nettle/patches/patch-x86_camellia-crypt-internal.asm b/security/nettle/patches/patch-x86_camellia-crypt-internal.asm
deleted file mode 100644
index d785f983494..00000000000
--- a/security/nettle/patches/patch-x86_camellia-crypt-internal.asm
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-x86_camellia-crypt-internal.asm,v 1.1 2011/05/02 21:27:15 adam Exp $
-
-Avoid ambiguous instruction.
-
---- x86/camellia-crypt-internal.asm.orig 2011-05-02 18:31:15.000000000 +0000
-+++ x86/camellia-crypt-internal.asm
-@@ -185,7 +185,7 @@ PROLOGUE(_nettle_camellia_crypt)
- FL(L0, H0, -16)
- FLINV(L1, H1, -8)
- ROUND6
-- sub $8, FRAME_CNT
-+ subl $8, FRAME_CNT
- ja .Lround_loop
-
- movl FRAME_DST, TMP