From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NaeO1-0003Pq-2S for garchives@archives.gentoo.org; Fri, 29 Jan 2010 00:06:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A9DEEE0AF0 for ; Fri, 29 Jan 2010 00:06:56 +0000 (UTC) Received: from relay01.mx.bawue.net (relay01.mx.bawue.net [193.7.176.67]) by pigeon.gentoo.org (Postfix) with ESMTP id 75085E0908 for ; Thu, 28 Jan 2010 23:23:17 +0000 (UTC) Received: from jesper.s.riegger.name (p57B4EB08.dip.t-dialin.net [87.180.235.8]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: stoile_) by relay01.mx.bawue.net (Postfix) with ESMTP id 4A68A488E9 for ; Fri, 29 Jan 2010 00:23:16 +0100 (CET) Date: Fri, 29 Jan 2010 00:23:14 +0100 From: Philipp Riegger To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Building custom package for multi-arch/system Message-ID: <20100129002314.55e1c093@jesper.s.riegger.name> In-Reply-To: <20100128151741.GC4462@lady-voodoo.exosec.local> References: <20100128151741.GC4462@lady-voodoo.exosec.local> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.18.6; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 06c8e025-54c6-4ccf-b839-66d01e3b9d60 X-Archives-Hash: cc6d1f646db41153ac63c7e5a1057260 On Thu, 28 Jan 2010 16:17:41 +0100 Beber wrote: > So, I did a wrapper to emerge --buildpkg to create tbz2 with SHA1 in > names function of USE, like : > CHOST="x86_64-pc-linux-gnu" > ACCEPT_KEYWORDS="amd64" > tcpdump > > USE="+chroot +ipv6 -ssl -test -samba -smi" > is placed > under /data/pkg/amd64/x86_64-pc-linux-gnu/net-analyzer/tcpdump-4.0.1_pre20090709+2bf4bfffad82d4ae519f76770b4f7db7b4416738.tbz2 > > USE="+chroot +ipv6 +ssl -test +samba -smi" > is placed > under /data/pkg/amd64/x86_64-pc-linux-gnu/net-analyzer/tcpdump-4.0.1_pre20090709+5e099e8337e4cadfceda6ccf4c881fbb495980bd.tbz2 > So these are the SHA1 sums of the packages? Nice. I would like to see something like this: With different CFLAGS, CHOST etc. the user should set a seperate PKGDIR. USE-flags are encoded in the filename: Sort USE-flags alphabetically, use a 1 for every enabled and a 0 for every disabled USE-flag, make this array smaller using hex code ore base64. > USE="+chroot +ipv6 -ssl -test -samba -smi" 110000 tcpdump-4.0.1_pre20090709+c0.tbz2 > USE="+chroot +ipv6 +ssl -test +samba -smi" 111010 tcpdump-4.0.1_pre20090709+e2.tbz2 Problem with this is, if anything with the USEflags as we see it from outside changes (USE-flags are added, deletes, renamed and therefore change position), this gets none-unique, which can be fixed in several ways. Philipp