From owner-freebsd-current@FreeBSD.ORG Tue Mar 20 00:50:21 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8D71106566C; Tue, 20 Mar 2012 00:50:21 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 52FA08FC1E; Tue, 20 Mar 2012 00:50:21 +0000 (UTC) Received: by vcmm1 with SMTP id m1so9639567vcm.13 for ; Mon, 19 Mar 2012 17:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=eT8VsuZTjmlHz8bpm5n5VDJNKKOknw2dNHaaqeBf/TU=; b=N7848k7A3fo1Q5avhceI8YHLp8pisYb1qWhp5VR199KRhgvYUuaPgDWSMNQwNsMTwm gSisgRT8vpIqkILGFEd7Rn71JM/3zwpFqeRIW5UzGUa6GW+i3lUagKkR92qmsRJ5SITJ YpMFzmDTxfmLRXejivyu/BNO9jpQigILJL/ezEgFnXe5llxmFtIujerfHq9yz5A7et78 aDy16lkVU2wgIqY3n4oN0rTW3WnK5ikAAwJ8FH7q2sAeDgJk9VUihaU1QLM3srcX3Haf r1mc4WtIUCBvrZD6/qjS3IItcbWxxLx+4RB6Hel5BloM90Hs/VCkEqBQHXWdPfXT+uAd kC4w== MIME-Version: 1.0 Received: by 10.52.180.7 with SMTP id dk7mr6086601vdc.25.1332204620831; Mon, 19 Mar 2012 17:50:20 -0700 (PDT) Received: by 10.220.2.130 with HTTP; Mon, 19 Mar 2012 17:50:20 -0700 (PDT) In-Reply-To: <4F67D22B.2040003@freebsd.org> References: <20120319213508.GA1692@azathoth.lan> <4F67D22B.2040003@freebsd.org> Date: Mon, 19 Mar 2012 17:50:20 -0700 Message-ID: From: Garrett Cooper To: Nathan Whitehorn Content-Type: text/plain; charset=ISO-8859-1 Cc: Baptiste Daroussin , 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:50:22 -0000 On Mon, Mar 19, 2012 at 5:41 PM, Nathan Whitehorn wrote: > 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. The only tricky thing is that many OSes don't agree on branding. I don't know how far bapt and crew are willing to go to make pkgng OS agnostic. Thanks, -Garrett