From owner-freebsd-current@FreeBSD.ORG Tue Mar 20 00:41:17 2012 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E367D106566B; Tue, 20 Mar 2012 00:41:17 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from argol.doit.wisc.edu (argol.doit.wisc.edu [144.92.197.212]) by mx1.freebsd.org (Postfix) with ESMTP id 7DD8B8FC12; Tue, 20 Mar 2012 00:41:17 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0M1500600R8TCI00@smtpauth3.wiscmail.wisc.edu>; Mon, 19 Mar 2012 19:41:17 -0500 (CDT) Received: from wanderer.tachypleus.net (airbears-136-152-128-56.AirBears.Berkeley.EDU [136.152.128.56]) by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0M1500KXOR8R1020@smtpauth3.wiscmail.wisc.edu>; Mon, 19 Mar 2012 19:41:16 -0500 (CDT) Date: Mon, 19 Mar 2012 17:41:15 -0700 From: Nathan Whitehorn In-reply-to: <20120319213508.GA1692@azathoth.lan> To: Baptiste Daroussin Message-id: <4F67D22B.2040003@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=136.152.128.56 X-Spam-PmxInfo: Server=avs-15, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.3.20.3031, SenderIP=136.152.128.56 References: <20120319213508.GA1692@azathoth.lan> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120220 Thunderbird/10.0.2 Cc: current@FreeBSD.org Subject: Re: ABI/architecture identification for packages X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2012 00:41:18 -0000 On 03/19/12 14:35, Baptiste Daroussin wrote: > Hi all, > > In order to identify architectures I need to find a uniq id for every > possibilities (for pkgng) > > here is the identification I propose: > > arch-class-os-majorversion(-archi_specific_extension) > > arch can be one of the following: > > - x86 for i386 and amd64 (discussed with kib) > - powerpc for powerpc and powerpc64 > - arm > - mips > - sparc > > class may be: > - 32 bits > - 64 bits > > os will always be freebsd :) (lower case) > > majorversion the freebsd major version (10 9 8) > > achi_specific_extension currently only mips and arm are concerned, > for arm could be: > el_oabi > eb_oabi > el_eabi > eb_eabi > One brief comment here: the output of uname -p (arm, armeb, etc.) is meant to encode the ABI completely. All platforms with the same uname -p should be able to execute each other's binaries. Why not just a sequence of `uname -p`-`uname -s`-`uname -r` (or some subset of uname -r)? That should be enough to completely encode compatibility information on almost any operating system. -Nathan