Wed Apr 18 21:01:42 2012 UTC ()
Update 3.13.4
* Change distfile to separated source.
Changelog is not shown.
Probably some bugs are fixed.
Tested on NetBSD/i386 6.99.4 and DragonFly/i386 3.0.1.
(ryoon)
diff -r1.50 -r1.51 pkgsrc/devel/nss/Makefile
diff -r0 -r1.21 pkgsrc/devel/nss/distinfo
diff -r0 -r1.5 pkgsrc/devel/nss/patches/patch-ai
diff -r0 -r1.5 pkgsrc/devel/nss/patches/patch-an
diff -r0 -r1.3 pkgsrc/devel/nss/patches/patch-am
diff -r0 -r1.1 pkgsrc/devel/nss/patches/patch-md
diff -r0 -r1.1 pkgsrc/devel/nss/patches/patch-me
diff -r0 -r1.1 pkgsrc/devel/nss/patches/patch-mf
diff -r0 -r1.1 pkgsrc/devel/nss/patches/patch-mg
diff -r0 -r1.1 pkgsrc/devel/nss/patches/patch-mh
diff -r0 -r1.1 pkgsrc/devel/nss/patches/patch-mj
diff -r0 -r1.1 pkgsrc/devel/nss/patches/patch-mn
diff -r0 -r1.1 pkgsrc/devel/nss/patches/patch-security_nss_cmd_shlibsign_sign.sh
--- pkgsrc/devel/nss/Makefile 2012/03/15 08:32:13 1.50
+++ pkgsrc/devel/nss/Makefile 2012/04/18 21:01:42 1.51
| @@ -1,30 +1,32 @@ | | | @@ -1,30 +1,32 @@ |
1 | # $NetBSD: Makefile,v 1.50 2012/03/15 08:32:13 ryoon Exp $ | | 1 | # $NetBSD: Makefile,v 1.51 2012/04/18 21:01:42 ryoon Exp $ |
2 | | | 2 | |
3 | .include "../../devel/xulrunner/dist.mk" | | 3 | DISTNAME= nss-${NSS_RELEASE} |
4 | PKGNAME= nss-${NSS_RELEASE} | | 4 | NSS_RELEASE= 3.13.4 |
5 | NSS_RELEASE= 3.13.3 | | | |
6 | CATEGORIES= security | | 5 | CATEGORIES= security |
| | | 6 | MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=security/nss/releases/NSS_3_13_4_RTM/src/} |
7 | | | 7 | |
8 | MAINTAINER= tnn@NetBSD.org | | 8 | MAINTAINER= tnn@NetBSD.org |
9 | HOMEPAGE= http://www.mozilla.org/projects/security/pki/nss/ | | 9 | HOMEPAGE= http://www.mozilla.org/projects/security/pki/nss/ |
10 | COMMENT= Libraries to support development of security-enabled applications | | 10 | COMMENT= Libraries to support development of security-enabled applications |
11 | | | 11 | |
12 | PKG_DESTDIR_SUPPORT= user-destdir | | 12 | PKG_DESTDIR_SUPPORT= user-destdir |
13 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh | | 13 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh |
14 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh | | 14 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh |
15 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}js/src/configure | | 15 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}js/src/configure |
16 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}configure | | 16 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}configure |
17 | | | 17 | |
| | | 18 | WRKSRC= ${WRKDIR}/${DISTNAME}/mozilla |
| | | 19 | |
18 | USE_TOOLS+= gmake perl pax pkg-config | | 20 | USE_TOOLS+= gmake perl pax pkg-config |
19 | | | 21 | |
20 | .include "../../mk/bsd.prefs.mk" | | 22 | .include "../../mk/bsd.prefs.mk" |
21 | | | 23 | |
22 | .if ${OPSYS} == "Linux" | | 24 | .if ${OPSYS} == "Linux" |
23 | MAKE_ENV+= FREEBL_NO_DEPEND=0 | | 25 | MAKE_ENV+= FREEBL_NO_DEPEND=0 |
24 | .endif | | 26 | .endif |
25 | | | 27 | |
26 | .if ${OBJECT_FMT} == "ELF" | | 28 | .if ${OBJECT_FMT} == "ELF" |
27 | SO_SUFFIX= so | | 29 | SO_SUFFIX= so |
28 | .elif ${OBJECT_FMT} == "Mach-O" | | 30 | .elif ${OBJECT_FMT} == "Mach-O" |
29 | SO_SUFFIX= dylib | | 31 | SO_SUFFIX= dylib |
30 | .else | | 32 | .else |
| @@ -38,35 +40,26 @@ MAKE_ENV+= NS_USE_GCC=YES | | | @@ -38,35 +40,26 @@ MAKE_ENV+= NS_USE_GCC=YES |
38 | | | 40 | |
39 | .for platform in ${LP64PLATFORMS} | | 41 | .for platform in ${LP64PLATFORMS} |
40 | . if ${MACHINE_PLATFORM:M${platform}} | | 42 | . if ${MACHINE_PLATFORM:M${platform}} |
41 | MAKE_ENV+= USE_64=1 | | 43 | MAKE_ENV+= USE_64=1 |
42 | . endif | | 44 | . endif |
43 | .endfor | | 45 | .endfor |
44 | | | 46 | |
45 | MAKE_ENV+= BUILD_OPT=1 | | 47 | MAKE_ENV+= BUILD_OPT=1 |
46 | #MAKE_ENV+= OPTIMIZER=${CFLAGS:Q} | | 48 | #MAKE_ENV+= OPTIMIZER=${CFLAGS:Q} |
47 | MAKE_ENV+= INCLUDES=-I${BUILDLINK_PREFIX.nspr}/include/nspr | | 49 | MAKE_ENV+= INCLUDES=-I${BUILDLINK_PREFIX.nspr}/include/nspr |
48 | MAKE_ENV+= NSS_USE_SYSTEM_SQLITE=1 | | 50 | MAKE_ENV+= NSS_USE_SYSTEM_SQLITE=1 |
49 | MAKE_ENV+= EXTRA_SHARED_LIBS="-Wl,-R${BUILDLINK_PREFIX.nspr}/lib/nspr -Wl,-R,${PREFIX}/lib/nss -L${BUILDLINK_PREFIX.nspr}/lib/nspr -lplc4 -lplds4 -lnspr4" | | 51 | MAKE_ENV+= EXTRA_SHARED_LIBS="-Wl,-R${BUILDLINK_PREFIX.nspr}/lib/nspr -Wl,-R,${PREFIX}/lib/nss -L${BUILDLINK_PREFIX.nspr}/lib/nspr -lplc4 -lplds4 -lnspr4" |
50 | | | 52 | |
51 | pre-configure: | | | |
52 | # sanity check: make sure the nss release is what we think it is. | | | |
53 | # @set -e; if [ '"${NSS_RELEASE}"' != \ | | | |
54 | # "`${AWK} '/NSS_VERSION/ {print $$3}' < \ | | | |
55 | # ${WRKSRC}/security/nss/lib/nss/nss.h`" ]; then \ | | | |
56 | # ${ECHO} "package is out of date"; \ | | | |
57 | # exit 1; \ | | | |
58 | # fi | | | |
59 | | | | |
60 | do-build: | | 53 | do-build: |
61 | cd ${WRKSRC}/security/nss && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \ | | 54 | cd ${WRKSRC}/security/nss && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \ |
62 | build_coreconf build_dbm all | | 55 | build_coreconf build_dbm all |
63 | | | 56 | |
64 | INSTALLATION_DIRS= include/nss lib/nss lib/pkgconfig | | 57 | INSTALLATION_DIRS= include/nss lib/nss lib/pkgconfig |
65 | DIST= ${WRKSRC}/dist | | 58 | DIST= ${WRKSRC}/dist |
66 | | | 59 | |
67 | do-install: | | 60 | do-install: |
68 | (cd ${DIST}/public && pax -Lrwpe . ${DESTDIR}${PREFIX}/include/nss/ ) | | 61 | (cd ${DIST}/public && pax -Lrwpe . ${DESTDIR}${PREFIX}/include/nss/ ) |
69 | (cd ${DIST}/*_OPT.OBJ/lib && \ | | 62 | (cd ${DIST}/*_OPT.OBJ/lib && \ |
70 | pax -Lrwpe *.${SO_SUFFIX} ${DESTDIR}${PREFIX}/lib/nss/ ) | | 63 | pax -Lrwpe *.${SO_SUFFIX} ${DESTDIR}${PREFIX}/lib/nss/ ) |
71 | ${INSTALL_LIB} ${DIST}/*_OPT.OBJ/lib/libcrmf.a \ | | 64 | ${INSTALL_LIB} ${DIST}/*_OPT.OBJ/lib/libcrmf.a \ |
72 | ${DESTDIR}${PREFIX}/lib/nss/ | | 65 | ${DESTDIR}${PREFIX}/lib/nss/ |
$NetBSD: distinfo,v 1.21 2012/04/18 21:01:42 ryoon Exp $
SHA1 (nss-3.13.4.tar.gz) = c5a829c3bd56aa743457faf21469065f87c2db75
RMD160 (nss-3.13.4.tar.gz) = 52c2984b3678af34da55c2b4dc50a1274afa7c59
Size (nss-3.13.4.tar.gz) = 6087584 bytes
SHA1 (patch-ai) = 3444882b0f7f4b63273d8888af88be35ae60933a
SHA1 (patch-am) = 75eb92d1941309ffc13f01d7f1946a2f09170220
SHA1 (patch-an) = e975941955b578f1d3336d546e99f0c464cdd9d7
SHA1 (patch-md) = 6bf5242245b17fbd868a6a978eb5849726f81393
SHA1 (patch-me) = f5a8e29fc004ef7696b67d260384ab23fd1658c2
SHA1 (patch-mf) = de2d47132013a1f6fd12a0893d21eb34dd843b3e
SHA1 (patch-mg) = 75ddcceaffae0bdb6ecb4efd1b5ffca68a8ae8a8
SHA1 (patch-mh) = 0318566ecddafd00d4abd22a08ccab3eb72eabe3
SHA1 (patch-mj) = 197fab0e00256dedc8a5f181ee0d0d6e42d8177f
SHA1 (patch-mn) = a59f31b58547657b96a45a2753aab93866940203
SHA1 (patch-security_nss_cmd_shlibsign_sign.sh) = 0f4a691aacd5f58ab59ce7f11e22b4f6714e6938
$NetBSD: patch-ai,v 1.5 2012/04/18 21:01:42 ryoon Exp $
--- dbm/src/mktemp.c.orig 2009-06-29 18:14:43.000000000 +0200
+++ dbm/src/mktemp.c
@@ -90,7 +90,7 @@ mktemp(char *path)
static int
_gettemp(char *path, register int *doopen, int extraFlags)
{
-#if !defined(_WINDOWS) || defined(_WIN32)
+#if (!defined(_WINDOWS) || defined(_WIN32)) && !defined(errno)
extern int errno;
#endif
register char *start, *trv;
$NetBSD: patch-an,v 1.5 2012/04/18 21:01:42 ryoon Exp $
SHA1_Update conflicts with openssl which may be dynamically loaded
at runtime via libcups or libgssapi so causing a crash due to using
the wrong binding. So rename here to avoid conflict.
--- security/nss/lib/freebl/sha-fast-amd64-sun.s.orig 2009-06-29 18:15:14.000000000 +0200
+++ security/nss/lib/freebl/sha-fast-amd64-sun.s
@@ -1712,9 +1712,9 @@ shaCompress:
.LFE7:
.size shaCompress, .-shaCompress
.align 16
-.globl SHA1_Update
- .type SHA1_Update, @function
-SHA1_Update:
+.globl NSS_SHA1_Update
+ .type NSS_SHA1_Update, @function
+NSS_SHA1_Update:
.LFB5:
pushq %rbp
.LCFI5:
@@ -1800,7 +1800,7 @@ SHA1_Update:
call shaCompress
jmp .L245
.LFE5:
- .size SHA1_Update, .-SHA1_Update
+ .size NSS_SHA1_Update, .-NSS_SHA1_Update
.section .rodata
.align 32
.type bulk_pad.0, @object
@@ -1902,7 +1902,7 @@ SHA1_End:
subl %r8d, %edx
andl $63, %edx
incl %edx
- call SHA1_Update@PLT
+ call NSS_SHA1_Update@PLT
movq %rbx, %rdi
movq %r12, %rsi
shrq $32, %rdi
@@ -2018,7 +2018,7 @@ SHA1_HashBuf:
movl %r12d, %edx
movq %r13, %rsi
movq %rbx, %rdi
- call SHA1_Update@PLT
+ call NSS_SHA1_Update@PLT
leaq -292(%rbp), %rdx
movq %r14, %rsi
movq %rbx, %rdi
$NetBSD: patch-am,v 1.3 2012/04/18 21:01:42 ryoon Exp $
SHA1_Update conflicts with openssl which may be dynamically loaded
at runtime via libcups or libgssapi so causing a crash due to using
the wrong binding. So rename here to avoid conflict.
--- security/nss/lib/freebl/blapi.h.orig 2009-06-29 18:15:13.000000000 +0200
+++ security/nss/lib/freebl/blapi.h
@@ -925,6 +925,8 @@ extern void SHA1_DestroyContext(SHA1Cont
*/
extern void SHA1_Begin(SHA1Context *cx);
+#define SHA1_Update NSS_SHA1_Update
+
/*
** Update the SHA-1 hash function with more data.
** "cx" the context
$NetBSD: patch-md,v 1.1 2012/04/18 21:01:42 ryoon Exp $
???. from www/firefox/patch-ax.
--- security/coreconf/SunOS5.mk.orig 2009-06-29 18:15:11.000000000 +0200
+++ security/coreconf/SunOS5.mk
@@ -156,6 +156,10 @@ endif
endif
DSO_LDOPTS += -z combreloc -z defs -z ignore
+ifdef LIBRUNPATH
+DSO_LDOPTS += -R$(LIBRUNPATH)
+endif
+
# -KPIC generates position independent code for use in shared libraries.
# (Similarly for -fPIC in case of gcc.)
ifdef NS_USE_GCC
$NetBSD: patch-me,v 1.1 2012/04/18 21:01:42 ryoon Exp $
Add DragonFly support.
--- security/nss/lib/freebl/Makefile.orig 2009-06-29 18:15:13.000000000 +0200
+++ security/nss/lib/freebl/Makefile
@@ -212,7 +212,7 @@ endif
# to bind the blapi function references in FREEBLVector vector
# (ldvector.c) to the blapi functions defined in the freebl
# shared libraries.
-ifeq (,$(filter-out BSD_OS FreeBSD Linux NetBSD OpenBSD, $(OS_TARGET)))
+ifeq (,$(filter-out BSD_OS DragonFly FreeBSD Linux NetBSD OpenBSD, $(OS_TARGET)))
MKSHLIB += -Wl,-Bsymbolic
endif
$NetBSD: patch-mf,v 1.1 2012/04/18 21:01:42 ryoon Exp $
Add DragonFly support.
Make sure nss libraries have a run path defined.
--- security/coreconf/config.mk.orig 2011-11-04 21:34:14.000000000 +0000
+++ security/coreconf/config.mk
@@ -63,7 +63,7 @@ endif
#######################################################################
TARGET_OSES = FreeBSD BSD_OS NetBSD OpenUNIX OS2 QNX Darwin BeOS OpenBSD \
- AIX RISCOS WINNT WIN95 WINCE Linux
+ AIX RISCOS WINNT WIN95 WINCE Linux DragonFly
ifeq (,$(filter-out $(TARGET_OSES),$(OS_TARGET)))
include $(CORE_DEPTH)/coreconf/$(OS_TARGET).mk
@@ -207,3 +207,4 @@ endif
DEFINES += -DUSE_UTIL_DIRECTLY
USE_UTIL_DIRECTLY = 1
+EXTRA_SHARED_LIBS += -Wl,-R${PREFIX}/lib/${MOZILLA_PKG_NAME}
$NetBSD: patch-mg,v 1.1 2012/04/18 21:01:42 ryoon Exp $
Add DragonFly support.
--- security/coreconf/DragonFly.mk.orig 2009-06-30 22:20:24.000000000 +0200
+++ security/coreconf/DragonFly.mk
@@ -0,0 +1,83 @@
+#
+# The contents of this file are subject to the Mozilla Public
+# License Version 1.1 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS
+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# rights and limitations under the License.
+#
+# The Original Code is the Netscape security libraries.
+#
+# The Initial Developer of the Original Code is Netscape
+# Communications Corporation. Portions created by Netscape are
+# Copyright (C) 1994-2000 Netscape Communications Corporation. All
+# Rights Reserved.
+#
+# Contributor(s):
+#
+# Alternatively, the contents of this file may be used under the
+# terms of the GNU General Public License Version 2 or later (the
+# "GPL"), in which case the provisions of the GPL are applicable
+# instead of those above. If you wish to allow use of your
+# version of this file only under the terms of the GPL and not to
+# allow others to use your version of this file under the MPL,
+# indicate your decision by deleting the provisions above and
+# replace them with the notice and other provisions required by
+# the GPL. If you do not delete the provisions above, a recipient
+# may use your version of this file under either the MPL or the
+# GPL.
+#
+# Config stuff for DragonFly
+#
+
+include $(CORE_DEPTH)/coreconf/UNIX.mk
+
+DEFAULT_COMPILER = gcc
+CC = gcc
+CCC = g++
+RANLIB = ranlib
+
+ifeq ($(OS_TEST),alpha)
+CPU_ARCH = alpha
+else
+CPU_ARCH = x86
+endif
+
+OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+
+DSO_CFLAGS = -fPIC
+DSO_LDOPTS = -shared -Wl,-soname -Wl,$(notdir $@)
+
+#
+# The default implementation strategy for FreeBSD is pthreads.
+#
+ifndef CLASSIC_NSPR
+USE_PTHREADS = 1
+DEFINES += -D_THREAD_SAFE -D_REENTRANT
+OS_LIBS += -pthread
+DSO_LDOPTS += -pthread
+endif
+
+ARCH = freebsd
+
+MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo aout)
+
+DLL_SUFFIX = so
+
+ifdef LIBRUNPATH
+DSO_LDOPTS += -Wl,-R$(LIBRUNPATH)
+endif
+
+MKSHLIB = $(CC) $(DSO_LDOPTS)
+ifdef MAPFILE
+# Add LD options to restrict exported symbols to those in the map file
+endif
+# Change PROCESS to put the mapfile in the correct format for this platform
+PROCESS_MAP_FILE = cp $(LIBRARY_NAME).def $@
+
+G++INCLUDES = -I/usr/include/g++
+
+INCLUDES += -I/usr/X11R6/include
$NetBSD: patch-mh,v 1.1 2012/04/18 21:01:42 ryoon Exp $
--- security/nss/lib/Makefile.orig 2011-03-18 23:34:05.000000000 +0000
+++ security/nss/lib/Makefile
@@ -70,7 +70,7 @@ endif
ifndef MOZILLA_CLIENT
ifeq ($(OS_ARCH),Linux)
-SYSINIT_SRCDIR = sysinit # Add the sysinit directory to DIRS.
+#SYSINIT_SRCDIR = sysinit # Add the sysinit directory to DIRS.
endif
endif
$NetBSD: patch-mj,v 1.1 2012/04/18 21:01:42 ryoon Exp $
Add DragonFly support.
--- security/coreconf/arch.mk.orig 2009-06-29 18:15:11.000000000 +0200
+++ security/coreconf/arch.mk
@@ -146,7 +146,7 @@ endif
# IRIX 6.5-ALPHA-1289139620.
#
-ifeq (,$(filter-out Linux FreeBSD IRIX,$(OS_ARCH)))
+ifeq (,$(filter-out Linux DragonFly FreeBSD IRIX,$(OS_ARCH)))
OS_RELEASE := $(shell echo $(OS_RELEASE) | sed 's/-.*//')
endif
$NetBSD: patch-mn,v 1.1 2012/04/18 21:01:42 ryoon Exp $
Make sure we link correctly with sqlite3 from pkgsrc.
--- security/nss/lib/softoken/config.mk.orig 2010-07-21 00:52:46.000000000 +0000
+++ security/nss/lib/softoken/config.mk
@@ -80,7 +80,7 @@ else
# $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX.
EXTRA_SHARED_LIBS += \
-L$(DIST)/lib \
- -l$(SQLITE_LIB_NAME) \
+ `pkg-config --libs sqlite3` \
-L$(NSSUTIL_LIB_DIR) \
-lnssutil3 \
-L$(NSPR_LIB_DIR) \
$NetBSD: patch-security_nss_cmd_shlibsign_sign.sh,v 1.1 2012/04/18 21:01:42 ryoon Exp $
This tries to dlopen libsoftokn3.so which is linked against sqlite3,
so we need a directory containing libsqlite3.so in the search path,
beside the directory containing libsoftokn3.so itself.
--- security/nss/cmd/shlibsign/sign.sh.orig 2011-06-15 21:57:52.000000000 +0000
+++ security/nss/cmd/shlibsign/sign.sh
@@ -26,7 +26,7 @@ WIN*)
export LIBPATH
SHLIB_PATH=${1}/lib:${4}:$SHLIB_PATH
export SHLIB_PATH
- LD_LIBRARY_PATH=${1}/lib:${4}:$LD_LIBRARY_PATH
+ LD_LIBRARY_PATH=${1}/lib:${4}:${PREFIX}/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=${1}/lib:${4}:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH