From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 17 05:52:57 2021 Received: (at 35308) by debbugs.gnu.org; 17 Dec 2021 10:52:57 +0000 Received: from localhost ([127.0.0.1]:38093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myArB-0005Vy-FX for submit@debbugs.gnu.org; Fri, 17 Dec 2021 05:52:57 -0500 Received: from jpoiret.xyz ([206.189.101.64]:48954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myAr9-0005Vm-90 for 35308@debbugs.gnu.org; Fri, 17 Dec 2021 05:52:55 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id D84C8184F5F; Fri, 17 Dec 2021 10:52:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1639738373; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YuQeQrQzMCjvLhUj88b69jPOqHw2XFKxz8F9Gu3OhgU=; b=IEB9SX92HANvB+hezjl5BcLluM9uQ0tz7d0obk5V9eheivnZvP9T895Cqcmo0qTwZcVUYN tl3MKjp6WwemZp9uIvzfOBnOrlUxTOn2+dlvwvalt9q5mS9HyPdcBMG6B5z+TLNZ8mq11l fDuGJF482ejDZCaFwS7+W+9EN8FsZUb4HL3DGzCY5BaCEcIDsSdmhtzIg51AGpUYH41njx xIhjMeO3MuGqZ6XKr+udnyu12r3aPaJxnrjEx9/b04ySQsGPuPJUP6MBIc4qvsAFPzUmts zDnItiIHmrYRBwJgVHiohek+yEOXGfT8G6gruaI21BfA/kmglVvVYwyPYjn59g== From: Josselin Poiret To: Nicolas Goaziou , 35308@debbugs.gnu.org Subject: Re: bug#35308: GDM refuses to log into Gnome Shell (was: GDM refuses to log into Gnome on Debian 9 or 10) In-Reply-To: <87wnk34nd3.fsf@nicolasgoaziou.fr> References: <87zhoo8pl7.fsf@nicolasgoaziou.fr> <87wnk34nd3.fsf@nicolasgoaziou.fr> Date: Fri, 17 Dec 2021 11:52:52 +0100 Message-ID: <87r1aby03f.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spamd-Bar: / Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello Nicolas, Nicolas Goaziou writes: > I went a bit further: > > The issue is not specifically glib-related, but can be reproduced with > any package using the following: > > (search-path-specification > (variable "XDG_DATA_DIRS") > ...) [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: jpoiret.xyz (xyz)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 35308 Cc: dev@jpoiret.xyz 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.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello Nicolas, Nicolas Goaziou writes: > I went a bit further: > > The issue is not specifically glib-related, but can be reproduced with > any package using the following: > > (search-path-specification > (variable "XDG_DATA_DIRS") > ...) [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: jpoiret.xyz (xyz)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Hello Nicolas, Nicolas Goaziou writes: > I went a bit further: > > The issue is not specifically glib-related, but can be reproduced with > any package using the following: > > (search-path-specification > (variable "XDG_DATA_DIRS") > ...) > > Hence, the following manifest can reproduce the problem: > > (specifications->manifest '("fontconfig")) > > even though fontconfig does not depend on glib (but does search XDG_DATA_DIRS). Someone on IRC had this exact problem (down to the fontconfig minimal reproducer :) ), and thanks to your pointer about XDG_DATA_DIRS, I've figured out what the issue is. The XDG specification says that if XDG_DATA_DIRS is unset, a default value of `/usr/local/share/:/usr/share/` should be used in its place. On Debian, that env var is not explicitely set, so applications use that default value, but when we prepend to it, it effectively removes both of these directories from the search path. As a workaround, you can do `export XDG_DATA_DIRS=/usr/local/share/:/usr/share/` right before sourcing the guix profile in your .bash_profile. I don't know what the best course of action here is to have better OOB support. Is it possible to have env vars set by Guix have a default value if unset? Best, Josselin Poiret