svn commit: r255457 - head/usr.sbin/pkg

Baptiste Daroussin bapt at FreeBSD.org
Wed Sep 11 05:49:13 UTC 2013


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
> >    
> >    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.
> >    
> >    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.
> >    
> >    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.
> >    
> 
> Picking a random commit: I don't suppose we can just use MACHINE_ARCH 
> for these identifiers? It encapsulates everything needed for compatibility.
> -Nathan

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.

So as I already said to Warner, Yes now that it properly works on all arches 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20130911/014ad4b9/attachment.sig>


More information about the svn-src-head mailing list