public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ian Stakenvicius" <axs@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mozilla:master commit in: dev-libs/nss/
Date: Sat, 14 Jun 2014 04:50:29 +0000 (UTC)	[thread overview]
Message-ID: <1402721344.9cf55556444d69f0169c84572ca262722fc02179.axs@gentoo> (raw)

commit:     9cf55556444d69f0169c84572ca262722fc02179
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 14 04:49:04 2014 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Sat Jun 14 04:49:04 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=9cf55556

multilib ebuild fixes, thanks to jcallen

---
 dev-libs/nss/nss-3.16-r1.ebuild | 89 ++++++++++++++++++++---------------------
 1 file changed, 43 insertions(+), 46 deletions(-)

diff --git a/dev-libs/nss/nss-3.16-r1.ebuild b/dev-libs/nss/nss-3.16-r1.ebuild
index 32c011f..b2362da 100644
--- a/dev-libs/nss/nss-3.16-r1.ebuild
+++ b/dev-libs/nss/nss-3.16-r1.ebuild
@@ -36,9 +36,9 @@ RESTRICT="test"
 
 S="${WORKDIR}/${P}/${PN}"
 
-src_setup() {
-	export LC_ALL="C"
-}
+MULTILIB_CHOST_TOOLS=(
+	/usr/bin/nss-config
+)
 
 src_unpack() {
 	unpack ${A}
@@ -48,51 +48,48 @@ src_unpack() {
 }
 
 src_prepare() {
-	multilib_copy_sources
-
-	abi_specific_src_prepare() {
-		cd "${BUILD_DIR}"
-
-		# Custom changes for gentoo
-		epatch "${FILESDIR}/${PN}-3.15-gentoo-fixups.patch"
-		epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
-		use cacert && epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
-		use nss-pem && epatch "${FILESDIR}/${PN}-3.15.4-enable-pem.patch"
-		epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
-
-		pushd coreconf
-		# hack nspr paths
-		echo 'INCLUDES += -I$(DIST)/include/dbm' \
+	# Custom changes for gentoo
+	epatch "${FILESDIR}/${PN}-3.15-gentoo-fixups.patch"
+	epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
+	use cacert && epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
+	use nss-pem && epatch "${FILESDIR}/${PN}-3.15.4-enable-pem.patch"
+	epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
+
+	pushd coreconf >/dev/null || die
+	# hack nspr paths
+	echo 'INCLUDES += -I$(DIST)/include/dbm' \
 		>> headers.mk || die "failed to append include"
 
-		# modify install path
-		sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
-			-i source.mk
+	# modify install path
+	sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
+		-i source.mk
 
-		# Respect LDFLAGS
-		sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
-		popd
+	# Respect LDFLAGS
+	sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
+	popd >/dev/null
 
-		# Ensure we stay multilib aware
-		sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" config/Makefile
+	# Fix pkgconfig file for Prefix
+	sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
+		config/Makefile
 
-		# Fix pkgconfig file for Prefix
-		sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
-			config/Makefile
+	# use host shlibsign if need be #436216
+	if tc-is-cross-compiler ; then
+		sed -i \
+			-e 's:"${2}"/shlibsign:shlibsign:' \
+			cmd/shlibsign/sign.sh
+	fi
 
-		# use host shlibsign if need be #436216
-		if tc-is-cross-compiler ; then
-			sed -i \
-				-e 's:"${2}"/shlibsign:shlibsign:' \
-				cmd/shlibsign/sign.sh
-		fi
+	# dirty hack
+	sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
+		lib/ssl/config.mk
+	sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
+		cmd/platlibs.mk
 
-		# dirty hack
-		sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
-			lib/ssl/config.mk
-		sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
-			cmd/platlibs.mk
+	multilib_copy_sources
 
+	abi_specific_src_prepare() {
+		# Ensure we stay multilib aware
+		sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" "${BUILD_DIR}"/config/Makefile
 	}
 
 	multilib_parallel_foreach_abi abi_specific_src_prepare
@@ -138,7 +135,7 @@ multilib_src_compile() {
 	local myCPPFLAGS="${CPPFLAGS} $(${PKG_CONFIG} nspr --cflags)"
 	local myLDFLAGS="${LDFLAGS} $(${PKG_CONFIG} nspr --libs-only-L)"
 	unset NSPR_INCLUDE_DIR
-	#export NSPR_LIB_DIR=${T}/fake-dir-${ABI}
+	#export NSPR_LIB_DIR=${T}/fake-dir-${ABI} - do this further down now
 
 	# Do not let `uname` be used.
 	if use kernel_linux ; then
@@ -161,7 +158,7 @@ multilib_src_compile() {
 	# Build the host tools first.
 	LDFLAGS="${BUILD_LDFLAGS}" \
 	XCFLAGS="${BUILD_CFLAGS}" \
-	NSPR_LIB_DIR="${T}-${ABI}-fake-dir" \
+	NSPR_LIB_DIR="${T}/${ABI}-fake-dir" \
 	emake -j1 -C coreconf \
 		CC="${BUILD_CC}" \
 		$(nssbits BUILD_)
@@ -225,7 +222,7 @@ cleanup_chk() {
 }
 
 multilib_src_install() {
-	pushd dist
+	pushd dist >/dev/null || die
 
 	dodir /usr/$(get_libdir)
 	cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
@@ -243,7 +240,7 @@ multilib_src_install() {
 	insinto /usr/include/nss
 	doins public/nss/*.h
 
-	popd
+	popd >/dev/null
 
 	local f nssutils
 	# Always enabled because we need it for chk generation.
@@ -260,11 +257,11 @@ multilib_src_install() {
 			pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
 			symkeyutil tstclnt vfychain vfyserv"
 		fi
-		pushd dist/*/bin
+		pushd dist/*/bin >/dev/null || die
 		for f in ${nssutils}; do
 			dobin ${f}
 		done
-		popd
+		popd >/dev/null
 	fi
 
 	# Prelink breaks the CHK files. We don't have any reliable way to run


             reply	other threads:[~2014-06-14  4:50 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-14  4:50 Ian Stakenvicius [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-04-20  9:01 [gentoo-commits] proj/mozilla:master commit in: dev-libs/nss/ Lars Wendler
2020-04-20  7:49 Lars Wendler
2020-04-10 11:14 Lars Wendler
2020-03-07 15:17 Jory Pratt
2020-02-10 17:46 Jory Pratt
2020-02-08 15:17 Jory Pratt
2020-01-15 10:36 Lars Wendler
2020-01-07 20:46 Jory Pratt
2019-12-16  3:11 Jory Pratt
2019-12-06  5:44 Jory Pratt
2019-11-22  9:10 Lars Wendler
2019-10-06 11:15 Lars Wendler
2019-08-31 15:39 Jory Pratt
2019-08-23 20:23 Jory Pratt
2019-07-10  8:24 Lars Wendler
2019-06-25  8:03 Lars Wendler
2019-05-17  1:55 Jory Pratt
2019-05-13 12:03 Lars Wendler
2019-04-27 22:22 Jory Pratt
2019-04-27 22:07 Jory Pratt
2019-03-31 19:43 Jory Pratt
2018-06-06 16:03 Jory Pratt
2018-05-22  8:33 Lars Wendler
2018-03-21  7:49 Lars Wendler
2018-03-07 13:00 Lars Wendler
2018-01-20 10:06 Lars Wendler
2017-09-21 22:28 Lars Wendler
2017-09-17 18:46 Jory Pratt
2017-06-12 13:36 Jory Pratt
2017-02-08  0:34 Jory Pratt
2016-07-09  3:25 Ian Stakenvicius
2016-02-16  7:28 Lars Wendler
2015-11-15 18:58 Jory Pratt
2014-06-14  5:19 Ian Stakenvicius
2014-03-31 18:21 Jory Pratt
2013-12-11 14:03 Jory Pratt
2013-11-14 11:50 Lars Wendler
2013-09-27  1:16 Jory Pratt
2013-08-11 21:34 Jory Pratt
2013-01-22  4:47 Lars Wendler
2012-09-01 13:46 Jory Pratt
2012-06-11 20:14 Jory Pratt
2012-04-09  0:36 Jory Pratt
2012-03-25  3:37 Jory Pratt
2012-02-27 15:50 Jory Pratt
2012-01-11  5:04 Jory Pratt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1402721344.9cf55556444d69f0169c84572ca262722fc02179.axs@gentoo \
    --to=axs@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox