summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/nspr/ChangeLog7
-rw-r--r--dev-libs/nspr/Manifest24
-rw-r--r--dev-libs/nspr/nspr-4.9.5.ebuild109
-rw-r--r--dev-libs/nss/ChangeLog9
-rw-r--r--dev-libs/nss/Manifest27
-rw-r--r--dev-libs/nss/files/nss-3.14.2-solaris-gcc.patch24
-rw-r--r--dev-libs/nss/files/nss-3.14.2-sqlite.patch19
-rw-r--r--dev-libs/nss/files/nss-3.14.2-x32.patch66
-rw-r--r--dev-libs/nss/nss-3.14.2.ebuild272
9 files changed, 553 insertions, 4 deletions
diff --git a/dev-libs/nspr/ChangeLog b/dev-libs/nspr/ChangeLog
index bd65a4a2784b..e7ce1dc0c343 100644
--- a/dev-libs/nspr/ChangeLog
+++ b/dev-libs/nspr/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/nspr
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.216 2013/02/08 14:47:21 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.217 2013/02/15 13:29:14 polynomial-c Exp $
+
+*nspr-4.9.5 (15 Feb 2013)
+
+ 15 Feb 2013; Lars Wendler <polynomial-c@gentoo.org> +nspr-4.9.5.ebuild:
+ Version bump.
08 Feb 2013; Agostino Sarubbo <ago@gentoo.org> nspr-4.9.4.ebuild:
Stable for s390, wrt bug #450286
diff --git a/dev-libs/nspr/Manifest b/dev-libs/nspr/Manifest
index 07ef31eb8a6a..874e6bd258b8 100644
--- a/dev-libs/nspr/Manifest
+++ b/dev-libs/nspr/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX nspr-4.6.1-config-1.patch 565 SHA256 9ed8fd15102ef3de6d837d40ec5d73aef0ea45bf9059b4cf5ff1f47b6a519ed6 SHA512 3556cff96d3e773d6e1762d94b9c325207578e4e910d33464c26b2084f42f2162c5fbb12d8f2206dbe4c5a7ecb1c8c63a699f08bd1b31c5b71eb73d257c46be6 WHIRLPOOL 7c249f1465f65da765b37b256d9cd8c8cef7d5fc7cb8a57f40f29a98cb2247cc3e1ec002f106d50bc531cfc6a8c9de5a85d6f522ad5b8f6e956fc0790d5993b4
AUX nspr-4.6.1-config.patch 2722 SHA256 01bba00a314375cbb056c4e26e059515a6a0df92c62229799abca9f3fa9c7842 SHA512 2c8d0fa5c1bf1b79883fabeb09870e253073fe001fa7fc63c8a2f44a4ec20bc235d4be40c2d1fa247fa93a0d642233a7dee5b4734451cee46b7c1df2a1dd09d1 WHIRLPOOL 31b00c6674b72c705f43f1c41f887448dad880947a63bfd0abe8dc8853a0322e238012c6d2708b5840f35016f1ef812d62bf5e370b84239f86c1b7109947d58d
AUX nspr-4.6.1-lang.patch 1718 SHA256 326f5f9d020e73a6ed8e949124eb075f21d856d0b099b8d04035ecc937cd35fb SHA512 ee23a7fffb36e8ea10fe029dcd2fa374eb397fb038c628d9140f20c9a6267dd2ee4f76fb02ec79698fae4a1493fe58b7b4f28795afd54cb868ef6fce276cf291 WHIRLPOOL 56ad48b4d75cc624382a60d783e36dfaf2c6fc5195f300710a35fa7a058ea4b0f5904e7d6de361e5f340116531c824cd86175dc80e52efbc04f5ded92e592ce9
@@ -18,6 +21,7 @@ DIST nspr-4.8.9.tar.gz 1235265 SHA256 ff43c7c819e72f03bb908e7652c5d5f59a5d31ee86
DIST nspr-4.9.1.tar.gz 1172951 SHA256 5b696b80a3254aa0e5c7f0614b6bb9b14c483df46af66c792993e3d853568d17 SHA512 b7613eb5f97d9d8d0254d454fb516a672664fbf46b34eb03cc51a9b3af11d8cbdc117691c068f8e64a8255aadfd28b2814eda53edcd97a643b26b94b5adec341 WHIRLPOOL 9df74a88ea050d0fb2ff8f8a38d703c2bd77f6ecc4c5e6fe09c240bf9f99266ba56083aed566ea2e0a1df7afdb090861dbe6b45725906af5979242f9b2a82161
DIST nspr-4.9.2.tar.gz 1172193 SHA256 570206f125fc31b8589b31d3837c190ee2a75d4f3b8faec2cbedbeacc016e82c SHA512 1f1f35fc2b9ead7e3b4ef93a02f13c0bcccc314bf9cfad67e6ddb755aaf6ab411499b0b57b94b032e2c7ee21fc7c114ca447e24825b79611f720f88eb37bd348 WHIRLPOOL b50c87f8ba77601ea79282659b4781fe674925bc87bc130dd5acc056021b135769a0d5ed1b76e759c1dfbb0c7df9d6fb0d97d292f42c5d7c5db43233c2498f07
DIST nspr-4.9.4.tar.gz 1160641 SHA256 749046c75be17f2f8b3874d288873d3355cedcb37abe7b6eb7b3bc374440d4a4 SHA512 5c1caf290bbe6cec7fddd40ae1eefbe54608a0f6fce908b1680513c50661dde40f4c1638ddca56b8a7125b20be6945aa2b4507fa0dde09e3e9eb0b08e90cfe2b WHIRLPOOL a9fd7a0c4b17240c746312cdab1495a5d5ebcabcc945a7c2f1a3df435db2d4e5e80e3086d20bd658a94c573abb916611327ad877430c9cd0282e8d192217d707
+DIST nspr-4.9.5.tar.gz 1156396 SHA256 616ab65c849155c9ed0e5f502530a241cc9108e278275aa448b417ae632c7604 SHA512 cbe60e4c5265863fa3250d7c16a2727d3a4a8762d17bc63d044ec88d11758fe9f54f54c08e198db6278ee68c55edd88f7c4bc5db9bdc46bdea4e4cf9eb277f27 WHIRLPOOL d2792148805a99d1f2de919b57e48cfd03290b1f8faaec55d4374004574a578ed3fef110956fbb767a2f7f6d00cb9d594aa3a534e29df5790f3284c4fcea8b7b
DIST nspr-4.9.tar.gz 1218528 SHA256 ecc632bc578c125650999776673eeff952096afa6d151f6d91f6c3a93e1e716a SHA512 c0c18d06919a20f779b683d3ec24a82bcd48693e00f6aff4f66038c55e16305d050b83e1e6b7a4b3d0da5d1f1db699eb11ae111280989c60f5ea5c42420884d9 WHIRLPOOL 3d0be6f316368041b5cae7f00a273c33467f4b8ccc6e14d3a3728d5130a1cb625f44fda89cf9f80c092b70ea26a0958a7238f959e8d06263c5393edd835c7a31
EBUILD nspr-4.8.8.ebuild 3553 SHA256 c178bf852a1fa2150716ff08ade3c6fb2755986bed4fbf44227f068d5e38b86c SHA512 52b0cdc89fd349dbec6ece260e3a1282ba91dd3ec8a60da370d073d1c7f0054092b99d2bdee6f56562d1e9654f8b02c7b1893393119d87b1196267cc0b2660b6 WHIRLPOOL c70fefc921e562db5277f230c2849230405f2c8f449deeb647e6192b9bfca47507dd023e05a53e8cdeee211af8fe580d3b4428c473f4dd7e5b30eac7f11f907f
EBUILD nspr-4.8.9.ebuild 3784 SHA256 888de34db739f48ca4368827b97f91932efb81de781f686995016f346fb0607c SHA512 7d04936f51b9e22c5ed1c6042b8305d1cb886b09aa240e7588f3dfd7059b25d2e0537c79dfd2e3520bc79e7698fe1f6a2bfa1211151c3e1c7259dafab8ae50b7 WHIRLPOOL 32526437e464b825b33dd5c65e89ee5a9deaeda52886b7530f02f3492313e24dc774e5779db8104f4dc56f4547372bc02d374e1ec923baa76f777103fc34f5bf
@@ -25,6 +29,24 @@ EBUILD nspr-4.9.1.ebuild 3653 SHA256 b1d909af59039b012f7a09485385d0639a00d80fdf3
EBUILD nspr-4.9.2-r1.ebuild 3760 SHA256 2086bb41ae781d78f379422db45ce4c6ac55648cf4f26388a6dd757b4125ade3 SHA512 eb7d650eaf43eb90a4c2a2ae2eee9263b5b54d585771d6b4cf5adcb2802f658d92c9525932eecba3b99319511ce6570a8625543f11ad8daaa81f86bd367381c7 WHIRLPOOL 52cb084893d175933aea2d240e0d2a888fd4117909357e04c5c4971fe83a1d1c16f43203a7289e0a5723111821b6ec9704d2d3584204e12a01ff42cdde7501f6
EBUILD nspr-4.9.2.ebuild 3656 SHA256 21e578c935decb6a905d31e081bb7c3a1c520efe9b6436c3fb35cbf572827964 SHA512 5239547b08317f41741011d6ecbf64f381abc6fccf32073464dbaf03201925ca2b6ec1ec1ad2ffcb9f96a4e3a91e435b8cb322a93dd3c137b845629c8d78ceca WHIRLPOOL 4581834ce55ff0c7e8f980b71fa09ba63c2e956b1b55c2666e0d40a56c42f0f3ebacdb199c749939da64c0600e95d2cca8d70c180f1889163337e0ed7c02c788
EBUILD nspr-4.9.4.ebuild 3636 SHA256 93762a1b9d8b9cbc4a3a4fd441f2cbb750a0e4c92aea720325105e962c362a54 SHA512 e177ff28c9a639ad48e5a5263ccbce32276b3c5105fb1e002fbf12506aaa15266f7d5a68fb60affe784d121485504816b0e3c3c618128a41815ff4e318464ad9 WHIRLPOOL 69c78de7c4e7ebbad7e0ee805a118801728d53ef5e5a91d306b319a9eccabeca76953d6c74f502ea9ee497251d7485966624fbba8bcfeba01d38d23f558f85ec
+EBUILD nspr-4.9.5.ebuild 3652 SHA256 e38ada1c71cccde9323f05bb05fdc4d24aa0462f7b2ec0346d358a2e3ec09503 SHA512 4f66bc16983dbfb874c81f171ebeabb6a0ec5c245f62f3de631fe1f1a988315479a3d6f4bc379d0e5391d8335f003c901c91f81df237ea2047624e3d2309aacc WHIRLPOOL 4b1148122d8fac02dad4a2e27b8b1aa4dbc2bf1e5e8cfd0c395a43a5286dc601141bf797be1504448461359366444edbd8bdded55487c9295823b7082a3028da
EBUILD nspr-4.9.ebuild 3702 SHA256 70d3843e5d588eab366a77e35d5205f94decf60493f9670c0fe7ff3940b0c204 SHA512 f3a8b66281183b57278a44f8841dbc68fb3ef7ea45a56dfb46c142219d016641c1accd805b0d790136a96b51223c1a00a08738e77b291893ec050e0e1c18d99e WHIRLPOOL 8762e5b0cf414b64daa81c472daf4841e6209c946f2a1d3dadd1a8150449563b0293e9ba9613fb2d2878fcfdac3e3b7b04a0e9defb0db40f4b27257e1c79fc4f
-MISC ChangeLog 27379 SHA256 e0d7512014de2f294b779056a8329420de08c2556c8129ead1b69ab15c08938a SHA512 c3d7f0f825c9ad75e805a25577cfbf9723814c97c676f0b7fba838315043105eb552f24a6b9c6ab1183f2407bac2ca6cffdce3caf97e8eb66eb7d739fd163909 WHIRLPOOL dd355a54dad3e064b5e1e6d15a80e040a63be52526997f65fa45ede5f6f8461180aaeba7c9d570dd1636952dbc96641eae4a583b4145077b2ac5de47174d7347
+MISC ChangeLog 27506 SHA256 3d7279f3e94483653445be94729efe9b4bbfaeb018122b5fa52babb07d088477 SHA512 772295b8251711e118c4ad247e4205a8fdb7b2e9f14854ceb24af719bcd9a4dd77a11890383c1dad64dce0e2973a8afbba74e9bde260ccba336f1a5b0b3ea92f WHIRLPOOL 5ce653af1a7c2e408aa6ffcb5d3274da26038db03adab857fe89b86d99b95288d9b791186e07d5331f14ed403028ed39d121ed402ca034ee3e3b3d7140a03e13
MISC metadata.xml 160 SHA256 0cc5126362a12cee42ec1197c528a804cf36859329dd2c6d9225726831d14b8b SHA512 ed6f709d55351c1b69f2b43ada124fcc2f8969f8c3867073bb0c68aa502f16247cbcd78734a891e4d1a509d334f6805e5267d2088cd03f3408a636ad9aedc2bb WHIRLPOOL e6bf1791838158287debcc3160dd075dcdf88bc1b33060aefe4687b4451108e55b6f8021fc36f07ab85c4e37a4225444cc2804cf40bd61ba49726bbf12fa4e38
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQIcBAEBCAAGBQJRHjgrAAoJEPiazRVxLXTFd8oQAKiRnJWtBeKUwe0MvEJgMbL5
+vKoCxCdwPO03q/ZNnRxA3GZQBbp/6p+ufIlSWXmYyhLHu4rd71D6IscA59Vw6a+o
+V3moGQTPfxZ1Ob1lHNZczKUBZ7U8cA9bB079eXiJkYRgv5PyKDmII7/5PtgKqNuv
+jgdCE8jdJwJn1egSPeSn9o3PBlHEnuavtJjlWSB2ilUbO32iFAl+mvfCkKHx3J5P
+JBpkBEPFEiK7CRXnFj5hvf4O3TkmeC9vFxDjm3bDkAGyrv7kKPAJHURYddvSJPqr
+rba/pC9jqr5OTKX0By+6CuKiZIYx0KepzomWN/X2H+C/Wta4qeyHX2oACa7Wa3WS
+DN/nwlKC/FZWTg87LMSqohSjPRE+ZQUgDtNYhQ0Ju4DUkQif8MH+lYHyqYviCk20
+4WjnGVL3KTJITnIp/guLdLAAJtYti7Y/BgKXmmItFgjtwaYbwRCjz4AjgfG19kP/
+e/gJTVwIWR86y/35aBeXi2b19iF0C896eDV+QncoFXA4B6kXsJKtAJNSzpbuQQYF
+HrcoabEupobwSEl2TjX5n00DhJwTvNAe4svmpOEXedFh9+p9wsNsujt+KO8+K3kX
+AAlbfKjIY7MWGOH+n/OUSnJUr6CkyhPmQxQZOojc1JEuobf1hn+ugjdDjbolqcZz
+UPpkUwzJHlCrvrKWrIZX
+=6Qdl
+-----END PGP SIGNATURE-----
diff --git a/dev-libs/nspr/nspr-4.9.5.ebuild b/dev-libs/nspr/nspr-4.9.5.ebuild
new file mode 100644
index 000000000000..3024f7624190
--- /dev/null
+++ b/dev-libs/nspr/nspr-4.9.5.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.9.5.ebuild,v 1.1 2013/02/15 13:29:14 polynomial-c Exp $
+
+EAPI=3
+WANT_AUTOCONF="2.1"
+
+inherit autotools eutils multilib toolchain-funcs versionator
+
+MIN_PV="$(get_version_component_range 2)"
+
+DESCRIPTION="Netscape Portable Runtime"
+HOMEPAGE="http://www.mozilla.org/projects/nspr/"
+SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
+
+LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="debug"
+
+src_prepare() {
+ mkdir build inst
+ epatch "${FILESDIR}"/${PN}-4.8-config.patch
+ epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
+ epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
+ epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
+ epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
+ epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
+ epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
+ # Patch needs updating
+ #epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch
+ epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
+ epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
+
+ # We must run eautoconf to regenerate configure
+ cd "${S}"/mozilla/nsprpub
+ eautoconf
+
+ # make sure it won't find Perl out of Prefix
+ sed -i -e "s/perl5//g" "${S}"/mozilla/nsprpub/configure || die
+
+ # Respect LDFLAGS
+ sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
+ "${S}"/mozilla/nsprpub/config/rules.mk || die
+}
+
+src_configure() {
+ cd "${S}"/build
+
+ # We use the standard BUILD_xxx but nspr uses HOST_xxx
+ tc-export_build_env BUILD_CC
+ export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS}
+ tc-export AR CC CXX RANLIB
+ [[ ${CBUILD} != ${CHOST} ]] \
+ && export CROSS_COMPILE=1 \
+ || unset CROSS_COMPILE
+
+ local myconf
+ echo > "${T}"/test.c
+ ${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
+ case $(file "${T}"/test.o) in
+ *32-bit*x86-64*|*64-bit*|*ppc64*|*x86_64*) myconf+=" --enable-64bit";;
+ *32-bit*|*ppc*|*i386*) ;;
+ *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
+ esac
+
+ # Ancient autoconf needs help finding the right tools.
+ LC_ALL="C" ECONF_SOURCE="../mozilla/nsprpub" \
+ ac_cv_path_AR="${AR}" \
+ econf \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ $(use_enable debug) \
+ $(use_enable !debug optimize) \
+ ${myconf}
+}
+
+src_compile() {
+ cd "${S}"/build
+ emake || die "failed to build"
+}
+
+src_install() {
+ # Their build system is royally confusing, as usual
+ MINOR_VERSION=${MIN_PV} # Used for .so version
+ cd "${S}"/build
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ cd "${ED}"/usr/$(get_libdir)
+ einfo "removing static libraries as upstream has requested!"
+ rm -f *.a || die "failed to remove static libraries."
+
+ local n=
+ # aix-soname.patch does this already
+ [[ ${CHOST} == *-aix* ]] ||
+ for file in *$(get_libname); do
+ n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
+ mv ${file} ${n} || die "failed to mv files around"
+ ln -s ${n} ${file} || die "failed to symlink files."
+ if [[ ${CHOST} == *-darwin* ]]; then
+ install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
+ fi
+ done
+
+ # install nspr-config
+ dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
+
+ # Remove stupid files in /usr/bin
+ rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
+}
diff --git a/dev-libs/nss/ChangeLog b/dev-libs/nss/ChangeLog
index 764be4d3911b..841d59b852cf 100644
--- a/dev-libs/nss/ChangeLog
+++ b/dev-libs/nss/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-libs/nss
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/ChangeLog,v 1.283 2013/02/08 14:47:46 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/ChangeLog,v 1.284 2013/02/15 13:30:12 polynomial-c Exp $
+
+*nss-3.14.2 (15 Feb 2013)
+
+ 15 Feb 2013; Lars Wendler <polynomial-c@gentoo.org> +nss-3.14.2.ebuild,
+ +files/nss-3.14.2-solaris-gcc.patch, +files/nss-3.14.2-sqlite.patch,
+ +files/nss-3.14.2-x32.patch:
+ Version bump.
08 Feb 2013; Agostino Sarubbo <ago@gentoo.org> nss-3.14.1.ebuild:
Stable for s390, wrt bug #450286
diff --git a/dev-libs/nss/Manifest b/dev-libs/nss/Manifest
index c589205334bb..56a9060379fe 100644
--- a/dev-libs/nss/Manifest
+++ b/dev-libs/nss/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX nss-3.12.11-CVE-2011-3640.patch 4608 SHA256 d48b2117c52a30c8ef659fc7222f501cce175ead29891ed8dceadd6f7d8bada4 SHA512 2aa77d5d6c33456ef4e57cc42eff490f9689e8a1f2a580228e0dac3530d60b30c989e3b36ec2621da30688dce31e86cb10644596bb0458ca69c1d97ae28e128d WHIRLPOOL 8b600cea13a4a5d8efbf99b6df6dc3d333344012c3783a0d858d4b95f908ca19f57902a355d02913a680709bb81fb7d6bec22cd9dfc37f60843a90e5844990a6
AUX nss-3.12.4-solaris-gcc.patch 842 SHA256 cf2695f4d73ad9de267ffd2e47b2f8940bf56d94b51e66d1e36907b5d6368865 SHA512 ef07fd443bb1bcbf23dc7041c085ae028a7e30720610f266c1b941d1ab7fd0e5591355682e42de415650e8890629a26de25522a98177d4782ba565ea1bd98c1d WHIRLPOOL d1ab130cb39c18b5e87b8c7b40c4cea29c8a259ea4bcfa5c7a511cc7bba32a6b76fcb877f5bc56de0a27962154f7b9000f8646024260b823965f53997d5cf721
AUX nss-3.12.5-gentoo-fixups.diff 6669 SHA256 24593640e682cb7a831cd8a0888397b7b20880c9cfabed76bb647cc12385aef6 SHA512 e367f6b55057bbe2f260128845a31fee17dc37ba11fbfcb18c26a9ebbadbd6833ce44ffd2325a3cbc83669c8163063b9fc59ad4dc842aa27136b88e0b5f75257 WHIRLPOOL 6ef0c60cd2f713ecc33f1c9ea5eb4e6ba7caacb6c620a16f99d791f8b0a558847e8d6ab08a923d4471b2a7682832a81f148d1606dbaba89f45d2b939b5333faa
@@ -7,6 +10,9 @@ AUX nss-3.13.1-pkcs11n-header-fix.patch 614 SHA256 1792baa694e86a79fb07b8d69bf41
AUX nss-3.13.1-solaris-gcc.patch 854 SHA256 5a5406334c9ecd1e338fa91416fed5e8bc19eeb7115511552ba267ed8a25d117 SHA512 c4308848c00bcb55161a22b014c073a50ab2b2a13031fc7beb6235f441f35efb144afcac02a50dfb1be2ec00d823287c6b888fd9b5d6d317aa889e50a615d014 WHIRLPOOL 12a0cfa720553f59b6690cdf0c7b96185d0abf6d9eda3fa93546d4557feb9a42ba6e9756544fd8bd723393aeed26296a927e5bb6294bfb11a5f2a4643fee7d4f
AUX nss-3.13.5-x32.patch 2304 SHA256 ae402bef2c97cdeac3a00430729d3668167af5f957b1c217e3a79a3d54a3d206 SHA512 c9c4aeca3b7cc62037534b8b6dea04088e07f6d817a4f8a9f3af0de1e494119f140b67b1ed79c8c8af670cd6f86faa5366ae34afe4dda353d5e310c68a8122ee WHIRLPOOL a1507439d64dae60c237c105c3e47d5e20ff80451f97bedfa71b693aa99e9590dfb63f7fdb1bad057a6256159e3efa0a58a5941a9fb4f2d9de7aba3ca7b08102
AUX nss-3.14.1-gentoo-fixups.patch 6405 SHA256 f0e6348d757fa1a0840b2fdae7ca53dbf8fd02846cd47026c4c815b929141df5 SHA512 8be37bd621fc8101928b8782910f41df4ba9e47d26937aa3c95f9da646c14daad1d6ac9acd2e856a159efcb7fe661c96fcaf23511dc917ce8a9db40e09b75e29 WHIRLPOOL 8b32fbb736c5ca43d8bf9b99eb51c1fabeb8f6a011cb920708f65271c3a056aa7ca37d18a6f6d39a04257af57458b9c029b6cda5d090ff478fb10b38385dc47f
+AUX nss-3.14.2-solaris-gcc.patch 659 SHA256 d6ac2638602fcf5d73020efb616c2c16d5775d3a75122cc1681c944ddcd0a07f SHA512 5703fa0d6cd793f9622c331983499ce35f696b71589cac347e2a72d4d377ab53d97f79d9b1396bf1f255a933067ebe2f0e4fb6fca9cc5f3c179275d42a6be9f8 WHIRLPOOL b5f49f0a860598cf508ce7ea97165840ab5c068a00f213591d41101c12ec1e5afbffdbad7c3a1d69ef52c34f4d00da0d1aef4a80829f21209c60908e21a2663a
+AUX nss-3.14.2-sqlite.patch 585 SHA256 9672be84ac06e7c041a6704aa03522d75318d801adfedb23f827f62282a712d3 SHA512 e40d674795309e709ee97af8f56af2fc4e4e738d4d5428b4f3d7b2c46b36c07043c1db9f1bf77021c3401736df8ead2b607414eb5dc11120820aa38cda2c81d3 WHIRLPOOL 40fcc0df77d0ba68b2abd4d01356e662e3b277da7e738e4f283b30765044942f0f3ed0cccca69fc916cf1e35394726e66a08792936496732a5945233a82904d1
+AUX nss-3.14.2-x32.patch 1941 SHA256 396e2609aafc24d2a51382f74e2124f3eac615d9ae33a848b1a1cffa2789e1e9 SHA512 2b056701ee0d3af16d93ed965d60a55e46cce2a60c946b922f75461c91284242d32746358637292b0e7cf0013ce906b69c04545e23ca26500ef4028f00b49fe8 WHIRLPOOL 03f49c9547e47068e1ff894fec74163b7fadf6ff7e8c2a3ca0ed5b2a18c40cdb9e7f9dfb9666fd748d595925568606e138a27f2674f9f197d59b932a8777d86c
DIST nss-3.12.11.tar.gz 5944840 SHA256 d043f8d44212bc9418b6a954ca88e05b8ab2a71f8c59e6829a9a36d8a28e9f16 SHA512 3ed1134c972cee9ac23a77adc4c38eeb0597d0734b13b561ec74480560eb77b259ebc9708e4ecd8cc1565bfb6ae9e471c7131dd26ca48e6b427284c3c005ec6a WHIRLPOOL e4cc92496e62c49dd89e2263848154aeadcaea22b51d227e4f8dc41c1e8f9e7922f8e0ff7b99dffde845780a6277696b83339c49eff903885e0cf0ba5f283443
DIST nss-3.13.2-add_cacert_ca_certs-ported.patch 70938 SHA256 bd3e14436695c903279c2cf8982c8df0f20ab34cbe1a7f955aaf861f19a3bf25 SHA512 0b68f54fd5b7239cd05dd217b9fe0d64cb5942c2058f86990ddb65d4ea0c141bd750b79ebaa735c44bdea2798ce014228b6c9cc797d9c2cfd768c09ebe62e3e8 WHIRLPOOL 10b8756c211e6411a6483466518fe994c5732ae331d8b4f1bf0f4612496ee3072dcbb6c3b9f98d9744b01ed1ee681415eb3a8f83cb364926d6353a20fdb36e3f
DIST nss-3.13.2.tar.gz 6082528 SHA256 92eafdbb62e3071afe71beeaca94c9f33b0b8d11654cbf1797c84aa9f7c1c8e5 SHA512 017bb994257452304e6c42ecb7320221a41b2c83fe183e3172b4df93f65289c90083d361f417d9167981e9f6553a5fd59144a24b9cd72370747e371363243f49 WHIRLPOOL 84c0487f1fa99709db8991a7d24c78f1eaf2820909e789c24546b552a76dd665e9d5123e28b857e56bc5cf57d005dd0f8afbeda9aaede37cb25850259b13d9c6
@@ -20,6 +26,7 @@ DIST nss-3.13.6.tar.gz 6109538 SHA256 f7e90727e0ecc1c29de10da39a79bc9c53b814ccfb
DIST nss-3.14-add_spi+cacerts_ca_certs.patch 52742 SHA256 15ed527acdf49922fcfab624c8d796d908e65217f40887963bb2457c7e1585cd SHA512 60f1123d98ebd0f6f5d03f5f9accd77e4a2e287be576a1d339902ee5f6b5e3ddfb6e4c96260c4a1902e5b89fed5865c8f5fa721105868ef11c204e845f591a8c WHIRLPOOL 2dfa0738ab7b15493c3935a9d8297dc9734b8f12895373e58853c84c2257d4f0145a5600081da4d63e0f59341a8756d366fe1b5ce6214c54e91aabe2ef76f3e5
DIST nss-3.14.1-add_spi+cacerts_ca_certs.patch 25018 SHA256 82ca25982828fd7153ad15fc6e81408c115476eeeb4045d3a71469380b56824b SHA512 2aafbd972b073061bfd66a66a4b50060691957f2910f716f7a69d22d655c499f186f05db2101bea5248a00949f339327ba8bfffec024c61c8ee908766201ae00 WHIRLPOOL c9fe397e316dac7983b187acf7227078ebd8f8da5df53f77f2564489e85f123c4d2afb88d56e8dc14b9ebfffe8a71ade4724b3c1ea683c5c4c487cb3a64eda43
DIST nss-3.14.1.tar.gz 5814063 SHA256 80a5d4872da13d0272636ad04e1beddcf8d4572bcc0d47dbea1d12fb592fb7e5 SHA512 f62a7ebcdade8815379f80929c63de1284c3ca3f5c87214cb5b327f6689635118d301969d4ef0e1940c7a426253b13ce54acd68a91abc23ab32626341217580e WHIRLPOOL 8b292433ec764cfe857bd7cb25c216905b785c536176ece14571c9e7017a93c7a8562502645d71eed7da9f5cc52c65564c294a8a2b75ea43bda19049d6c393bb
+DIST nss-3.14.2.tar.gz 6178419 SHA256 a22691209f4c4989812939c7e38c48a1df09f4b80e7ce4c66b66c9a59235ae95 SHA512 65303f09ef09900512da8d19f7f35f50ef07926256bc5b548a665b5f2ea82bf02548bc8464e0f3723014f3f0f3d2e908faf9ef82b564be21adb7da7f5295e137 WHIRLPOOL 71063478b5083e7cad64e06e84fc8a713c45b85ce9d6f0ad1af16c38b5cbb89779fd35c93813644a8d0c0c1e729805b957c44b6b0f7acf60c8032ed0eb98b4a9
DIST nss-3.14.tar.gz 6068755 SHA256 b01868959d50263265aacc5a09f9a9eefbbde5f35604c2977f9714696f1d3e2b SHA512 c5aba091fddcdd57a8cda879a90cf05eeacedf5d734be8eaaec9051aaa6c468b0c8b9816db3cb864859702f90f49fd37971eca98754763b778dcd5fb3d1f7358 WHIRLPOOL b795c55c4dcb7878c4e887b6dc52213d1c31e09ea969df0d8b642b1010b5900c8734de70287141be2ca93a77631b312e68e9e781689f158bb104c501882046ae
EBUILD nss-3.12.11-r1.ebuild 7122 SHA256 d5841f3fcc82b82daec8e8af075ce0da6188eed4138ec55bad35472590917fb1 SHA512 8bb37d7f83cd9e3612676eb3bfae7cfdfac52f1c0b1fa53dbcc7a5ab37581717236cc3652c3b9bc9b35e2beb541372ee459e3b6de4b53ed3d1d61517a65063fd WHIRLPOOL b34fd3889fe2b9e42c7f7d6acf1504c4d7b1972155f090db312b76f86d906046a595bb1cbc959bbf2e4503729e9733f48729647584a2f519a7555cd4358237bf
EBUILD nss-3.13.2.ebuild 6661 SHA256 893ccc693582e62752fc6647b8609cf1e4b4f2ab6bd373a126a5b9e9224e3c1e SHA512 0f78b650a10ce5b0dfe693223fc4e857fb42bc58668a8dd60bf14660427b4df3c9317e97c0b0c70279d3c00cbb9aa3346f812ba10412046fd00cbaf7dc1289c8 WHIRLPOOL dc6424a7915138c3e131a286ac5d891fb973704be3acd0b9128153bbeb297d77bc40a2801ea731f3de43117b34cbda49e3100caa749c83d8404bb17da48999ad
@@ -29,6 +36,24 @@ EBUILD nss-3.13.5-r1.ebuild 6936 SHA256 4f21e7f2f61a1814e75156f2ee9f24f010e23cf2
EBUILD nss-3.13.5.ebuild 6840 SHA256 3b183c22aba6a227f376fd0c96794caaf419eaf5198bcab9bb06ec1e32abb329 SHA512 f3fa6d400fba87f79c600b9eb20943c7f4ed113b055af1434fd0aae5d4feaffffd0077ae7d1887415ff33666508614472ad12e1d8b6276aab6980a4f5ebdb575 WHIRLPOOL 8cdeb14fefaffd7fdbf553ac4e2409cb8986ba6ba8865fcc2655e4a2461bca6755cdb9ad0b990c9c900332dc84ef08add4ba1e878c22239abc8db7e69104dd70
EBUILD nss-3.13.6.ebuild 6932 SHA256 48eadcec8edd1fd4adcaefd3cfa37b32d8432ccc8e6da2fb68f15b273816d2a4 SHA512 3488876c17ce6be98f574a4fbebfb00ab56894528b5a113eb038a474861333dcdffc47989dfa8442c42e2066516b5365973e4ff6041581411d36d99074100091 WHIRLPOOL 14837b1e890d150f3c541f08e63951d34715d671a71647f12b9fa62cfe4d4e05f7894bc4068c4a39bedb899cb56d688cbec73659571eed86a82ac2dea5eb089b
EBUILD nss-3.14.1.ebuild 8038 SHA256 17ffe26dc530fad85720ef400cb10a0c1d08248ca9ae3d7689cd05f968ebf4cd SHA512 564c282018d228c9ea0408a8e8e43bbbd79bc7cc77dd02db9cf2b59b1b36ba501ba6f8242c8c5a25a78714cfe7ffc20ed639cde08ae99f428be7a6c81fd41b00 WHIRLPOOL 578cbe379ebe5cf9f163c858144a4ccf2dd1bd36c390a9b128a61eaab8bd609536fe522d098cb76b6fb54c94124d22053694e1d5e0a7f608e51e981d27cf3457
+EBUILD nss-3.14.2.ebuild 8103 SHA256 684afb3156cdd95218408e5c75798a10c0308bd07bd4ae6c7e34562b15854e33 SHA512 5c9e8a2a57e75f6ad74476427ece3297b37102fb60164729a7f741a9e6ef381b66d6a4e1270a054dfe6dd0507ac36a09f9561fb1a60a3daf2c3f56223d3339cc WHIRLPOOL 09e3dc2099be0f8b2510d930471be432b9dff988d2e61f1d4c80329a73b9783557a2cc53c1a7ae05be6426449507834df4ebafb65d8216f0268bf20986594141
EBUILD nss-3.14.ebuild 6924 SHA256 49852b0d512544ecb4e81101ffc72fb26bd450659baa1e76de296aa882c2f42e SHA512 01617e0045ce500ee093b3bbcba2c9599fef3a97aff19667ad1f6ee824d479f953f23717ebb542d22a759a533c0319abe88442d4fa2fd51f31f6cfb931e504e9 WHIRLPOOL bc9b93765b5f4c2398b656fef5c57a96e11cae0ff394b4c0c115b9e57b08c61c89b7ba93d77a94121a4077eac67dc048b5503f0cc9e18e2ca0662b873f2e237a
-MISC ChangeLog 35408 SHA256 52362f8e2d810e37fd59be832a4d58c631a65f94325e76fd2437e81bca5ed7b2 SHA512 a2af337f5e2d3c76477d37504b6eae58cb41477a05fd96421eab74b66b75ab00df2bd4c6caad2368ddc12be1af02d289ca92e7c74ff7174a1d2bad5c9b930dc2 WHIRLPOOL 57c01794ed7ee339ab9d383720513572e5347e1c035618665a66cb171cd66481c355cef6cf03a4d21be89c112c9fa2f11d74b4a32c752e175dcfb0c38bdc6409
+MISC ChangeLog 35637 SHA256 a487070a30ad38e8c667c09463c030e790305925cd0ef58f77b80b9ea9d6bc7b SHA512 1f1918c0e5c83a09b718b086f1af1ca761f2f85dff0bde0ff3cdbf28bcb75666f008051efcc01974c8688638bb4047461ac01eed6beb12eba40900f1af3ffd79 WHIRLPOOL 06efcaea83722fcc0ee0d4ebc43f9ed6943350d96dee10fc5d16c9da719b3b2f03cc7da08d3b16627f6be573d19f4c92486ed8e67e90ec80a48f163c4878c083
MISC metadata.xml 245 SHA256 58443b11f9dff75b5d4391f03dbafd90305a0ec8f046f8f0068fb95777c01bd4 SHA512 3564c5476cd817e6ee8276a450cf646c8df81bfb90455345b8cd6f2cdd6c62b07cbf19f3c1abbcf1a02f9f91a034807303b5e6765df24404375b79fe13a646bd WHIRLPOOL 64c44be7cbb44e7707ef243d989222f3e498b4d23f6e1a875ac481d6577f54444c9dd575e92330d6d018c8f1084858a417eed59e650b7119842c7624a01d7462
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQIcBAEBCAAGBQJRHjhlAAoJEPiazRVxLXTFe+QQANxnWfYGlsHcfQ3PdFFI4Zw9
+5gmZNx2fyI343drdJIbfKrrORHgPpyEWlRgeCX2oxa4glPXq5ujtbQQ8hriMYTS5
+GXxKxfmdY/OyuGL1YTkWUOm1cOBuDqMnKQ6xcR3MqWHYcE4Gvr5YNSgvOp4FgCKl
+S1ZlNIjFkXgP5YPQ6hw00zHZIDCvA7L54X5DHMdeHsUfa15/pIdTK7xA+0l6gm29
+y5xNvONHT82GgkR+9kIimVvoeP/vdNNjmjyqSNVg3WK390O4d329QAPtBFFOcbIT
+q4RoZAWGHEvj55bbckO3+e1Q01WCYSZMQ+Qt80bbY4yE1eRNc3nbL1D8xxx+QbDs
+1/BWZJk3KZxkfH88fquds86TuEMHl7kxtkvua5v5vEjfFcGT4NE2y+DPbm1XmwYT
+npcjqWg+YUgDDpFPHTCkRSy/5J9qHPDc5HoIPldeSouIaPNCE0s0H/9sfi/g5heC
+mTn89+s2Bi6yTAFJmeZosr0n71/q0sIl+BSKm1vYjdMBh3ep5qaDofv8kFXQpWbl
+VRRnkn1CpI8oaogKQQz1XpJxP+P6ep5MpykTpIT1TyA9gymgUYgb9FN0pAE6VuKp
+wlWKPdc794sHE1+DZd7lZMMgz4JOkXWJNx9F0uP2MoCqps3y6hNGV09V+wu1YWZR
+xXbL3Ks21/1FxTmSyGuL
+=DS3x
+-----END PGP SIGNATURE-----
diff --git a/dev-libs/nss/files/nss-3.14.2-solaris-gcc.patch b/dev-libs/nss/files/nss-3.14.2-solaris-gcc.patch
new file mode 100644
index 000000000000..a23725da22a4
--- /dev/null
+++ b/dev-libs/nss/files/nss-3.14.2-solaris-gcc.patch
@@ -0,0 +1,24 @@
+--- nss-3.14.2/mozilla/security/coreconf/SunOS5.mk
++++ nss-3.14.2/mozilla/security/coreconf/SunOS5.mk
+@@ -5,6 +5,9 @@
+
+ include $(CORE_DEPTH)/coreconf/UNIX.mk
+
++NS_USE_GCC = 1
++GCC_USE_GNU_LD = 1
++
+ # Sun's WorkShop defines v8, v8plus and v9 architectures.
+ # gcc on Solaris defines v8 and v9 "cpus".
+ # gcc's v9 is equivalent to Workshop's v8plus.
+@@ -71,11 +74,6 @@
+ NOMD_OS_CFLAGS += $(DSO_CFLAGS) $(OS_DEFINES) $(SOL_CFLAGS)
+
+ MKSHLIB = $(CC) $(DSO_LDOPTS) $(RPATH)
+-ifdef NS_USE_GCC
+-ifeq (GNU,$(findstring GNU,$(shell `$(CC) -print-prog-name=ld` -v 2>&1)))
+- GCC_USE_GNU_LD = 1
+-endif
+-endif
+ ifdef MAPFILE
+ ifdef NS_USE_GCC
+ ifdef GCC_USE_GNU_LD
diff --git a/dev-libs/nss/files/nss-3.14.2-sqlite.patch b/dev-libs/nss/files/nss-3.14.2-sqlite.patch
new file mode 100644
index 000000000000..48d1ddbe0c13
--- /dev/null
+++ b/dev-libs/nss/files/nss-3.14.2-sqlite.patch
@@ -0,0 +1,19 @@
+Index: mozilla/security/nss/lib/softoken/sdb.c
+===================================================================
+RCS file: /cvsroot/mozilla/security/nss/lib/softoken/sdb.c,v
+retrieving revision 1.30
+diff -u -u -r1.30 sdb.c
+--- mozilla/security/nss/lib/softoken/sdb.c 16 Jan 2013 18:13:25 -0000 1.30
++++ mozilla/security/nss/lib/softoken/sdb.c 4 Feb 2013 19:15:58 -0000
+@@ -254,6 +254,10 @@
+ #error "sdb_getFallbackTempDir not implemented"
+ #endif
+
++#ifndef SQLITE_FCNTL_TEMPFILENAME
++#define SQLITE_FCNTL_TEMPFILENAME 16
++#endif
++
+ static char *
+ sdb_getTempDir(sqlite3 *sqlDB)
+ {
+
diff --git a/dev-libs/nss/files/nss-3.14.2-x32.patch b/dev-libs/nss/files/nss-3.14.2-x32.patch
new file mode 100644
index 000000000000..08c1d19ebaa7
--- /dev/null
+++ b/dev-libs/nss/files/nss-3.14.2-x32.patch
@@ -0,0 +1,66 @@
+--- nss-3.14.2/mozilla/security/coreconf/Linux.mk
++++ nss-3.14.2/mozilla/security/coreconf/Linux.mk
+@@ -50,21 +50,28 @@
+ else
+ ifeq ($(OS_TEST),alpha)
+ OS_REL_CFLAGS = -D_ALPHA_
+ CPU_ARCH = alpha
+ else
+ ifeq ($(OS_TEST),x86_64)
+ ifeq ($(USE_64),1)
+ CPU_ARCH = x86_64
++ ARCHFLAG = -m64
++else
++ifeq ($(USE_x32),1)
++ OS_REL_CFLAGS = -Di386
++ CPU_ARCH = x86
++ ARCHFLAG = -mx32
+ else
+ OS_REL_CFLAGS = -Di386
+ CPU_ARCH = x86
+ ARCHFLAG = -m32
+ endif
++endif
+ else
+ ifeq ($(OS_TEST),sparc64)
+ CPU_ARCH = sparc
+ else
+ ifeq (,$(filter-out arm% sa110,$(OS_TEST)))
+ CPU_ARCH = arm
+ else
+ ifeq (,$(filter-out parisc%,$(OS_TEST)))
+--- nss-3.14.2/mozilla/security/nss/lib/freebl/Makefile
++++ nss-3.14.2/mozilla/security/nss/lib/freebl/Makefile
+@@ -188,22 +188,26 @@
+ # comment the next two lines to turn off intel HW accelleration
+ DEFINES += -DUSE_HW_AES
+ ASFILES += intel-aes.s intel-gcm.s
+ EXTRA_SRCS += intel-gcm-wrap.c
+ INTEL_GCM = 1
+ MPI_SRCS += mpi_amd64.c mp_comba.c
+ endif
+ ifeq ($(CPU_ARCH),x86)
+- ASFILES = mpi_x86.s
+- DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
+- DEFINES += -DMP_ASSEMBLY_DIV_2DX1D
+- DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
+- # The floating point ECC code doesn't work on Linux x86 (bug 311432).
+- #ECL_USE_FP = 1
++ ifeq ($(USE_x32),1)
++ DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
++ else
++ ASFILES = mpi_x86.s
++ DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
++ DEFINES += -DMP_ASSEMBLY_DIV_2DX1D
++ DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
++ # The floating point ECC code doesn't work on Linux x86 (bug 311432).
++ #ECL_USE_FP = 1
++ endif
+ endif
+ ifeq ($(CPU_ARCH),arm)
+ DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
+ DEFINES += -DMP_USE_UINT_DIGIT
+ DEFINES += -DSHA_NO_LONG_LONG # avoid 64-bit arithmetic in SHA512
+ MPI_SRCS += mpi_arm.c
+ endif
+ endif # Linux
diff --git a/dev-libs/nss/nss-3.14.2.ebuild b/dev-libs/nss/nss-3.14.2.ebuild
new file mode 100644
index 000000000000..5249a1e14637
--- /dev/null
+++ b/dev-libs/nss/nss-3.14.2.ebuild
@@ -0,0 +1,272 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.14.2.ebuild,v 1.1 2013/02/15 13:30:12 polynomial-c Exp $
+
+EAPI=3
+inherit eutils flag-o-matic multilib toolchain-funcs
+
+NSPR_VER="4.9.5"
+RTM_NAME="NSS_${PV//./_}_RTM"
+
+DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
+HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
+SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
+ http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch
+ http://dev.gentoo.org/~anarchy/patches/${PN}-3.13.3_pem.support"
+
+LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="utils"
+
+DEPEND="virtual/pkgconfig
+ >=dev-libs/nspr-${NSPR_VER}"
+
+RDEPEND=">=dev-libs/nspr-${NSPR_VER}
+ >=dev-db/sqlite-3.5
+ sys-libs/zlib"
+
+src_setup() {
+ export LC_ALL="C"
+}
+
+src_prepare() {
+ # Custom changes for gentoo
+ epatch "${FILESDIR}/${PN}-3.14.1-gentoo-fixups.patch"
+ epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
+ epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
+ epatch "${DISTDIR}/${PN}-3.13.3_pem.support"
+ epatch "${FILESDIR}/${PN}-3.14.2-x32.patch"
+ epatch "${FILESDIR}/${PN}-3.14.2-sqlite.patch"
+
+ cd "${S}"/mozilla/security/coreconf || die
+ # hack nspr paths
+ echo 'INCLUDES += -I$(DIST)/include/dbm' \
+ >> headers.mk || die "failed to append include"
+
+ # modify install path
+ sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
+ -i source.mk || die
+
+ # Respect LDFLAGS
+ sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk || die
+
+ # Ensure we stay multilib aware
+ sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
+
+ # Fix pkgconfig file for Prefix
+ sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
+ "${S}"/mozilla/security/nss/config/Makefile || die
+
+ epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
+
+ # use host shlibsign if need be #436216
+ if tc-is-cross-compiler ; then
+ sed -i \
+ -e 's:"${2}"/shlibsign:shlibsign:' \
+ "${S}"/mozilla/security/nss/cmd/shlibsign/sign.sh || die
+ fi
+
+ # dirty hack
+ cd "${S}"/mozilla/security/nss || die
+ sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
+ lib/ssl/config.mk || die
+ sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
+ cmd/platlibs.mk || die
+}
+
+nssarch() {
+ # Most of the arches are the same as $ARCH
+ local t=${1:-${CHOST}}
+ case ${t} in
+ hppa*) echo "parisc";;
+ i?86*) echo "i686";;
+ x86_64*) echo "x86_64";;
+ *) tc-arch ${t};;
+ esac
+}
+
+nssbits() {
+ echo > "${T}"/test.c || die
+ ${!1} ${CPPFLAGS} ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
+ case $(file "${T}"/test.o) in
+ *32-bit*x86-64*) echo USE_x32=1;;
+ *64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
+ *32-bit*|*ppc*|*i386*) ;;
+ *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
+ esac
+}
+
+src_compile() {
+ strip-flags
+
+ tc-export AR RANLIB {BUILD_,}{CC,PKG_CONFIG}
+ local makeargs=(
+ CC="${CC}"
+ AR="${AR} rc \$@"
+ RANLIB="${RANLIB}"
+ OPTIMIZER=
+ $(nssbits CC)
+ )
+
+ # Take care of nspr settings #436216
+ append-cppflags $(${PKG_CONFIG} nspr --cflags)
+ append-ldflags $(${PKG_CONFIG} nspr --libs-only-L)
+ unset NSPR_INCLUDE_DIR
+ export NSPR_LIB_DIR=${T}/fake-dir
+
+ # Do not let `uname` be used.
+ if use kernel_linux ; then
+ makeargs+=(
+ OS_TARGET=Linux
+ OS_RELEASE=2.6
+ OS_TEST="$(nssarch)"
+ )
+ fi
+
+ export BUILD_OPT=1
+ export NSS_USE_SYSTEM_SQLITE=1
+ export NSDISTMODE=copy
+ export NSS_ENABLE_ECC=1
+ export XCFLAGS="${CFLAGS} ${CPPFLAGS}"
+ export FREEBL_NO_DEPEND=1
+ export ASFLAGS=""
+
+ local d
+
+ # Build the host tools first.
+ LDFLAGS="${BUILD_LDFLAGS}" \
+ XCFLAGS="${BUILD_CFLAGS}" \
+ emake -j1 -C mozilla/security/coreconf \
+ CC="${BUILD_CC}" \
+ $(nssbits BUILD_CC) \
+ || die
+ makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
+
+ # Then build the target tools.
+ for d in dbm nss ; do
+ emake -j1 "${makeargs[@]}" -C mozilla/security/${d} || die "${d} make failed"
+ done
+}
+
+# Altering these 3 libraries breaks the CHK verification.
+# All of the following cause it to break:
+# - stripping
+# - prelink
+# - ELF signing
+# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
+# Either we have to NOT strip them, or we have to forcibly resign after
+# stripping.
+#local_libdir="$(get_libdir)"
+#export STRIP_MASK="
+# */${local_libdir}/libfreebl3.so*
+# */${local_libdir}/libnssdbm3.so*
+# */${local_libdir}/libsoftokn3.so*"
+
+export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
+
+generate_chk() {
+ local shlibsign="$1"
+ local libdir="$2"
+ einfo "Resigning core NSS libraries for FIPS validation"
+ shift 2
+ local i
+ for i in ${NSS_CHK_SIGN_LIBS} ; do
+ local libname=lib${i}.so
+ local chkname=lib${i}.chk
+ "${shlibsign}" \
+ -i "${libdir}"/${libname} \
+ -o "${libdir}"/${chkname}.tmp \
+ && mv -f \
+ "${libdir}"/${chkname}.tmp \
+ "${libdir}"/${chkname} \
+ || die "Failed to sign ${libname}"
+ done
+}
+
+cleanup_chk() {
+ local libdir="$1"
+ shift 1
+ local i
+ for i in ${NSS_CHK_SIGN_LIBS} ; do
+ local libfname="${libdir}/lib${i}.so"
+ # If the major version has changed, then we have old chk files.
+ [ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
+ && rm -f "${libfname}.chk"
+ done
+}
+
+src_install () {
+ MINOR_VERSION=12
+ cd "${S}"/mozilla/security/dist || die
+
+ dodir /usr/$(get_libdir) || die
+ cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
+ # We generate these after stripping the libraries, else they don't match.
+ #cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
+ cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
+
+ # Install nss-config and pkgconfig file
+ dodir /usr/bin || die
+ cp -L */bin/nss-config "${ED}"/usr/bin || die
+ dodir /usr/$(get_libdir)/pkgconfig || die
+ cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
+
+ # all the include files
+ insinto /usr/include/nss
+ doins public/nss/*.h || die
+ cd "${ED}"/usr/$(get_libdir) || die
+ local n file
+ for file in *$(get_libname); do
+ n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
+ mv ${file} ${n} || die
+ ln -s ${n} ${file} || die
+ if [[ ${CHOST} == *-darwin* ]]; then
+ install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
+ fi
+ done
+
+ local f nssutils
+ # Always enabled because we need it for chk generation.
+ nssutils="shlibsign"
+ if use utils; then
+ # The tests we do not need to install.
+ #nssutils_test="bltest crmftest dbtest dertimetest
+ #fipstest remtest sdrtest"
+ nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
+ cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
+ nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
+ pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
+ symkeyutil tstclnt vfychain vfyserv"
+ fi
+ cd "${S}"/mozilla/security/dist/*/bin/ || die
+ for f in $nssutils; do
+ dobin ${f} || die
+ done
+
+ # Prelink breaks the CHK files. We don't have any reliable way to run
+ # shlibsign after prelink.
+ local l libs=()
+ for l in ${NSS_CHK_SIGN_LIBS} ; do
+ libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
+ done
+ OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
+ echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss" || die
+ unset libs liblist
+ doenvd "${T}/90nss" || die
+}
+
+pkg_postinst() {
+ # We must re-sign the libraries AFTER they are stripped.
+ local shlibsign="${EROOT}/usr/bin/shlibsign"
+ # See if we can execute it (cross-compiling & such). #436216
+ "${shlibsign}" -h >&/dev/null
+ if [[ $? -gt 1 ]] ; then
+ shlibsign="shlibsign"
+ fi
+ generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
+}
+
+pkg_postrm() {
+ cleanup_chk "${EROOT}"/usr/$(get_libdir)
+}