Gentoo Archives: gentoo-user

From: Kerin Millar <kerframil@×××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Installing 2 version-different libs in the same time
Date: Sat, 16 Feb 2013 12:12:49
Message-Id: 511F77AE.10000@fastmail.co.uk
In Reply to: Re: [gentoo-user] Installing 2 version-different libs in the same time by Frank Schwidom
1 On 16/02/2013 11:47, Frank Schwidom wrote:
2 > On Sat, Feb 16, 2013 at 09:13:13AM +0000, Kerin Millar wrote:
3 >> On 16/02/2013 08:36, Frank Schwidom wrote:
4 >>> Hi,
5 >>>
6 >>> I have an conflict wth 2 Versions of Readline:
7 >>>
8 >>> (sys-libs/readline-5.2_p12-r1::gentoo, installed) pulled in by
9 >>> =sys-libs/readline-5* required by (dev-lang/ghc-6.8.2::gentoo, installed)
10 >>>
11 >>> (sys-libs/readline-6.2_p1::gentoo, ebuild scheduled for merge) pulled
12 >>> in by =sys-libs/readline-6.2_p1
13 >>>
14 >>> Is ts possible to install both libraries in the same time?
15 >>
16 >> Yes. Portage can support different versions side-by-side if the ebuild
17 >> makes use of the SLOT variable. For instance, I have
18 >> sys-libs/readline-6.2_p1 installed and attempting to install readline-5*
19 >> yields:
20 >>
21 >> Calculating dependencies... done!
22 >> [ebuild NS ] sys-libs/readline-5.2_p14:5 [6.2_p1:0] 2,024 kB
23 >>
24 >> Note that this isn't a downgrade in so far as 6.2_p1 won't be removed.
25 >> It's a new, slotted instance of the package. No problem there.
26 >
27 > hangeLog: Stabilize old ABI SLOT version.
28 > readline-4.3_p5.ebuild:SLOT="${PV:0:1}"
29 > readline-5.2_p14.ebuild:SLOT="${PV:0:1}"
30 > readline-6.1.ebuild:SLOT="0"
31 > readline-6.1_p2.ebuild:SLOT="0"
32 > readline-6.2.ebuild:SLOT="0"
33 > readline-6.2_p1.ebuild:SLOT="0"
34 > readline-6.2_p1-r1.ebuild:SLOT="0"
35 > readline-6.2_p4.ebuild:SLOT="0"
36 >
37 > it seems to be that in my case readline-5.2_p12-r1 ist installed under SLOT 0.
38 > can i override the slot-variable ?
39
40 I gather that you've synced so if you run emerge -a1 '=readline-5*',
41 that should install the latest 5.2_p14 ebuild which is appropriately
42 slotted.
43
44 Note that the latest stable version of ghc (6.12.3-r2) doesn't depend on
45 the old version of readline anyway. The main issue was that your portage
46 tree was out of date. Now that has been dealt with, I think you just
47 need to upgrade as normal. You can uninstall the old instance of ghc
48 before allowing it to re-install, in case it still blocks.
49
50 Cheers,
51
52 --Kerin

Replies

Subject Author
Re: [gentoo-user] Installing 2 version-different libs in the same time Frank Schwidom <schwidom@×××.net>