From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 56052138A7A for ; Sat, 16 Feb 2013 09:13:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71F2AE056C; Sat, 16 Feb 2013 09:13:19 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 27EBCE0521 for ; Sat, 16 Feb 2013 09:13:18 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id B45E120833 for ; Sat, 16 Feb 2013 04:13:17 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute5.internal (MEProxy); Sat, 16 Feb 2013 04:13:17 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.co.uk; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=hWgBbCfoY3sEnicQP5u7rqkIv44=; b=d5XsngoWlIJ6fWBL2DlmWLCXDclR K8iybqOlzTk2bH4qbPR4tQcA993qG3FN0yN2LDFFjf5ZNCE099HUpJ06rmIzzTe1 8WUKsoDyjN2qb9xZonYSoBqOn9LABjLk7brkQIDfwq7c7C4MWi0fUjwSczZZJMyQ 1f/rGLhnv7eM9Ks= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=hWgBbCfoY3sEnicQP5u7rq kIv44=; b=YPVLMuMCmp0nIy/fGXWaxA5Y7HZhiBSXX0iKbFK+BcONzSfqu8gtcm tShs2amWkjQ/3Mwqp8nUahhst9iaOESvzCIiA81dw35q2n6dK7B47UXuf3nhzI3G oOBq8k766qqsdrRNCGCaTJJYs/EL1f1cjmCEjTO5sU5U+JcYSDTV4= X-Sasl-enc: Lvfcf2d9MyBN7avNTFLjtc4znzRVeCJxRBc3BsmE15an 1361005997 Received: from [192.168.1.100] (unknown [94.170.82.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 499A6482615 for ; Sat, 16 Feb 2013 04:13:17 -0500 (EST) Message-ID: <511F4DA9.3020104@fastmail.co.uk> Date: Sat, 16 Feb 2013 09:13:13 +0000 From: Kerin Millar User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130108 Thunderbird/17.0.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Installing 2 version-different libs in the same time References: <20130216083607.GA11121@BiggerBoxer> In-Reply-To: <20130216083607.GA11121@BiggerBoxer> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 33b458a4-26c6-4d86-a611-5a305816197a X-Archives-Hash: df4ae638c71ec04cccc6e37d174acb81 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