From owner-freebsd-current@FreeBSD.ORG Wed Mar 21 15:00:39 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 ECDCE10656E1; Wed, 21 Mar 2012 15:00:39 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 61B7A8FC12; Wed, 21 Mar 2012 15:00:11 +0000 (UTC) Received: from outgoing.leidinger.net (p4FC432FB.dip.t-dialin.net [79.196.50.251]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 67F4F844009; Wed, 21 Mar 2012 15:59:44 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) by outgoing.leidinger.net (Postfix) with ESMTPS id AE8922479; Wed, 21 Mar 2012 15:59:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1332341981; bh=EbasfOGKG7UFEtJgE5Ci2FdN8oRa7mDm18vENraiRyE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=g8ySDN/V31E8J77V1ZCWmYNokuoTvk4XR8sBFEBQXxUqAh5dV1FH4KwyWDHkf9c9S e++KkNNGVGYHWKOEmkgZaFAbaEaAVz+5/gv++OjdMySKyzFX/5xpuziRrRIYeo7fwS IdZ+V0M2YzxnrqETeaaIDfJWwphXAMDOLiEE9ITyRsLZJnXRTyjXT/8Net/btuDPB/ rCCThXeqrl/zAIKHb3geFJODE55jGLXNNwEFNI51K9ZziMDUYlUeZNZfdjhRQma6t9 IMX1IJ+k8VMgJf1BeA3lV8BqzgImWqDj5rIFegw+vIK0qQyxVOdQCVRfLSUIYlqRpN aGHSDGXhjz5ZQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.5/8.14.4/Submit) id q2LExfsB048658; Wed, 21 Mar 2012 15:59:41 +0100 (CET) (envelope-from Alexander@Leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@Leidinger.net using -f Received: from 85.94.224.21 ([85.94.224.21]) by webmail.leidinger.net (Horde Framework) with HTTP; Wed, 21 Mar 2012 15:59:41 +0100 Date: Wed, 21 Mar 2012 15:59:38 +0100 Message-ID: <20120321155938.Horde.MHZBUZjmRSRPaezaqlsb3yA@webmail.leidinger.net> From: Alexander Leidinger To: Baptiste Daroussin References: <20120319213508.GA1692@azathoth.lan> <20120320091935.GF1692@azathoth.lan> <20120320102008.GH2358@deviant.kiev.zoral.com.ua> <20120321143403.Horde.VhlEOJjmRSRPadjLnx7Eh8A@webmail.leidinger.net> <20120321135919.GG9629@azathoth.lan> In-Reply-To: <20120321135919.GG9629@azathoth.lan> User-Agent: Internet Messaging Program (IMP) H4 (5.0.19) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 67F4F844009.AF699 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-0.722, required 6, autolearn=disabled, AWL -0.61, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, T_RP_MATCHES_RCVD -0.01) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1332946787.38304@RinrNITBdpiaN2gcsr3xzw X-EBL-Spam-Status: No 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: Wed, 21 Mar 2012 15:00:40 -0000 Quoting Baptiste Daroussin (from Wed, 21 Mar 2012 14:59:20 +0100): > On Wed, Mar 21, 2012 at 02:34:03PM +0100, Alexander Leidinger wrote: >> Quoting Bruce Cran (from Tue, 20 Mar 2012 >> 14:26:42 +0000): >> >> > On 20 Mar 2012, at 10:20, Konstantin Belousov wrote: >> > >> >> i386-32 and amd64-64 is weird and confusing. >> >> >> >> IMO, you should go either with x86-{32,64} names, or with i386/amd64, >> >> not with a mix. >> > >> > Would we ever want to support something like x32 from Linux (which >> > might be amd64-32)? >> > http://www.linuxplumbersconf.org/2011/ocw/sessions/531 >> >> Not related to x32, but related to the Linux keyword (yes, I'm in the >> wrong branch of this thread, but I don't have the root anymore): >> >> Can you please explain how the linuxulator ports (linux_base-*) fit >> into this? >> >> linux_base-f10 contains 32bit linux binaries, which run in the >> linuxulator on i386 and amd64. If someone steps up and finishes the >> 64bit linux emulation on amd64, we would be able to use a >> linux_base(32) and a linux_base64 (or however we want to name them >> then) on amd64 (both at the same time). The content of the packages >> generated on i386 can be used on amd64 (both are generated from the >> same linux binary RPMs and the few FreeBSD modifications are rm's, >> symlinks and config changes). >> >> Can you please explain and/or give examples which kind of metadata >> those ports would get? > > for packages currently their will be two possible chain for the abi: > the abi defined here or any > > any will be for scripts, data, etc. > > I was thinking about giving a multi arch possibilities for packages > for example: > > arch: ["freebsd:9:x86:32", "freebsd:9:x86:64"] > > when a package can be installed in both i386 and amd64 > > and maybe in the Makefile: > > PKGARCH= i386 amd64 > > or > > PKGARCH= x86:32 x86:64 > > not decided yet > > for scripts: > > PKGARCH= any > > But I haven't decided yet :) This means that you do not try to compute this, you want to rely on metadata from humans. How to you want to handle the common FreeBSD native port (has to be compiled, can be compiled without problems on all FreeBSD architectures (e.g. the "Hello World." program), the binary only works on the architecture it was compiled for)? I assume you do not want to add PKGARCH=$(NATIVE_ARCH) to every port. Maybe PKGARCH?=$(NATIVE_ARCH) in bsd.port.mk? Bye, Alexander. -- Men aren't attracted to me by my mind. They're attracted by what I don't mind... -- Gypsy Rose Lee http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137