From owner-freebsd-gnome@FreeBSD.ORG Sat Jan 13 18:42:43 2007 Return-Path: X-Original-To: gnome@FreeBSD.org Delivered-To: freebsd-gnome@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5A08316A403; Sat, 13 Jan 2007 18:42:43 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 43E8513C45B; Sat, 13 Jan 2007 18:42:43 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 2017F1A4D82; Sat, 13 Jan 2007 10:42:43 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id BB270512EF; Sat, 13 Jan 2007 13:42:40 -0500 (EST) Date: Sat, 13 Jan 2007 13:42:40 -0500 From: Kris Kennaway To: Alexander Leidinger Message-ID: <20070113184240.GA65217@xor.obsecurity.org> References: <200701111721.l0BHLaZA019340@repoman.freebsd.org> <20070112111726.k4y1ue5w6c0s4owo@webmail.leidinger.net> <20070112121306.48f99e8b.jylefort@FreeBSD.org> <20070113194022.1511ac11@Magellan.Leidinger.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: <20070113194022.1511ac11@Magellan.Leidinger.net> User-Agent: Mutt/1.4.2.2i Cc: Jean-Yves Lefort , gnome@FreeBSD.org, ports@FreeBSD.org Subject: Re: Build arch for configure based upon CPUTYPE, prototype (was: Re: cvs commit: ports/devel/glib20 Makefile) X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jan 2007 18:42:43 -0000 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 13, 2007 at 07:40:22PM +0100, Alexander Leidinger wrote: > Quoting Jean-Yves Lefort (Fri, 12 Jan 2007 12:13:0= 6 +0100): >=20 > > On Fri, 12 Jan 2007 11:17:26 +0100 > > Alexander Leidinger wrote: > >=20 > > > Quoting Jean-Yves Lefort (from Thu, 11 Jan 2007 > > > 17:21:36 +0000 (UTC)): > > > > > > > jylefort 2007-01-11 17:21:36 UTC > > > > > > > > FreeBSD ports repository > > > > > > > > Modified files: > > > > devel/glib20 Makefile > > > > Log: > > > > On i386 (>=3D 486) and amd64, fix the arch passed to configure so= that > > > > glib will implement atomic operations with assembler instructions > > > > rather than mutexes (improves performance). > > > > > > What about setting GNOME_ARCH based upon CPUTYPE instead of hardcoding > > > it to i486? > >=20 > > The problem is not specific to GNOME. I prefer the solution below. > >=20 > > > Or much better: set --build in bsd.port.mk globally based upon CPUTYPE > > > (to iX86 on IA32, I'm not sure if it is wise to change the amd64 one > > > globally). > >=20 > > Yes. And do pass x86_64 for amd64, that's what a majority of configure > > scripts expect since they have linux in mind. >=20 > Hi, the proof of concept is attached. Configure shows i686-portbld... > when building glib20 on my machine (CPUTYPE set to athlon-xp). >=20 > For the final patch I want to sort the list of CPUTYPEs. I'm sending > this version to get some testresults (failing ports?) and > reviews/comments. This is likely to break large numbers of ports, so we can only proceed if you're willing to deal with that. Kris --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFqSggWry0BWjoQKURAiiKAKDcLpfRdq4Vr5t2y35US7fEYXGKNQCg3/Ua ORfv33fsVh0XAyC/bQ5+aBo= =cGK1 -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--