1 |
On Fri, Jul 21, 2006 at 08:44:35AM +0100, Stuart Herbert wrote: |
2 |
> In fact, categories do not give us the complete ability to have two |
3 |
> packages with the same upstream name in the tree ... because binary |
4 |
> packages do not support category names at all. |
5 |
|
6 |
BZZZZZZZZ. |
7 |
|
8 |
They do actually- the bintree *repository* format flattens the |
9 |
namespace, thus screwing the ability to use category as part of the |
10 |
key for lookup. That said, the binpkgs themselves still carry their |
11 |
original category. |
12 |
|
13 |
Fixing the namespace flattening is easy for bintrees- problem is it'll |
14 |
screw over remote binhost implementation, which relies on remote |
15 |
listdir (essentially) of the All directory to figure out what's |
16 |
available. |
17 |
|
18 |
Personally I'd be inclined to give existing remote bintree |
19 |
implementation the boot (ugly code, slow due to it's design), but |
20 |
others will bitch. |
21 |
|
22 |
> >Unfortunately the category system is deeply embedded in portage and the |
23 |
> >tree, so changing that system is simply not going to happen, which is |
24 |
> >why I've stopped whinging about the semantic inadequacy of the system. |
25 |
> |
26 |
> Instead of whinging about why the existing categories are bad, why not |
27 |
> instead put forward an alternative (preferably with code, but a clear |
28 |
> and consistently argued position would be a start) for something |
29 |
> better? Otherwise, you *are* going to be ignored ... and with good |
30 |
> reason. |
31 |
|
32 |
Just so we're clear, I probably will wedgie anyone who suggests trying |
33 |
to extend the existing tree format with N categories per pkg- sounds |
34 |
nice on paper, but it makes lookup a serious pita- sys-apps/portage, |
35 |
we'll pretend it's actually located in sys-apps, and it's also in |
36 |
category 'pkg-managers'. An atom states 'pkg-managers/portage'; how |
37 |
does a pkg manager do a lookup for it? |
38 |
|
39 |
Has to walk the entire tree... so if N category per pkg is going to be |
40 |
proposed, need to preserve the fast lookup that's there now. |
41 |
|
42 |
~harring |