Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o, anarchy@g.o
From: Peter Volkov <pva@g.o>
Subject: Re: [gentoo-commits] gentoo-x86 commit in dev-libs/nspr: nspr-4.8.8.ebuild ChangeLog
Date: Mon, 16 May 2011 13:15:35 +0400
В Птн, 13/05/2011 в 21:13 +0000, Jory Pratt (anarchy) пишет:
> plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.161&content-type=text/plain

> src_configure() {
> 	cd "${S}"/build
> 
> 	echo > "${T}"/test.c
> 	$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
> 	case $(scanelf -BF'%M' "${T}"/test.o)$(scanmacho -BF'%M' "${T}"/test.o) in
> 		ELFCLASS64*|POWERPC64*|X86_64*) myconf="${myconf} --enable-64bit";;
> 		ELFCLASS32*|POWERPC*|I386*|ARM*) ;;
> 		*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
> 	esac

Why do you need such complex detection? Also in nss ebuild I see
different detection:

> Index: nss-3.12.10.ebuild
[snip]
> src_compile() {
> 	strip-flags
> 
> 	echo > "${T}"/test.c
> 	$(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o
> 	case $(file "${T}"/test.o) in
> 	*64-bit*|*ppc64*|*x86_64*) export 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

It looks like good idea to unify them.

--
Peter.



Replies:
Re: Re: [gentoo-commits] gentoo-x86 commit in dev-libs/nspr: nspr-4.8.8.ebuild ChangeLog
-- Paweł Hajdan, Jr.
Re: [gentoo-commits] gentoo-x86 commit in dev-libs/nspr: nspr-4.8.8.ebuild ChangeLog
-- Diego Elio Pettenò
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
PHP targets
Next by thread:
Re: [gentoo-commits] gentoo-x86 commit in dev-libs/nspr: nspr-4.8.8.ebuild ChangeLog
Previous by date:
PHP targets
Next by date:
Re: [gentoo-commits] gentoo-x86 commit in dev-libs/nspr: nspr-4.8.8.ebuild ChangeLog


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.