From owner-freebsd-arch@FreeBSD.ORG Wed Jul 10 21:24:41 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 329FD676; Wed, 10 Jul 2013 21:24:41 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) by mx1.freebsd.org (Postfix) with ESMTP id 476341C9A; Wed, 10 Jul 2013 21:24:40 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id m6so6830006wiv.3 for ; Wed, 10 Jul 2013 14:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=12zswVVyoN3nIW0aINUJzq3CYnB7ywsTeBJgK5j5u7U=; b=SDnDgdws5mvA7IR8MPER2IQapF/s+yT0yB+yPw76mRVxDdwCF3q9oCS6FFz7lgNnGb lLBkw7D/NSbX/riyIYtXhCK0TkiHAvlobw9+2lLbGOa1r+2USlpvhNLVlVZHcM4B1gEt SKalORCunfd9h/WRzRxV5fV8QL1wRpwPKxHy2O3xxeUlGr+D4k4k8J39QPv7+Xv3pyYf OQI0ldLFE0Ut/yoNIEZrSj1gDDdVPNoQPRtqjq8PpF1/S+MIpSeR/F/DLMgaccxjp4iy /1H8JD03xK78f1/tH8OEjmJRJL7fI28v2THNkgAW3k/bif+UkpgLzXejlIA7Xy/9lVmx hHyg== X-Received: by 10.194.22.41 with SMTP id a9mr18482490wjf.16.1373491479408; Wed, 10 Jul 2013 14:24:39 -0700 (PDT) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id a6sm21584425wib.10.2013.07.10.14.24.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 10 Jul 2013 14:24:38 -0700 (PDT) Sender: Baptiste Daroussin Date: Wed, 10 Jul 2013 23:24:36 +0200 From: Baptiste Daroussin To: John Baldwin Subject: Re: Adding a MACHINE_ARCH note Message-ID: <20130710212436.GF68830@ithaqua.etoilebsd.net> References: <32F979BD-FB5C-4111-9586-4C5E7C6DFA71@bsdimp.com> <20130710195547.GB68830@ithaqua.etoilebsd.net> <201307101611.37437.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RE3pQJLXZi4fr8Xo" Content-Disposition: inline In-Reply-To: <201307101611.37437.jhb@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Adrian Chadd , Dimitry Andric , Andrew Turner , freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2013 21:24:41 -0000 --RE3pQJLXZi4fr8Xo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 10, 2013 at 04:11:37PM -0400, John Baldwin wrote: > On Wednesday, July 10, 2013 3:55:47 pm Baptiste Daroussin wrote: > > On Wed, Jul 10, 2013 at 12:26:42PM -0700, Adrian Chadd wrote: > > > On 10 July 2013 09:55, Warner Losh wrote: > > >=20 > > > >> That's the reason I replied about it. Not specifically to make it > > > >> happen _everywhere_, but to see if we're about to migrate to a tool > > > >> that doesn't support it, making it a much bigger deal to migrate a= gain > > > >> later. > > > > > > > > I've been talking to Baptiste, and it will support this. > > >=20 > > > Sweet. > > >=20 > > > Thanks! > > >=20 > > >=20 > > > -adrian > >=20 > > Yeah I need to get a simple and uniq way to gather the different ABI, I= have > > been creating my own ABI string to solve this, but I'm far from being a > > specialist. > >=20 > > While thinking about this kind of thing, please please think about a fo= rmat that > > can easily give us a way to figure out a way to get cross ABI binaries = support. > >=20 > > pkgng needs for example to allow i386 packages to be installed on amd64= because > > amd64 does support it. > >=20 > > Maintaining a list the compatibility will be painful. > >=20 > > In my own version I have > > os:version:family:class:... > >=20 > > for example here: > > on FreeBSD 9 i386 we have: > >=20 > > freebsd:9:x86:32 > >=20 > > on FreeBSD 10 amd64 we have: > >=20 > > freebsd:9:x86:64 > >=20 > > now if I do want a package I can install on both amd64 and i386 I just = have to > > create a package saying: > >=20 > > freebsd:9:x86 > >=20 > > or if I want a package that can be installed on all arches: > >=20 > > freebsd:9 > >=20 > > It became complicated for arm and mips because of the multiple variation > > available. >=20 > You should look at how MACHINE_CPUARCH vs MACHINE vs MACHINE_ARCH works. >=20 > Keep in mind that amd64/i386/pc98 should probably have MACHINE_CPUARCH of= x86, > but we just haven't done that yet. If we did that I think you could foll= ow > src's conventions and be fine. Something like: >=20 > os:version:cpuarch:arch >=20 > Where cpuarch =3D=3D MACHINE_CPUARCH (should be x86 on amd64/i386/pc98, b= ut isn't > yet. It ss sane on other platforms) and > arch =3D=3D MACHINE_ARCH (amd64/i386 (for pc98 MACHINE_ARCH is i386)) >=20 > So that would give: >=20 > freebsd:9:x86:amd64 > freebsd:9:x86:i386 (for both pc98 and i386) > freebsd:9:arm:armv6 >=20 > etc. >=20 > I think that means we could eventually support x32 as: >=20 > freebsd:9:x86:x32 >=20 > We might have an x32 world (but perhaps not a kernel?, though we would ne= ed > the headers to DTRT) I do like the idea a lot. regards, Bapt --RE3pQJLXZi4fr8Xo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlHd0RMACgkQ8kTtMUmk6EzoRgCfQAG2PpGMrHuR1/7oxcpt9m69 T94AoKfsXS0TGKh9MfwD8fCYIGT8m6LG =ALBN -----END PGP SIGNATURE----- --RE3pQJLXZi4fr8Xo--