On Thu, 28 Jan 2010 16:17:41 +0100
Beber <[email protected]> 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

Reply via email to