1 |
On Thu, 10 Nov 2005, Grobian wrote: |
2 |
|
3 |
> > > But, it seems to me that there is a good compromise, along the lines |
4 |
> > > of Diego's eselect proposal (similar to Debian's /etc/alternatives). |
5 |
> > > We could use eselect or similar to maintain a "symlink farm" of |
6 |
> > > g-prefixed symlinks to the GNU binaries. A baselayout revision could |
7 |
> > > safely permit a Gentoo-wide policy whereby such gfoo binaries could |
8 |
> > > be called from any boot script, tool script etc. In this way, you |
9 |
> > > can avoid having to special case the distro in ebuilds and scripts, |
10 |
> > > and you can avoid pulling in redundant deps on systems that ship the |
11 |
> > > same binaries without g-prefixes. On those systems, the vendor |
12 |
> > > package could just be "eselected" to create the symlinks, and indeed |
13 |
> > > the baselayout for such systems could ship with the symlinks already |
14 |
> > > in place. |
15 |
> > |
16 |
> > Assuming I understand your point correctly (which is debatable), that |
17 |
> > is an awfully complicated solution whose primary aim seems to ensure |
18 |
> > that you don't confuse /some/prefix/bin/someutil with |
19 |
> > /usr/bin/someutil by turning one into a symlink to the other. If you |
20 |
> > need to figure out which util is called by default in your shell |
21 |
> > session, try using 'which'. If you need to _ensure_ that you use OS X |
22 |
> > utils while in a shell, a simpler solution would be to not put the |
23 |
> > gentoo directories in $PATH in the first place. |
24 |
> |
25 |
> eselect is a nice idea, but only useful for the user. Portage will |
26 |
> always prefer to use it's 'own' tools, IMHO. |
27 |
|
28 |
Yes, eselect is not really neede. I don't expect the user to need to move |
29 |
symlinks around too often. |
30 |
|
31 |
> If a user wants to use OSX/xargs instead of GNU/xargs, that user should |
32 |
> fiddle with his/her path, don't source the Gentoo prefix script or place |
33 |
> a symlink to OSX/xargs in his/her ~/bin (and make that one come first in |
34 |
> the path). |
35 |
|
36 |
The g-prefixed symlinks aren't there for the users' benefit, they create a |
37 |
uniform environment for gentoo scripts and ebuilds regardless of distro. |
38 |
|
39 |
> |
40 |
> > > That is the only way I can see for compatibility both with the |
41 |
> > > variety of Darwin distros, and with the variety of Gentoo OS's. |
42 |
> > |
43 |
> > Why would Gentoo need to stay compatible with "Darwin distros"? OS X |
44 |
> > isn't going anywhere if you install Gentoo in a prefix. The whole |
45 |
> > idea is to have a Gentoo package manager installing Gentoo stuff in |
46 |
> > it's own little corner of the filesystem. We DO want to keep |
47 |
> > gentoo-osx as compatible as possible with all the __other gentoo |
48 |
> > arch's__ so that we can leverage all the good work being done for |
49 |
> > those arches. |
50 |
> |
51 |
> I think that the first target will be to have maximum compatability with |
52 |
> other Gentoo projects, then we can examine which tools we can use from |
53 |
> the OS without causing trouble (to minimise the install). I'd like to |
54 |
> get it functionally working first. I don't think we kill an alternative |
55 |
> path by doing so. |
56 |
|
57 |
The point is that the policy shouldn't encourage the use of names that |
58 |
aren't needed. Also, the policy shouldn't encourage the use of g-prefixes |
59 |
at all before there is agreement on a plan to provide them in a way that |
60 |
is sufficiently flexible -- otherwise, -alt will only get blamed for more |
61 |
ugly distro specific special cases. |
62 |
|
63 |
-f |
64 |
-- |
65 |
gentoo-osx@g.o mailing list |