Gentoo Archives: gentoo-dev

From: Aron Griffis <agriffis@g.o>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] Programs that depend on X libraries
Date: Thu, 30 Aug 2001 15:31:57
Message-Id: 20010830173104.A10484@yde.flatmonk.org
In Reply to: Re: [gentoo-dev] Programs that depend on X libraries by Jerry A!
1 Jerry A! wrote: [Thu Aug 30 2001, 04:25:12PM EDT]
2 > : To digress a bit, I think that /usr/pkg would make sense for a set of
3 > : packages that are maintained via a method separate from the base
4 > : distribution. For example, if Ximian were to offer a set of rpms to
5 > : install on Gentoo, they might install into /usr/pkg so as to prevent
6 >
7 > However, this breaks common logic and standard practice. I believe that
8 > according to the FHS this would still go somewhere under /opt. One can
9 > hope that the Ximian folks would do the right thing and install it under
10 > /opt/ximian instead of /opt/gnome.
11
12 Agreed. My example was a poor attempt to present a case where /usr/pkg
13 might be justified on Gentoo.
14
15 > : > > (1) The FHS says: "This hierarchy is reserved for the X Window System,
16 > : > > version 11 release 6, and related files." IMHO that doesn't include
17 > : > > programs that are linked against the X libraries, just programs that
18 > : > > are delivered with the X distribution.
19 >
20 > The problem is that this is vague, and I suspect intentionally so. The
21 > X-Open group's standard is that anything compiled for a specific version
22 > of X stays with that version of X. Okay, it may not be a standard, but
23 > it is recommended practice.
24
25 Are you of the opinion that binaries linked to X libraries should live
26 in /usr/X11R6?
27
28 How does this work with, for example, the programs in /opt? Most of
29 them will rely on X libraries, so they aren't "staying with that version
30 of X."
31
32 > If other distros put X files in /usr/local it's due to the fact that
33
34 Do you mean /usr?
35
36 > XFree86 is out-of-sync from the standard X distro. A hack to make it
37 > easy to upgrade an entire X11 tree and then include some stub
38 > libraries in order to keep from recompiling older binaries is not the
39 > correct solution (IMO).
40
41 Why do you consider this a hack? Including multiple versions of
42 libraries for the sake of binary compatibility makes sense. As programs
43 are recompiled, they will be linked against the new X libraries, and
44 eventually it's possible to phase out the old libraries altogether.
45
46 > : Consistency with other major distributions carries more weight in my
47 > : mind, primarily because I think it would be a shame if we fail to learn
48 > : from their experience.
49 >
50 > Please see my previous response. Personally, I'd rather do it the
51 > "correct" way. Currently, all the Linux standards bodies are accepting
52 > the Redhat way as the correct one. I don't think we should buy into
53 > that falicy.
54
55 That's not my point. I don't mind diverging from Red Hat's methods.
56 But Red Hat also approached this question once and decided to install in
57 /usr. It would be foolish of us to assume that they put no thought into
58 the matter.
59
60 > If we do, then stop working on portage and let's start
61 > cranking out RPMs.
62
63 That's a different topic, but I'll make one comment. I have personally
64 created 300 or so rpms, including a complete distribution of Gnome for
65 Tru64 UNIX. With that in mind, I have found the switch to ebuilds to be
66 a refreshing experience. :-)
67
68 That said, I think there are some things the emerge system can learn
69 from rpms. (/me ducks the rotten tomatoes.) In all sincerity, building
70 and installing ebuilds in /tmp/portage as a non-privileged user is
71 a feature that emerge needs.
72
73 > : I don't see Gnome and KDE fitting into that category, especially since
74 > : they are comprised of many different packages each (not one coherent
75 > : piece).
76 >
77 > However, GNOME and KDE are meant to be looked at as coherent
78 > environments that give the user the ability to install multiple
79 > components. For that reason alone, they do belong in /opt. It's no
80 > different than choosing not to install all of Mozilla's or
81 > StarOffice's components.
82
83 It's quite different. Mozilla and StarOffice are distributed as
84 single coherent programs, consisting of multiple modules. Neither of
85 these programs split naturally; they are both designed to be run from
86 their own hierarchy (hence MOZILLA_FIVE_HOME).
87
88 Gnome and KDE are library frameworks that applications might or might
89 not link against, raising the question of whether the applications
90 should move around depending on how they're linked. Gnome and KDE
91 settle very well into the /usr hierarchy (simply by specifying
92 --prefix=/usr).
93
94 Aron

Replies

Subject Author
Re: [gentoo-dev] Programs that depend on X libraries Mikael Hallendal <hallski@g.o>