From: "Ian Stakenvicius" <axs@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mozilla:master commit in: dev-libs/nspr/
Date: Thu, 12 Jun 2014 20:30:13 +0000 (UTC) [thread overview]
Message-ID: <1402604930.2b60b152decfdb866be9f6fda470fde0c03cea97.axs@gentoo> (raw)
commit: 2b60b152decfdb866be9f6fda470fde0c03cea97
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 12 15:27:09 2014 +0000
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Thu Jun 12 20:28:50 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=2b60b152
dropped useless DEPEND from new nspr ebuild, expanded src_configure bit'ness check
to use the old method if no specific ABI has been set
---
dev-libs/nspr/nspr-4.10.6.ebuild | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/dev-libs/nspr/nspr-4.10.6.ebuild b/dev-libs/nspr/nspr-4.10.6.ebuild
index 9266a4d..53b4f43 100644
--- a/dev-libs/nspr/nspr-4.10.6.ebuild
+++ b/dev-libs/nspr/nspr-4.10.6.ebuild
@@ -22,7 +22,6 @@ RDEPEND="abi_x86_32? (
!<=app-emulation/emul-linux-x86-baselibs-20140508-r9
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
)"
-DEPEND="${RDEPEND}"
src_prepare() {
# obsolete - mkdir build inst
@@ -60,9 +59,20 @@ multilib_src_configure() {
|| unset CROSS_COMPILE
local myconf
- case ${ABI} in
+ # use ABI first, this will work for most cases
+ case "${ABI}" in
x32) myconf+=" --enable-x32";;
s390x|*64) myconf+=" --enable-64bit";;
+ default) # no abi actually set, figure it out the old way
+ einfo "Running a short build test to determine 64bit'ness"
+ 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 ;;
+ *) ;;
esac
# Ancient autoconf needs help finding the right tools.
next reply other threads:[~2014-06-12 20:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-12 20:30 Ian Stakenvicius [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-02-05 1:15 [gentoo-commits] proj/mozilla:master commit in: dev-libs/nspr/ Jory Pratt
2019-12-04 18:03 Jory Pratt
2019-08-23 21:40 Lars Wendler
2019-03-20 18:50 Jory Pratt
2018-03-07 13:00 Lars Wendler
2018-01-20 10:06 Lars Wendler
2017-09-21 22:28 Lars Wendler
2015-12-07 7:17 Lars Wendler
2014-06-13 14:04 Ian Stakenvicius
2013-11-18 9:15 Lars Wendler
2013-09-27 1:48 Jory Pratt
2013-03-24 20:11 Jory Pratt
2013-03-14 3:12 Jory Pratt
2012-11-25 12:40 Jory Pratt
2012-07-31 3:18 Jory Pratt
2012-07-21 2:42 Jory Pratt
2012-05-07 15:26 Jory Pratt
2012-03-30 13:29 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=1402604930.2b60b152decfdb866be9f6fda470fde0c03cea97.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