From owner-svn-src-head@FreeBSD.ORG Wed Sep 11 05:49:13 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7EBB6CF5; Wed, 11 Sep 2013 05:49:13 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wg0-x229.google.com (mail-wg0-x229.google.com [IPv6:2a00:1450:400c:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A180626A3; Wed, 11 Sep 2013 05:49:12 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id a12so1430949wgh.4 for ; Tue, 10 Sep 2013 22:49:10 -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=FXOM3MPZbR9H7gu/uD8IHMyN5WV0mMhzOdXAbMF6kns=; b=Qe6XktBh9k9QGBnF1eM8xqN7lxq4Nv3h8FZ2tRYkjcPqG3wyEPJH87YOtla3GkgV+7 jD680wenDK7lFleP4+Tth7Xv0GToBBUQYRBVAeOr/xJXrWxU88c7wPo0iIF8lmbanCM9 LsV8apB0KvytvYg4Becz8u0mgLCPI1GSwGY2y4JLhVu5IspVqB0oeMic+ApuwjpCNvvC SCMk4HZh1L/6AUoligEZdE2WA072pPfAwFea391cSrlckgc3FZoc/sWD8px2hi9WNuU6 ojOfYdm9zG/OAAwZBh7Iry4AnIAKgyGrynvFISrjx5ccEQVBD+F41EKNW6NK9aKQ1Rn1 pC5Q== X-Received: by 10.180.13.83 with SMTP id f19mr15944117wic.54.1378878550914; Tue, 10 Sep 2013 22:49:10 -0700 (PDT) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id jf2sm7960898wic.2.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Sep 2013 22:49:10 -0700 (PDT) Sender: Baptiste Daroussin Date: Wed, 11 Sep 2013 07:49:07 +0200 From: Baptiste Daroussin To: Nathan Whitehorn Subject: Re: svn commit: r255457 - head/usr.sbin/pkg Message-ID: <20130911054907.GK40186@ithaqua.etoilebsd.net> References: <201309102056.r8AKu1rQ000442@svn.freebsd.org> <522FE3A2.2090405@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bPg9NdpM9EETxvqt" Content-Disposition: inline In-Reply-To: <522FE3A2.2090405@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 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: Wed, 11 Sep 2013 05:49:13 -0000 --bPg9NdpM9EETxvqt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 the > > 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 compatibilit= y. > -Nathan Yes we probably can, it encapsulates everything since recently! It wasn't t= he 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. So as I already said to Warner, Yes now that it properly works on all arche= s we could use it but that is not that easy. 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 (pkgng= is already largely deployed) 4. have time to do it There is so much work pending on pkgng, in particular for 10.0 that I just = have no time to work on it. regards, Bapt --bPg9NdpM9EETxvqt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlIwBFMACgkQ8kTtMUmk6EyDAACeNr0ekbof6H/uHYuzismf/iKr W1kAniJ5z0SWLnLmRlZcniQ9lUwpY/dw =CRDN -----END PGP SIGNATURE----- --bPg9NdpM9EETxvqt--