* [gentoo-user] Installing 2 version-different libs in the same time
@ 2013-02-16 8:36 Frank Schwidom
2013-02-16 9:13 ` Kerin Millar
0 siblings, 1 reply; 7+ messages in thread
From: Frank Schwidom @ 2013-02-16 8:36 UTC (permalink / raw
To: gentoo-user
Hi,
I have an conflict wth 2 Versions of Readline:
(sys-libs/readline-5.2_p12-r1::gentoo, installed) pulled in by
=sys-libs/readline-5* required by (dev-lang/ghc-6.8.2::gentoo, installed)
(sys-libs/readline-6.2_p1::gentoo, ebuild scheduled for merge) pulled
in by =sys-libs/readline-6.2_p1
Is ts possible to install both libraries in the same time?
It seems, that the lib-system is prepared for such situations,
because this links allows to define defaults for different
version stages.
lrwxrwxrwx 1 root root 16 15. Jul 2010 libreadline.so -> libreadline.so.5
lrwxrwxrwx 1 root root 18 15. Jul 2010 libreadline.so.5 -> libreadline.so.5.2
-r-xr-xr-x 1 root root 201668 6. Dez 2008 libreadline.so.5.2
Here could exist an further lib.
The question ist, how knows an program, to use which lib.
Can i compile an new program, which uses an explicit new lib, and
keep the default-definition of the readline libs untouched?
Have I any chance to solve this problem without loosing one lib?
Regards
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Installing 2 version-different libs in the same time
2013-02-16 8:36 [gentoo-user] Installing 2 version-different libs in the same time Frank Schwidom
@ 2013-02-16 9:13 ` Kerin Millar
2013-02-16 11:47 ` Frank Schwidom
0 siblings, 1 reply; 7+ messages in thread
From: Kerin Millar @ 2013-02-16 9:13 UTC (permalink / raw
To: gentoo-user
On 16/02/2013 08:36, Frank Schwidom wrote:
> Hi,
>
> I have an conflict wth 2 Versions of Readline:
>
> (sys-libs/readline-5.2_p12-r1::gentoo, installed) pulled in by
> =sys-libs/readline-5* required by (dev-lang/ghc-6.8.2::gentoo, installed)
>
> (sys-libs/readline-6.2_p1::gentoo, ebuild scheduled for merge) pulled
> in by =sys-libs/readline-6.2_p1
>
> Is ts possible to install both libraries in the same time?
Yes. Portage can support different versions side-by-side if the ebuild
makes use of the SLOT variable. For instance, I have
sys-libs/readline-6.2_p1 installed and attempting to install readline-5*
yields:
Calculating dependencies... done!
[ebuild NS ] sys-libs/readline-5.2_p14:5 [6.2_p1:0] 2,024 kB
Note that this isn't a downgrade in so far as 6.2_p1 won't be removed.
It's a new, slotted instance of the package. No problem there.
>
> It seems, that the lib-system is prepared for such situations,
> because this links allows to define defaults for different
> version stages.
>
> lrwxrwxrwx 1 root root 16 15. Jul 2010 libreadline.so -> libreadline.so.5
> lrwxrwxrwx 1 root root 18 15. Jul 2010 libreadline.so.5 -> libreadline.so.5.2
> -r-xr-xr-x 1 root root 201668 6. Dez 2008 libreadline.so.5.2
>
> Here could exist an further lib.
>
> The question ist, how knows an program, to use which lib.
The required libraries are defined in the NEEDED fields in the ELF
binary's dynamic segment section. You may use tools such as ldd to
inspect the dependencies.
>
> Can i compile an new program, which uses an explicit new lib, and
> keep the default-definition of the readline libs untouched?
In many cases, yes. Another approach is to export LD_LIBRARY_PATH when
running an application so that it finds a particular library in a
particular directory. However ...
> Have I any chance to solve this problem without loosing one lib?
>
You are overdue an emerge --sync. Do that before contemplating jumping
through hoops.
Cheers,
--Kerin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Installing 2 version-different libs in the same time
2013-02-16 9:13 ` Kerin Millar
@ 2013-02-16 11:47 ` Frank Schwidom
2013-02-16 12:12 ` Kerin Millar
0 siblings, 1 reply; 7+ messages in thread
From: Frank Schwidom @ 2013-02-16 11:47 UTC (permalink / raw
To: gentoo-user
On Sat, Feb 16, 2013 at 09:13:13AM +0000, Kerin Millar wrote:
> On 16/02/2013 08:36, Frank Schwidom wrote:
> > Hi,
> >
> > I have an conflict wth 2 Versions of Readline:
> >
> > (sys-libs/readline-5.2_p12-r1::gentoo, installed) pulled in by
> > =sys-libs/readline-5* required by (dev-lang/ghc-6.8.2::gentoo, installed)
> >
> > (sys-libs/readline-6.2_p1::gentoo, ebuild scheduled for merge) pulled
> > in by =sys-libs/readline-6.2_p1
> >
> > Is ts possible to install both libraries in the same time?
>
> Yes. Portage can support different versions side-by-side if the ebuild
> makes use of the SLOT variable. For instance, I have
> sys-libs/readline-6.2_p1 installed and attempting to install readline-5*
> yields:
>
> Calculating dependencies... done!
> [ebuild NS ] sys-libs/readline-5.2_p14:5 [6.2_p1:0] 2,024 kB
>
> Note that this isn't a downgrade in so far as 6.2_p1 won't be removed.
> It's a new, slotted instance of the package. No problem there.
hangeLog: Stabilize old ABI SLOT version.
readline-4.3_p5.ebuild:SLOT="${PV:0:1}"
readline-5.2_p14.ebuild:SLOT="${PV:0:1}"
readline-6.1.ebuild:SLOT="0"
readline-6.1_p2.ebuild:SLOT="0"
readline-6.2.ebuild:SLOT="0"
readline-6.2_p1.ebuild:SLOT="0"
readline-6.2_p1-r1.ebuild:SLOT="0"
readline-6.2_p4.ebuild:SLOT="0"
it seems to be that in my case readline-5.2_p12-r1 ist installed under SLOT 0.
can i override the slot-variable ?
Regards
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Installing 2 version-different libs in the same time
2013-02-16 11:47 ` Frank Schwidom
@ 2013-02-16 12:12 ` Kerin Millar
2013-02-16 15:09 ` Frank Schwidom
0 siblings, 1 reply; 7+ messages in thread
From: Kerin Millar @ 2013-02-16 12:12 UTC (permalink / raw
To: gentoo-user
On 16/02/2013 11:47, Frank Schwidom wrote:
> On Sat, Feb 16, 2013 at 09:13:13AM +0000, Kerin Millar wrote:
>> On 16/02/2013 08:36, Frank Schwidom wrote:
>>> Hi,
>>>
>>> I have an conflict wth 2 Versions of Readline:
>>>
>>> (sys-libs/readline-5.2_p12-r1::gentoo, installed) pulled in by
>>> =sys-libs/readline-5* required by (dev-lang/ghc-6.8.2::gentoo, installed)
>>>
>>> (sys-libs/readline-6.2_p1::gentoo, ebuild scheduled for merge) pulled
>>> in by =sys-libs/readline-6.2_p1
>>>
>>> Is ts possible to install both libraries in the same time?
>>
>> Yes. Portage can support different versions side-by-side if the ebuild
>> makes use of the SLOT variable. For instance, I have
>> sys-libs/readline-6.2_p1 installed and attempting to install readline-5*
>> yields:
>>
>> Calculating dependencies... done!
>> [ebuild NS ] sys-libs/readline-5.2_p14:5 [6.2_p1:0] 2,024 kB
>>
>> Note that this isn't a downgrade in so far as 6.2_p1 won't be removed.
>> It's a new, slotted instance of the package. No problem there.
>
> hangeLog: Stabilize old ABI SLOT version.
> readline-4.3_p5.ebuild:SLOT="${PV:0:1}"
> readline-5.2_p14.ebuild:SLOT="${PV:0:1}"
> readline-6.1.ebuild:SLOT="0"
> readline-6.1_p2.ebuild:SLOT="0"
> readline-6.2.ebuild:SLOT="0"
> readline-6.2_p1.ebuild:SLOT="0"
> readline-6.2_p1-r1.ebuild:SLOT="0"
> readline-6.2_p4.ebuild:SLOT="0"
>
> it seems to be that in my case readline-5.2_p12-r1 ist installed under SLOT 0.
> can i override the slot-variable ?
I gather that you've synced so if you run emerge -a1 '=readline-5*',
that should install the latest 5.2_p14 ebuild which is appropriately
slotted.
Note that the latest stable version of ghc (6.12.3-r2) doesn't depend on
the old version of readline anyway. The main issue was that your portage
tree was out of date. Now that has been dealt with, I think you just
need to upgrade as normal. You can uninstall the old instance of ghc
before allowing it to re-install, in case it still blocks.
Cheers,
--Kerin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Installing 2 version-different libs in the same time
2013-02-16 12:12 ` Kerin Millar
@ 2013-02-16 15:09 ` Frank Schwidom
2013-02-16 15:48 ` Mike Gilbert
0 siblings, 1 reply; 7+ messages in thread
From: Frank Schwidom @ 2013-02-16 15:09 UTC (permalink / raw
To: gentoo-user
On Sat, Feb 16, 2013 at 12:12:30PM +0000, Kerin Millar wrote:
> On 16/02/2013 11:47, Frank Schwidom wrote:
> > On Sat, Feb 16, 2013 at 09:13:13AM +0000, Kerin Millar wrote:
> >> On 16/02/2013 08:36, Frank Schwidom wrote:
> >>> Hi,
> >>>
> >>> I have an conflict wth 2 Versions of Readline:
> >>>
> >>> (sys-libs/readline-5.2_p12-r1::gentoo, installed) pulled in by
> >>> =sys-libs/readline-5* required by (dev-lang/ghc-6.8.2::gentoo, installed)
> >>>
> >>> (sys-libs/readline-6.2_p1::gentoo, ebuild scheduled for merge) pulled
> >>> in by =sys-libs/readline-6.2_p1
> >>>
> >>> Is ts possible to install both libraries in the same time?
> >>
> >> Yes. Portage can support different versions side-by-side if the ebuild
> >> makes use of the SLOT variable. For instance, I have
> >> sys-libs/readline-6.2_p1 installed and attempting to install readline-5*
> >> yields:
> >>
> >> Calculating dependencies... done!
> >> [ebuild NS ] sys-libs/readline-5.2_p14:5 [6.2_p1:0] 2,024 kB
> >>
> >> Note that this isn't a downgrade in so far as 6.2_p1 won't be removed.
> >> It's a new, slotted instance of the package. No problem there.
> >
> > hangeLog: Stabilize old ABI SLOT version.
> > readline-4.3_p5.ebuild:SLOT="${PV:0:1}"
> > readline-5.2_p14.ebuild:SLOT="${PV:0:1}"
> > readline-6.1.ebuild:SLOT="0"
> > readline-6.1_p2.ebuild:SLOT="0"
> > readline-6.2.ebuild:SLOT="0"
> > readline-6.2_p1.ebuild:SLOT="0"
> > readline-6.2_p1-r1.ebuild:SLOT="0"
> > readline-6.2_p4.ebuild:SLOT="0"
> >
> > it seems to be that in my case readline-5.2_p12-r1 ist installed under SLOT 0.
> > can i override the slot-variable ?
>
> I gather that you've synced so if you run emerge -a1 '=readline-5*',
> that should install the latest 5.2_p14 ebuild which is appropriately
> slotted.
>
> Note that the latest stable version of ghc (6.12.3-r2) doesn't depend on
> the old version of readline anyway. The main issue was that your portage
> tree was out of date. Now that has been dealt with, I think you just
> need to upgrade as normal. You can uninstall the old instance of ghc
> before allowing it to re-install, in case it still blocks.
The current Version is '=readline-5*'. the only thing, i want to do
next, is to update portage, but portage wants to get a new python and
python a new readline(-6). My Problem is, to install a new readline (-6)
parallel to the old (-5).
Would it help, to change the SLOT Variable in the ebuild files, or
is there any option or Variable to override the slot settings?
Regards
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Installing 2 version-different libs in the same time
2013-02-16 15:09 ` Frank Schwidom
@ 2013-02-16 15:48 ` Mike Gilbert
2013-02-17 7:45 ` Frank Schwidom
0 siblings, 1 reply; 7+ messages in thread
From: Mike Gilbert @ 2013-02-16 15:48 UTC (permalink / raw
To: gentoo-user
On Sat, Feb 16, 2013 at 10:09 AM, Frank Schwidom <schwidom@gmx.net> wrote:
> On Sat, Feb 16, 2013 at 12:12:30PM +0000, Kerin Millar wrote:
>> On 16/02/2013 11:47, Frank Schwidom wrote:
>> > On Sat, Feb 16, 2013 at 09:13:13AM +0000, Kerin Millar wrote:
>> >> On 16/02/2013 08:36, Frank Schwidom wrote:
>> >>> Hi,
>> >>>
>> >>> I have an conflict wth 2 Versions of Readline:
>> >>>
>> >>> (sys-libs/readline-5.2_p12-r1::gentoo, installed) pulled in by
>> >>> =sys-libs/readline-5* required by (dev-lang/ghc-6.8.2::gentoo, installed)
>> >>>
>> >>> (sys-libs/readline-6.2_p1::gentoo, ebuild scheduled for merge) pulled
>> >>> in by =sys-libs/readline-6.2_p1
>> >>>
>> >>> Is ts possible to install both libraries in the same time?
>> >>
>> >> Yes. Portage can support different versions side-by-side if the ebuild
>> >> makes use of the SLOT variable. For instance, I have
>> >> sys-libs/readline-6.2_p1 installed and attempting to install readline-5*
>> >> yields:
>> >>
>> >> Calculating dependencies... done!
>> >> [ebuild NS ] sys-libs/readline-5.2_p14:5 [6.2_p1:0] 2,024 kB
>> >>
>> >> Note that this isn't a downgrade in so far as 6.2_p1 won't be removed.
>> >> It's a new, slotted instance of the package. No problem there.
>> >
>> > hangeLog: Stabilize old ABI SLOT version.
>> > readline-4.3_p5.ebuild:SLOT="${PV:0:1}"
>> > readline-5.2_p14.ebuild:SLOT="${PV:0:1}"
>> > readline-6.1.ebuild:SLOT="0"
>> > readline-6.1_p2.ebuild:SLOT="0"
>> > readline-6.2.ebuild:SLOT="0"
>> > readline-6.2_p1.ebuild:SLOT="0"
>> > readline-6.2_p1-r1.ebuild:SLOT="0"
>> > readline-6.2_p4.ebuild:SLOT="0"
>> >
>> > it seems to be that in my case readline-5.2_p12-r1 ist installed under SLOT 0.
>> > can i override the slot-variable ?
>>
>> I gather that you've synced so if you run emerge -a1 '=readline-5*',
>> that should install the latest 5.2_p14 ebuild which is appropriately
>> slotted.
>>
>> Note that the latest stable version of ghc (6.12.3-r2) doesn't depend on
>> the old version of readline anyway. The main issue was that your portage
>> tree was out of date. Now that has been dealt with, I think you just
>> need to upgrade as normal. You can uninstall the old instance of ghc
>> before allowing it to re-install, in case it still blocks.
>
> The current Version is '=readline-5*'. the only thing, i want to do
> next, is to update portage, but portage wants to get a new python and
> python a new readline(-6). My Problem is, to install a new readline (-6)
> parallel to the old (-5).
>
> Would it help, to change the SLOT Variable in the ebuild files, or
> is there any option or Variable to override the slot settings?
>
Try running this by itself:
emerge -1 sys-libs/readline:0 sys-libs/readline:5
That should upgrade readline-5.2_p12 to readline-6.2_p1 with SLOT=0,
and then install readline-5.4_p14 with SLOT=5.
You can then run your larger update, which should no longer produce
slot conflicts.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Installing 2 version-different libs in the same time
2013-02-16 15:48 ` Mike Gilbert
@ 2013-02-17 7:45 ` Frank Schwidom
0 siblings, 0 replies; 7+ messages in thread
From: Frank Schwidom @ 2013-02-17 7:45 UTC (permalink / raw
To: gentoo-user
On Sat, Feb 16, 2013 at 10:48:26AM -0500, Mike Gilbert wrote:
> On Sat, Feb 16, 2013 at 10:09 AM, Frank Schwidom <schwidom@gmx.net> wrote:
> >
> > The current Version is '=readline-5*'. the only thing, i want to do
> > next, is to update portage, but portage wants to get a new python and
> > python a new readline(-6). My Problem is, to install a new readline (-6)
> > parallel to the old (-5).
> >
> > Would it help, to change the SLOT Variable in the ebuild files, or
> > is there any option or Variable to override the slot settings?
> >
>
> Try running this by itself:
>
> emerge -1 sys-libs/readline:0 sys-libs/readline:5
>
> That should upgrade readline-5.2_p12 to readline-6.2_p1 with SLOT=0,
> and then install readline-5.4_p14 with SLOT=5.
>
> You can then run your larger update, which should no longer produce
> slot conflicts.
>
Thanks, it worked.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-02-17 8:03 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-16 8:36 [gentoo-user] Installing 2 version-different libs in the same time Frank Schwidom
2013-02-16 9:13 ` Kerin Millar
2013-02-16 11:47 ` Frank Schwidom
2013-02-16 12:12 ` Kerin Millar
2013-02-16 15:09 ` Frank Schwidom
2013-02-16 15:48 ` Mike Gilbert
2013-02-17 7:45 ` Frank Schwidom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox