From owner-svn-src-head@FreeBSD.ORG Thu Sep 12 06:03:54 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9159AAC4; Thu, 12 Sep 2013 06:03:54 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-we0-x22a.google.com (mail-we0-x22a.google.com [IPv6:2a00:1450:400c:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8ACB022B6; Thu, 12 Sep 2013 06:03:53 +0000 (UTC) Received: by mail-we0-f170.google.com with SMTP id w62so7824810wes.15 for ; Wed, 11 Sep 2013 23:03:52 -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=k0cibDRmsVkp+5yWebgEas4TzoAS6k/opmvZiM5ht+E=; b=R1zkRhGsdxZKDIzv7V8dKV/f04H49zUwR7yr/YutcSw1sGYeeVcfM8dL7BcBNz4CTh R/RDBs0gnDIp+m7AdTXMoZ8Xtv+ouW/CUv3ukPWCORNricgX/W56BLPC8rlR1iosnKp1 WEd6rwryT0CMmyDVxvM8ErAiqcDUngxqiid0xv6Bof5VZ8tUHCri6vjrQwlDEj9oVXQA nly4df1eqUYg+zsJ8DA/RC2K9hhbVdRCnutZwDcdWfA37zDJpNFM6AH9cdTmsQNhgMH7 TRSuT1JdMbTe5E685OTOrBSEEXg9aPQT0GVtu3Z1CwVCd3dbKZ2ehL9Q4utBMmF3N13d dkLw== X-Received: by 10.180.21.170 with SMTP id w10mr3233941wie.62.1378965832080; Wed, 11 Sep 2013 23:03:52 -0700 (PDT) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id gp9sm15044698wib.8.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 11 Sep 2013 23:03:51 -0700 (PDT) Sender: Baptiste Daroussin Date: Thu, 12 Sep 2013 08:03:49 +0200 From: Baptiste Daroussin To: John Baldwin Subject: Re: svn commit: r255457 - head/usr.sbin/pkg Message-ID: <20130912060348.GB33103@ithaqua.etoilebsd.net> References: <201309102056.r8AKu1rQ000442@svn.freebsd.org> <522FE3A2.2090405@freebsd.org> <20130911054907.GK40186@ithaqua.etoilebsd.net> <201309110956.11782.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZfOjI3PrQbgiZnxM" Content-Disposition: inline In-Reply-To: <201309110956.11782.jhb@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Nathan Whitehorn X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2013 06:03:54 -0000 --ZfOjI3PrQbgiZnxM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 11, 2013 at 09:56:11AM -0400, John Baldwin wrote: > On Wednesday, September 11, 2013 1:49:07 am Baptiste Daroussin wrote: > > On Tue, Sep 10, 2013 at 10:29:38PM -0500, Nathan Whitehorn wrote: > > > On 09/10/13 15:56, Baptiste Daroussin wrote: > > > > Author: bapt > > > > Date: Tue Sep 10 20:56:01 2013 > > > > New Revision: 255457 > > > > URL: http://svnweb.freebsd.org/changeset/base/255457 > > > > > > > > Log: > > > > Add support to detect arm vs armv6 > > > > =20 > > > > There are two different versions of the ARM ABI depending on the > > > > TARGET_ARCH. As these are sligntly different a package built for > > > > one may not work on another. We need to detect which one we are = on > > > > by parsing the .ARM.attributes section. > > > > =20 > > > > This will only work on the ARM EABI as this section is part of t= he > > > > ABI definition. As armv6 only supports the ARM EABI this is not a > > > > problem for the oabi. > > > > =20 > > > > Older versions of libelf in FreeBSD fail to read the > > > > .ARM.attributes section needed. As armv6 is unsupported on these > > > > versions we can assume we are running on arm. > > > > =20 > > >=20 > > > Picking a random commit: I don't suppose we can just use MACHINE_ARCH= =20 > > > for these identifiers? It encapsulates everything needed for compatib= ility. > > > -Nathan > >=20 > > Yes we probably can, it encapsulates everything since recently! It wasn= 't the > > case when ABI string was defined, and it lacks an important part of why= the ABI > > string has been designed on pkgng: making a package match multiple arch= via > > simple glob on the ABI line. > >=20 > > So as I already said to Warner, Yes now that it properly works on all a= rches we > > could use it but that is not that easy. > >=20 > > People wanting to go that way should: > > 1. provide a way for pkgng to extract MARCHE_ARCH out of a binary (/bin= /ls) > > (dynamic cross installation ABI detection) > > 2. provide a way to create multiarch ABI out of MACHINE_ARCH > > 3. provide an upgrade path with compatibility for the current string (p= kgng is > > already largely deployed) > > 4. have time to do it > >=20 > > There is so much work pending on pkgng, in particular for 10.0 that I j= ust have > > no time to work on it. >=20 > We actually had a thread about this on arch@ a while back where I think w= e did > largely satisfy your concerns. However, one of the open items is to conv= ert > amd64, i386, and pc98 to set MACHINE_CPUARCH to x86 instead of amd64/i386= (this > would clean up several other things as well). I do think it would be hel= pful > if pkgng used arch strings that were consistent with MACHINE_ARCH so that= the > transition is easier (e.g. x86:i386 and x86:amd64 instead of x86:32 and > x86:64). >=20 I had followed the discussion but I have missed the commit reflecting that.= So I wasn't aware this has been done. I will have a look to integrate it and use= it in pkgng, won't be for 10.0 packages, but I'll make it for 11.* packages a= nd probably 10.1. regards, Bapt --ZfOjI3PrQbgiZnxM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlIxWUQACgkQ8kTtMUmk6ExIgACgnseQ6YPXEhzxbiO7sBpo2LUG BycAnid5l0grpFJjSPkIMGN/uZLxjx0C =hNf3 -----END PGP SIGNATURE----- --ZfOjI3PrQbgiZnxM--