From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Packaging Jami progress Date: Sat, 28 Dec 2019 10:53:33 +0100 Message-ID: <87zhfcixnm.fsf@ambrevar.xyz> 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> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60293) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1il8mz-0002Vd-Nk for guix-devel@gnu.org; Sat, 28 Dec 2019 04:53:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1il8my-0002VN-Cq for guix-devel@gnu.org; Sat, 28 Dec 2019 04:53:41 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:48219) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1il8mx-0002TI-A2 for guix-devel@gnu.org; Sat, 28 Dec 2019 04:53:40 -0500 In-Reply-To: <20191228023401.28002b4d@interia.pl> 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: Jan Wielkiewicz , Ricardo Wurmus Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Allow me to explain a little more:=20=20 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? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl4HJh0ACgkQm9z0l6S7 zH9GPggAoEStxqaf7NBH3Z3EaVx6rv3t+LtyrT9cdqnQe/VetBt5vfJNDg7Xi8Id sZy9w3r552VvE+23sx4RzA3tqevd3JOKGvepFFkUftWvxuzgwrechqU64Wqzyfjy ay9WFCGfu9zDCCMUPH6HXJtZM/NXuhVYP0lLncUbFAOmB6wwXHDz6D3x8B+PjVbS wGm96ca4HSYDayCzS++/VYJQITxFu69ZljMZ6FYgpasaOOowGGDnbO4GaB8VGA8H vU31XCHPRVJj0SbIIK6VaO6vRB8nxsMn0q2peb9MrAoMCOFtCvdi6P4tZR70G9lI z45SXGucfP39ezFltgjkF2ugiRHQjA== =rAHm -----END PGP SIGNATURE----- --=-=-=--