Gentoo Archives: gentoo-dev

From: Philipp Riegger <lists@××××××××××××.de>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Building custom package for multi-arch/system
Date: Fri, 29 Jan 2010 00:06:57
Message-Id: 20100129002314.55e1c093@jesper.s.riegger.name
In Reply to: [gentoo-dev] Building custom package for multi-arch/system by Beber
1 On Thu, 28 Jan 2010 16:17:41 +0100
2 Beber <beber@××××××××.net> wrote:
3
4 > So, I did a wrapper to emerge --buildpkg to create tbz2 with SHA1 in
5 > names function of USE, like :
6 > CHOST="x86_64-pc-linux-gnu"
7 > ACCEPT_KEYWORDS="amd64"
8 > tcpdump
9 >
10 > USE="+chroot +ipv6 -ssl -test -samba -smi"
11 > is placed
12 > under /data/pkg/amd64/x86_64-pc-linux-gnu/net-analyzer/tcpdump-4.0.1_pre20090709+2bf4bfffad82d4ae519f76770b4f7db7b4416738.tbz2
13 >
14 > USE="+chroot +ipv6 +ssl -test +samba -smi"
15 > is placed
16 > under /data/pkg/amd64/x86_64-pc-linux-gnu/net-analyzer/tcpdump-4.0.1_pre20090709+5e099e8337e4cadfceda6ccf4c881fbb495980bd.tbz2
17 >
18
19 So these are the SHA1 sums of the packages? Nice.
20
21 I would like to see something like this:
22
23 With different CFLAGS, CHOST etc. the user should set a seperate PKGDIR.
24
25 USE-flags are encoded in the filename:
26
27 Sort USE-flags alphabetically, use a 1 for every enabled and a 0 for
28 every disabled USE-flag, make this array smaller using hex code ore
29 base64.
30
31 > USE="+chroot +ipv6 -ssl -test -samba -smi"
32
33 110000
34
35 tcpdump-4.0.1_pre20090709+c0.tbz2
36
37 > USE="+chroot +ipv6 +ssl -test +samba -smi"
38
39 111010
40
41 tcpdump-4.0.1_pre20090709+e2.tbz2
42
43 Problem with this is, if anything with the USEflags as we see it from
44 outside changes (USE-flags are added, deletes, renamed and therefore
45 change position), this gets none-unique, which can be fixed in several
46 ways.
47
48 Philipp

Replies

Subject Author
Re: [gentoo-dev] Building custom package for multi-arch/system Bertrand Jacquin <beber@××××××××.net>