Gentoo Archives: gentoo-osx

From: Grobian <grobian@g.o>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] Re: sys-apps/findutils (GNU)
Date: Thu, 10 Nov 2005 17:12:04
Message-Id: 43737F4A.4080708@gentoo.org
In Reply to: Re: [gentoo-osx] Re: sys-apps/findutils (GNU) by Finn Thain
1 Finn Thain wrote:
2 > That is not the primary aim. I'll try and explain it better. Here are
3 > three scenarios:
4 >
5 > - prefix on foriegn distro
6 > (e.g. Debian, Fedora, upstream BSD, Sun Solaris GNU/Solaris, Apple Mac OS,
7 > OpenDarwin, GNU/Darwin...)
8 > - progressive on foreign distro
9 > (same examples)
10 > - single package manager
11 > (e.g. Gentoo Darwin, Gentoo Solaris, Gentoo *BSD, Gentoo Linux)
12 >
13 > Now, when you adopt the Gentoo/Alt (read Gentoo BSD) policy that says "In
14 > a Gentoo/ALT system profile, you can always find these tools ... gsed ...
15 > gmake ... gawk ... gpatch ... gdiff ... gfind ... gxargs", you encourage
16 > everyone to special case an alt system, and then use these names in their
17 > scripts instead of the Gentoo Linux names.
18
19 Now I see your complaint. I didn't see that when skimming the website.
20 In my early days in the project I once suggested to use a special
21 directory with symlinks like "sed -> /usr/bin/gsed" (where gsed was only
22 to avoid collision) and have that directory first in the path by setting
23 it in profile.bashrc. This idea would solve the `find . | xargs`
24 problem, but was rejected because it was considered to be a dirty hack,
25 aliases worked fine for most cases too, and of course the work of
26 Flameeyes to just get people using the right (non-GNU) syntax. The
27 extra directory with symlinks would just be a sort of simulated prefix
28 situation. No biggy, but I'd still prefer it over aliasing sed to gsed.
29
30 For the policy; I think we should have a discussion on these g-prefixed
31 variants. Personally, I think they suck, just because of their name.
32 Sun has shown with Solaris that you can use directories to have multiple
33 versions/editions of the same programs. (Only on Solaris it's a bit
34 confusing sometimes...)
35
36 > Adding more packages on a prefixed system is bad news for different
37 > reasons. Imagine you are a sysadmin (I am) and you have hundreds of users
38 > that want to effectively do "emerge system" in their home directories,
39 > when they could just use the host tools instead! If I was one of those
40 > users, probably fast running out of quota, I'd start sending patches or
41 > reporting bugs to Gentoo.
42
43 Well... as user you have the strange thing to always dislike the OS
44 provided stuff, just because (random rant) "everything on Fedora sucks!".
45
46 Back to your (IMHO) valid comment: yes, it would be great if it would be
47 possible to only install xfig-3.2.5 using portage, just as it works on
48 OSX right now, without having to emerge a compiler and loads of depends
49 first.
50 Question for me there is, do we have to priorise there? I am a user at
51 work, and I have a nice workstation, with a homedir being backupped, and
52 a lot of scratch on my local workstation. I won't miss a gig or 2 there.
53 It would always be possible for -alt to provide a pre-filled
54 package.provided for some known OS distributions that users can apply
55 themselves to get the behaviour as we now have on OSX.
56 An alternative (much more interesting) would be if portage could 'ask'
57 the host OS through some interfacing script/program if a certain program
58 is 'provided' and which version. In a RPM world something like `rpm -q
59 etc.` while on OSX perhaps only package.provided would suffice. Who
60 knows. I guess that this option would require portage to be extended
61 somewhat.
62
63 >> If you need to _ensure_ that you use OS X utils while in a shell, a
64 >> simpler solution would be to not put the gentoo directories in $PATH in
65 >> the first place.
66 >
67 > Exactly. Only Gentoo stuff needs to have the symlinks in the path.
68
69 ...or binaries...
70
71
72 --
73 Fabian Groffen
74 Gentoo for Mac OS X Project -- Interim Lead
75 --
76 gentoo-osx@g.o mailing list