From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 20 15:22:18 2019 Received: (at submit) by debbugs.gnu.org; 20 Aug 2019 19:22:18 +0000 Received: from localhost ([127.0.0.1]:33964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i09hx-0002d3-Ut for submit@debbugs.gnu.org; Tue, 20 Aug 2019 15:22:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:52982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i09hw-0002cu-R8 for submit@debbugs.gnu.org; Tue, 20 Aug 2019 15:22:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38631) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i09ht-00025G-V9 for bug-guix@gnu.org; Tue, 20 Aug 2019 15:22:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i09ht-0004uW-0K for bug-guix@gnu.org; Tue, 20 Aug 2019 15:22:13 -0400 Received: from world.peace.net ([64.112.178.59]:33012) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i09hs-0004u7-TR for bug-guix@gnu.org; Tue, 20 Aug 2019 15:22:12 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i09hr-0005ac-OV; Tue, 20 Aug 2019 15:22:11 -0400 From: Mark H Weaver To: bug-guix@gnu.org Subject: gnome-shell: LD_LIBRARY_PATH setting propagates to entire session Date: Tue, 20 Aug 2019 15:21:37 -0400 Message-ID: <87zhk3tzfn.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.112.178.59 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Since commit 2b0c755d195c79bfc95cdbe802e1e2dea1adb7a2 in August 2018, our 'gnome-shell' executable has been wrapped by a script that sets LD_LIBRARY_PATH. One consequence of this, which I just noticed, is that if 'gnome-shell' is based on 'core-updates' (or in my case, 'core-updates-next'), many programs based on 'master' will fail to run within the resulting GNOME session. I ran into this issue because I recently rebuilt my Guix system based on 'core-updates-next' and booted into it, although it will take more time to finish rebuilding my user profile. Many programs, including Emacs and Nautilus, fail to launch. A workaround is to launch a terminal, unset LD_LIBRARY_PATH within the resulting shell, and then manually run the other programs from within that shell. (Since then, I've built a trimmed-down version of my profile based on 'core-updates-next'.) I was unable to easily find an existing bug report tracking this issue, so I created this one. Mark From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 20 15:39:11 2019 Received: (at 37123) by debbugs.gnu.org; 20 Aug 2019 19:39:11 +0000 Received: from localhost ([127.0.0.1]:33981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i09yI-00038s-Q6 for submit@debbugs.gnu.org; Tue, 20 Aug 2019 15:39:11 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i09yF-00038g-11 for 37123@debbugs.gnu.org; Tue, 20 Aug 2019 15:39:09 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1566329944; cv=none; d=zoho.com; s=zohoarc; b=bIw4Qfn+qR/CKTDKRrEbVTt3JWkxEbIILFo9TF0OtgXJ6XS6fxqsiROboIe92RRvSmIfAWb3zNMdx/mKTNR1HSxY/2w9PTX/rzI2IlABAwI1C0MwxBPN5YFYFqxi7BrSO+2yyQrsKqp8PJfcw1dhYTzfO0SvDYaZq//wno8HoR8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566329944; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=l3kY9x9Ds4IKFhmyDGjaPQXe9hCg2fjGIPzrcIQdQF4=; b=KLZ8grM7nbpb7+hyZDINAb834gI4tw8wP6K70ByR8rUP+ZfuFmqqlPdrzHA/Nn6F93SX5kojP509jG2N0M/Y2WQQo9JqYDzkluPPUZVF/s8wxKaddxsmxdMlcmvHsCBdm7lKYH3HjyxB8z5tLMAR2yABH5s9fzRyuYAkTVmxVsE= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1566329944; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=739; bh=l3kY9x9Ds4IKFhmyDGjaPQXe9hCg2fjGIPzrcIQdQF4=; b=SMCdyqKvg9RNH61FNhytCs0rUMeK4CdY/tXFZTa2Pz32Ay4zTethAo0c52uNxIdo gEhhdBIsRyYHKLxsG93oA6JdHqIkjSgbDLETXxP1jL6wZYpGotOwpt8w7abOPEVlwcY LY9K69w/9PPG5dAO7iJHml4WJkprMY8mIF8Etrl4= Received: from localhost (p54AD4C32.dip0.t-ipconnect.de [84.173.76.50]) by mx.zohomail.com with SMTPS id 1566329943303268.70979158586806; Tue, 20 Aug 2019 12:39:03 -0700 (PDT) References: <87zhk3tzfn.fsf@netris.org> User-agent: mu4e 1.2.0; emacs 26.2 From: Ricardo Wurmus To: mhw@netris.org Subject: Re: bug#37123: gnome-shell: LD_LIBRARY_PATH setting propagates to entire session In-reply-to: <87zhk3tzfn.fsf@netris.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 20 Aug 2019 21:38:58 +0200 Message-ID: <87sgpvlj8t.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37123 Cc: 37123@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Mark, > Since commit 2b0c755d195c79bfc95cdbe802e1e2dea1adb7a2 in August 2018, > our 'gnome-shell' executable has been wrapped by a script that sets > LD_LIBRARY_PATH. > > One consequence of this, which I just noticed, is that if 'gnome-shell' > is based on 'core-updates' (or in my case, 'core-updates-next'), many > programs based on 'master' will fail to run within the resulting GNOME > session. [=E2=80=A6] > I was unable to easily find an existing bug report tracking this issue, > so I created this one. There was no bug report about this, so thanks for reporting it. I once brought this issue up on the mailing list here: https://lists.gnu.org/archive/html/guix-devel/2019-05/msg00372.html -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 24 09:17:47 2019 Received: (at control) by debbugs.gnu.org; 24 Aug 2019 13:17:47 +0000 Received: from localhost ([127.0.0.1]:41657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1VvO-0006pH-RU for submit@debbugs.gnu.org; Sat, 24 Aug 2019 09:17:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1VvK-0006p2-TC for control@debbugs.gnu.org; Sat, 24 Aug 2019 09:17:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i1VvF-0008S7-Qf for control@debbugs.gnu.org; Sat, 24 Aug 2019 09:17:37 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56084 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i1VvE-0003M5-3h for control@debbugs.gnu.org; Sat, 24 Aug 2019 09:17:36 -0400 Date: Sat, 24 Aug 2019 15:17:33 +0200 Message-Id: <87o90eya6q.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #37123 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) severity 37123 important quit From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 13 17:03:10 2019 Received: (at 37123) by debbugs.gnu.org; 13 Nov 2019 22:03:10 +0000 Received: from localhost ([127.0.0.1]:60310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV0jF-0001jC-Hu for submit@debbugs.gnu.org; Wed, 13 Nov 2019 17:03:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV0jB-0001ie-6O for 37123@debbugs.gnu.org; Wed, 13 Nov 2019 17:03:06 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iV0j5-0000Az-Pu; Wed, 13 Nov 2019 17:02:59 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=40170 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iV0j2-0004HF-4f; Wed, 13 Nov 2019 17:02:59 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: bug#37123: gnome-shell: LD_LIBRARY_PATH setting propagates to entire session References: <87zhk3tzfn.fsf@netris.org> <87sgpvlj8t.fsf@elephly.net> Date: Wed, 13 Nov 2019 23:02:52 +0100 In-Reply-To: <87sgpvlj8t.fsf@elephly.net> (Ricardo Wurmus's message of "Tue, 20 Aug 2019 21:38:58 +0200") Message-ID: <87pnhvmo37.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37123 Cc: mhw@netris.org, 37123@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, Ricardo Wurmus skribis: >> Since commit 2b0c755d195c79bfc95cdbe802e1e2dea1adb7a2 in August 2018, >> our 'gnome-shell' executable has been wrapped by a script that sets >> LD_LIBRARY_PATH. >> >> One consequence of this, which I just noticed, is that if 'gnome-shell' >> is based on 'core-updates' (or in my case, 'core-updates-next'), many >> programs based on 'master' will fail to run within the resulting GNOME >> session. > [=E2=80=A6] >> I was unable to easily find an existing bug report tracking this issue, >> so I created this one. > > There was no bug report about this, so thanks for reporting it. I once > brought this issue up on the mailing list here: > > https://lists.gnu.org/archive/html/guix-devel/2019-05/msg00372.html Looking at this bit in the =E2=80=98gnome-shell=E2=80=99 definition: --8<---------------cut here---------------start------------->8--- (wrap-program (string-append out "/bin/gnome-shell") `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)) ;; FIXME: gnome-shell loads these libraries with unqualified ;; names only, so they need to be on LD_LIBRARY_PATH. The ;; alternative might be to patch gnome-shell. `("LD_LIBRARY_PATH" ":" prefix ,(map (lambda (pkg) (string-append (assoc-ref inputs pkg) "/lib")) '("gdk-pixbuf" "gnome-bluetooth" "librsvg" "libgweather")))) --8<---------------cut here---------------end--------------->8--- I checked in Gjs etc. how those imports (e.g., =E2=80=9Cimports.gi.Rsvg=E2= =80=9D in Javascript) are turned into a dlopen. AIUI, this is done by gobject-introspection based on info found in .gir files. In Guix, .gir files contain absolute file names of share libraries. At run-time, =E2=80=98gobject-introspection-absolute-shlib-path.patch=E2=80=99= ensures that dlopen is passed absolute file names. So, IIUC, =E2=80=9Cimports.gi.Rsvg=E2=80=9D should lead to dlopen by absolu= te file name, in which case setting LD_LIBRARY_PATH is useless. However, does anyone know about we can test whether removing the LD_LIBRARY_PATH wrapping above breaks something? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 02 04:57:15 2021 Received: (at 37123-done) by debbugs.gnu.org; 2 Dec 2021 09:57:15 +0000 Received: from localhost ([127.0.0.1]:46672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msiq2-00069F-Ut for submit@debbugs.gnu.org; Thu, 02 Dec 2021 04:57:15 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msipz-00068y-Fr for 37123-done@debbugs.gnu.org; Thu, 02 Dec 2021 04:57:12 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1638439028; cv=none; d=zohomail.com; s=zohoarc; b=dVTNLRMwrmDwTnzQstaVME9FbheaIyFiZQRPPHQ8WzL0z6Fcq/8VgRQJx3AbCXKp99oqwX5/kKpGrTvW2UXSR5bUbeGis9+Yvc/EY/etVqybH8MpEcPOu1Fc3gf5407ZFOxNRqv4agCfYWEFiterdeuwi/ZPMQcJtN9ZQHuuQEE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1638439028; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=T+zFwgqG8/AtwLYfhwbeqwU3c2C8p3co2CPGR13OsMI=; b=VX8bZDp5UthhyKrmynPSYrVQ10ts5fGJp8d7mKybVkkqn1fYNXJIM6kBpLDXxL9+Mll1c96EaNlc3kJs1p76DTr33iAiqhkXuzN9CMnF7G3rL6/81VH/lR9Q3taRO0fzBz0QwlHOWW0pBDzY6RL8EsgF+o/iawBFiBzj7t2pIhQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1638439028; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=T+zFwgqG8/AtwLYfhwbeqwU3c2C8p3co2CPGR13OsMI=; b=KuyZc3hi0HeH1VcRFHurf8jTaq1efLl4SmuYZXi9jW6Ms7sMoiogLF6IKHUFZzFq nPG1VZLUpcDIE205sgLqUBtyvblX3oJ/3Ir3QRQ9G1vrcTnlijzn3oa/j73fclfM/dy aFBSLA4K85sW6PydmQX9tOc8evy5Iscxa1KTo7Us= Received: from localhost (p54ad49ab.dip0.t-ipconnect.de [84.173.73.171]) by mx.zohomail.com with SMTPS id 1638439023979903.9835076597129; Thu, 2 Dec 2021 01:57:03 -0800 (PST) User-agent: mu4e 1.6.6; emacs 27.2 From: Ricardo Wurmus To: 37123-done@debbugs.gnu.org Subject: gnome-shell: LD_LIBRARY_PATH setting propagates to entire session Date: Thu, 02 Dec 2021 09:54:51 +0000 X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <877dcnz5w3.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 37123-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Commit f1fd313e486491caf1ff5874810f2ee06091e825 removes LD_LIBRARY_PATH from the wrapper. That=E2=80=99s on core-updates-frozen. I reconfigured my system with this change and gnome-shell starts up fine, and things like Gnome Weather work correctly. So I=E2=80=99m pretty confident that we no longer need to do this. Yay! --=20 Ricardo From unknown Sun Aug 17 22:08:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 30 Dec 2021 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator