1 |
commit: 3dcd25bb2c1043eda056694be9e7669b6f506b3a |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 26 17:45:08 2013 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 26 17:45:08 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=3dcd25bb |
7 |
|
8 |
synced nss with updates from the portage tree |
9 |
|
10 |
--- |
11 |
.../nss/files/nss-3.15.1-fipstest-warnings.patch | 26 ++++++++++++++++++++++ |
12 |
.../{nss-3.15.1.ebuild => nss-3.15.1-r2.ebuild} | 23 ++++++------------- |
13 |
2 files changed, 33 insertions(+), 16 deletions(-) |
14 |
|
15 |
diff --git a/dev-libs/nss/files/nss-3.15.1-fipstest-warnings.patch b/dev-libs/nss/files/nss-3.15.1-fipstest-warnings.patch |
16 |
new file mode 100644 |
17 |
index 0000000..cf2fd86 |
18 |
--- /dev/null |
19 |
+++ b/dev-libs/nss/files/nss-3.15.1-fipstest-warnings.patch |
20 |
@@ -0,0 +1,26 @@ |
21 |
+https://bugzilla.mozilla.org/show_bug.cgi?id=920899 |
22 |
+ |
23 |
+diff -r 279078670022 security/nss/cmd/fipstest/fipstest.c |
24 |
+--- a/security/nss/cmd/fipstest/fipstest.c Wed Mar 27 17:03:34 2013 -0400 |
25 |
++++ b/security/nss/cmd/fipstest/fipstest.c Thu Sep 26 00:58:04 2013 -0400 |
26 |
+@@ -3616,10 +3616,10 @@ void hmac_test(char *reqfn) |
27 |
+ goto loser; |
28 |
+ } |
29 |
+ msg = PORT_ZAlloc(msgLen); |
30 |
+- memset(msg, 0, msgLen); |
31 |
+ if (msg == NULL) { |
32 |
+ goto loser; |
33 |
+ } |
34 |
++ memset(msg, 0, msgLen); |
35 |
+ |
36 |
+ req = fopen(reqfn, "r"); |
37 |
+ resp = stdout; |
38 |
+@@ -3677,7 +3677,7 @@ void hmac_test(char *reqfn) |
39 |
+ keyLen = 0; |
40 |
+ TLen = 0; |
41 |
+ memset(key, 0, sizeof key); |
42 |
+- memset(msg, 0, sizeof msg); |
43 |
++ memset(msg, 0, msgLen); |
44 |
+ memset(HMAC, 0, sizeof HMAC); |
45 |
+ continue; |
46 |
+ } |
47 |
|
48 |
diff --git a/dev-libs/nss/nss-3.15.1.ebuild b/dev-libs/nss/nss-3.15.1-r2.ebuild |
49 |
similarity index 92% |
50 |
rename from dev-libs/nss/nss-3.15.1.ebuild |
51 |
rename to dev-libs/nss/nss-3.15.1-r2.ebuild |
52 |
index 8779c22..f0f29c8 100644 |
53 |
--- a/dev-libs/nss/nss-3.15.1.ebuild |
54 |
+++ b/dev-libs/nss/nss-3.15.1-r2.ebuild |
55 |
@@ -1,6 +1,6 @@ |
56 |
# Copyright 1999-2013 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.15.1.ebuild,v 1.1 2013/07/24 05:58:28 polynomial-c Exp $ |
59 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.15.1-r2.ebuild,v 1.1 2013/09/26 06:02:24 vapier Exp $ |
60 |
|
61 |
EAPI=5 |
62 |
inherit eutils flag-o-matic multilib toolchain-funcs |
63 |
@@ -26,6 +26,8 @@ RDEPEND=">=dev-libs/nspr-${NSPR_VER} |
64 |
>=dev-db/sqlite-3.5 |
65 |
sys-libs/zlib" |
66 |
|
67 |
+RESTRICT="test" |
68 |
+ |
69 |
S="${WORKDIR}/${P}/${PN}" |
70 |
|
71 |
src_setup() { |
72 |
@@ -39,6 +41,7 @@ src_prepare() { |
73 |
epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch" |
74 |
epatch "${DISTDIR}/${PN}-3.15-pem-support-20130617.patch.xz" |
75 |
epatch "${FILESDIR}/${PN}-3.15-x32.patch" |
76 |
+ epatch "${FILESDIR}/${PN}-3.15.1-fipstest-warnings.patch" |
77 |
cd coreconf |
78 |
# hack nspr paths |
79 |
echo 'INCLUDES += -I$(DIST)/include/dbm' \ |
80 |
@@ -198,7 +201,6 @@ cleanup_chk() { |
81 |
} |
82 |
|
83 |
src_install() { |
84 |
- MINOR_VERSION=12 |
85 |
cd "${S}"/dist |
86 |
|
87 |
dodir /usr/$(get_libdir) |
88 |
@@ -216,16 +218,6 @@ src_install() { |
89 |
# all the include files |
90 |
insinto /usr/include/nss |
91 |
doins public/nss/*.h |
92 |
- cd "${ED}"/usr/$(get_libdir) |
93 |
- local n file |
94 |
- for file in *$(get_libname); do |
95 |
- n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION}) |
96 |
- mv ${file} ${n} |
97 |
- ln -s ${n} ${file} |
98 |
- if [[ ${CHOST} == *-darwin* ]]; then |
99 |
- install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die |
100 |
- fi |
101 |
- done |
102 |
|
103 |
local f nssutils |
104 |
# Always enabled because we need it for chk generation. |
105 |
@@ -247,13 +239,12 @@ src_install() { |
106 |
|
107 |
# Prelink breaks the CHK files. We don't have any reliable way to run |
108 |
# shlibsign after prelink. |
109 |
- local l libs=() |
110 |
+ local l libs=() liblist |
111 |
for l in ${NSS_CHK_SIGN_LIBS} ; do |
112 |
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so") |
113 |
done |
114 |
- OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}" |
115 |
- echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss" |
116 |
- unset libs liblist |
117 |
+ liblist=$(printf '%s:' "${libs[@]}") |
118 |
+ echo -e "PRELINK_PATH_MASK=${liblist%:}" > "${T}/90nss" |
119 |
doenvd "${T}/90nss" |
120 |
} |