Gentoo Archives: gentoo-dev

From: Kent Fredric <kentfredric@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: location of portage tree
Date: Wed, 28 Mar 2012 14:46:38
Message-Id: CAATnKFBZfTM+qLZhAA7E_GfvCxtoDcQ13A4VenWGk3rdpf=A8Q@mail.gmail.com
In Reply to: Re: [gentoo-dev] rfc: location of portage tree by Piotr Szymaniak
1 On 28 March 2012 23:04, Piotr Szymaniak <szarpaj@××××××××.pl> wrote:
2 > Just use categories from repos?
3 >
4 > /usr/portage/distfiles/sys-devel/gcc-1.2.tar.bz2
5 > /usr/portage/distfiles/sys-libs/glibc-2.3.tar.bz2
6 > /usr/portage/distfiles/sys-libs/zlib-3.4.tar.bz2
7 > /usr/portage/distfiles/zomg-soft/zomgawesomesoft-5.3.1.tar.xz
8 > (from zomg repo with custom zomg-soft category ;)
9 >
10 > Btw. what would happen if, ie. mc package - well, two different
11 > packages, one from app-misc, one from sci-libs - but lets say they have
12 > a brand new release 5.0 and there's mc-5.0.tar.bz2 for both of them?
13 >
14
15
16 AAaactually, there's a good way of doing it which could /mostly/ be
17 category based.
18
19 You could in a future EAPI define a variable, say DISTDIRPREFIX , the
20 value of which would *default* to being $CATEGORY, but could be
21 overridden on a per-package basis if it was deemed nessecary to do so.
22
23 So perhaps in the case of something big like Spidermonkey, which might
24 need a copy of Xulrunner or firefox's source code , the package
25 developers could set DISTDIRPREFIX to be something like "x-mozilla"
26 and set that same value for xulrunner, firefox, and seamonkey, and
27 then the "right thing" would always just work.
28
29 And if you *really* wanted to be friendly, you could test after
30 sourcing the ebuild if DISTDIRPREFIX was still $CATEGORY, and if not,
31 create a symlink
32
33 so you'd have
34
35 dev-lang/js185-1.0.0.tar.gz -> x-mozilla/js185-1.0.0.tar.gz # spidermonkey
36 net-libs/firefox-4.0.1.source.tar.bz2 ->
37 x-mozilla/firefox-4.0.1.source.tar.bz2 # xulrunner
38 net-libs/xulrunner-2.0-patches-1.8.tar.bz2 ->
39 x-mozilla/xulrunner-2.0-patches-1.8.tar.bz2 # xulrunner
40 www-client/firefox-10.0-patches-0.5.tar.xz ->
41 x-mozilla/firefox-10.0-patches-0.5.tar.xz # seamonkey
42 www-client/firefox-11.0-patches-0.4.tar.xz ->
43 x-mozilla/firefox-11.0-patches-0.4.tar.xz # firefox
44 www-client/firefox-11.0.source.tar.bz2 ->
45 x-mozilla/firefox-11.0.source.tar.bz2 # firefox
46 www-client/seamonkey-2.7.1.source.tar.bz2 ->
47 x-mozilla/seamonkey-2.7.1.source.tar.bz2 # seamonkey
48 www-client/seamonkey-2.7-patches-03.tar.xz ->
49 x-mozilla/seamonkey-2.7-patches-03.tar.xz # seamonkey
50 x-mozilla/firefox-10.0-patches-0.5.tar.xz
51 x-mozilla/firefox-11.0-patches-0.4.tar.xz
52 x-mozilla/firefox-11.0.source.tar.bz2
53 x-mozilla/firefox-4.0.1.source.tar.bz2
54 x-mozilla/js185-1.0.0.tar.gz
55 x-mozilla/seamonkey-2.7.1.source.tar.bz2
56 x-mozilla/seamonkey-2.7-patches-03.tar.xz
57 x-mozilla/xulrunner-2.0-patches-1.8.tar.bz2
58
59 --
60 Kent
61
62 perl -e  "print substr( \"edrgmaM  SPA NOcomil.ic\\@tfrken\", \$_ * 3,
63 3 ) for ( 9,8,0,7,1,6,5,4,3,2 );"
64
65 http://kent-fredric.fox.geek.nz