Gentoo Archives: gentoo-user

From: walt <w41ter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: How to use a slotted library
Date: Thu, 05 May 2011 22:05:26
Message-Id: ipv6r2$11k$1@dough.gmane.org
In Reply to: [gentoo-user] How to use a slotted library by Helmut Jarausch
1 On 05/04/2011 11:47 PM, Helmut Jarausch wrote:
2 > Hi,
3 >
4 > I have 3 versions of x11-libs/gtk+ in slots 1, 2 and 3.
5
6 Do you still have gtk+-1.2.10 on your machine? Does anything still
7 depend on it? I removed it years ago.
8
9 > Some applications cannot be compiled with gtk+:3 .
10 > Is there a way to temporarily switch to gtk+:2 (which probably
11 > needs to switch related packages like atk and pango, as well) ?
12
13 Libraries (which is what gtk+ mostly contains) are different from
14 executable programs like gcc or python. When executable files are
15 involved, then generally *you* are the one who decides which version
16 to run (or you use eselect or gcc-config to decide).
17
18 Generally speaking, the author of a program is the one who decides
19 which versions of libraries (like gtk+) to use when compiling his/her
20 software.
21
22 When you compile a program, there is usually a 'configure' script
23 supplied by the author that runs around your machine discovering
24 which versions of what software you have installed on your machine,
25 and it complains if your versions are inappropriate for the program.
26
27 That is, if a package needs gtk+:2 the configure script will find
28 it and use it without your permission :) If your package can't
29 find the right libraries even when you have them installed, then
30 that's a bug in the package/ebuild.