From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Subject: Re: Packaging Jami progress Date: Sat, 28 Dec 2019 13:00:20 +0100 Message-ID: <20191228130020.0c1fc55f@kompiuter> References: <20191215211230.66fea79e@interia.pl> <875zihclep.fsf@elephly.net> <20191222002815.4db8e9ca@interia.pl> <87d0cgpzqo.fsf@elephly.net> <20191223204317.3069e8ba@kompiuter> <20191225023416.0b36b90c@kompiuter> <20191228023401.28002b4d@interia.pl> <87zhfcixnm.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44098) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilAld-0007co-7j for guix-devel@gnu.org; Sat, 28 Dec 2019 07:00:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilAlc-00024V-4m for guix-devel@gnu.org; Sat, 28 Dec 2019 07:00:25 -0500 Received: from smtpo.poczta.interia.pl ([217.74.65.237]:34733) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ilAlb-0001zg-Pp for guix-devel@gnu.org; Sat, 28 Dec 2019 07:00:24 -0500 In-Reply-To: <87zhfcixnm.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: guix-devel@gnu.org On Sat, 28 Dec 2019 10:53:33 +0100 Pierre Neidhardt wrote: > Allow me to explain a little more: > > Binaries embed a value called RPATH which points to the locations > where to load dynamic libraries (also called "shared objects"). > > When building a binary, Guix automatically sets the RPATH to that of > the required inputs. > > Jami (indirectly) depends on both sqlite and > sqlite-with-column-metadata. > > When the binary is started, the loader finds both "sqlite" shared > objects in the RPATH, but it's not very clear which is one is loaded > first. Hence my comment. > > The wrapper aims to fix this issue by prepending > sqlite-with-column-metadata to LD_LIBRARY_PATH, which has higher > priority than the RPATH. This makes sure the right library is loaded. > > Does that make more sense? > Yes, this is understandable. Jan Wielkiewicz