From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EGfuHCbXHGFLCAEAgWs5BA (envelope-from ) for ; Wed, 18 Aug 2021 11:47:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IEq+GCbXHGEdEQAA1q6Kng (envelope-from ) for ; Wed, 18 Aug 2021 09:47:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9DB421ABAE for ; Wed, 18 Aug 2021 11:47:17 +0200 (CEST) Received: from localhost ([::1]:58426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGIAF-0004CH-JQ for larch@yhetil.org; Wed, 18 Aug 2021 05:47:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGIA2-00048R-7m for bug-guix@gnu.org; Wed, 18 Aug 2021 05:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGIA2-0002iY-0E for bug-guix@gnu.org; Wed, 18 Aug 2021 05:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGIA1-00078S-Ka for bug-guix@gnu.org; Wed, 18 Aug 2021 05:47:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50103: Pulseaudio doesn't export XDG_CONFIG_DIRS Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 18 Aug 2021 09:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50103 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos , john.kehayias@protonmail.com, 50103@debbugs.gnu.org Received: via spool by 50103-submit@debbugs.gnu.org id=B50103.162927997027369 (code B ref 50103); Wed, 18 Aug 2021 09:47:01 +0000 Received: (at 50103) by debbugs.gnu.org; 18 Aug 2021 09:46:10 +0000 Received: from localhost ([127.0.0.1]:54906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGI98-00077K-Kb for submit@debbugs.gnu.org; Wed, 18 Aug 2021 05:46:10 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:13383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGI93-00076j-63 for 50103@debbugs.gnu.org; Wed, 18 Aug 2021 05:46:05 -0400 Received: from [10.0.0.4] (62-47-226-13.adsl.highway.telekom.at [62.47.226.13]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4GqNLt2drKz3x9h; Wed, 18 Aug 2021 11:45:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1629279958; bh=x8wVMg8MyDxfGoT6ppr/aBvWjHP/g/jnx/Gx1Y7OjGU=; h=Subject:From:To:Date:In-Reply-To:References; b=tGQ89qnRLqIFuBzTihTBlrjjaQS9VRcm+y6ew7Fe5IyJdVwHcuutzVKxu+FCBfENt 5mmi/pcf55/rM7VyXyByVhGheV4r7pnaa1iY1aE/7LipfbEtDPZ3OYn8zmBwR9EFnl pLQ3pgU7RJW/ygNMNEgm4KIdTA/VgIF5Df+X8KX4= Message-ID: <459e9a0866a72bd3bf792d347e249f854e5654e1.camel@student.tugraz.at> From: Leo Prikler Date: Wed, 18 Aug 2021 11:45:37 +0200 In-Reply-To: <04f0f93cb3dd7fa70d940f200b00432eaf9004e9.camel@telenet.be> References: <8260714867d007d924c151a18ff9c63950ab2fcd.camel@student.tugraz.at> <04f0f93cb3dd7fa70d940f200b00432eaf9004e9.camel@telenet.be> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629280038; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=x8wVMg8MyDxfGoT6ppr/aBvWjHP/g/jnx/Gx1Y7OjGU=; b=G6hL5DJRGyPyXj60hPCY1I0p1VApTXNJL/32PhW6a2iynA79amQtePEE363hvc7qZ/g2h7 5OEu6oheCXzUt8Uek3Hj2UW0z4jfkynhni3uf8qLEgd224zDepG0sy7tCY3krfv6DVHb6R moBK8MeUkI4gXKJgoIhPFEE4GDGS+2IsH4QafuxaR/3ZpkE9GFmcguBy/sdfvwy4twcngq D8a0VXxzz4yjdAXd/FBCobcdb4lFtokl4dECjsQt1LVaUHSmhZFqnNtxuOjuP67hrV+p0s POHrcSm5f0EX+EhkbhoFiZdlTxLepCQ+KgVki5hrE74NtkU5tZPSSuHzQIm97w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629280038; a=rsa-sha256; cv=none; b=H7C4tdGzyqEFBjvJ/6lwoCWyzNd55c2ayc2Y26d6ldXfMo7czTzwbDOWiZBLqvjTLX51SG Be4j9lvOSQ+4KOBBa10tD2pEqV5pP3UWvAkQALfossVXYyVIc5ksh5BL7l2ZjkV7DQC41G 2p0KZ/loipetXXtP71B2B9n6AIqoFbOXOCuZdr46+BEKO74IHqHli5a0nJvAfe6CkqSik+ 2wQumNtfsPhq92RDTyBvWrdTxZ56JaU9QrEiQ21x0y3dLRnsLmN+dAIUQrFPayXslRJmjx +d3loH69VaNfSZ5udGXGCCSM92rYCSCSI/5QAsY49NwfpDuhn9eyrpb1B88+iw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=tGQ89qnR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=tGQ89qnR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 9DB421ABAE X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: Tqw3Jzytxg19 Hi, Am Mittwoch, den 18.08.2021, 11:28 +0200 schrieb Maxime Devos: > Leo Prikler schreef op wo 18-08-2021 om 10:03 [+0200]: > > Hi John, > > > > a lot of packages would do much better if they exported > > XDG_CONFIG_DIRS. However, there is currently no way of doing so > > other > > than copypasting the same snippet over and over and over and > > over. A > > workaround -- if you need this in an environment -- is to also > > include > > a package, that already has a search path on XDG_CONFIG_DIRS, like > > glib > > (I think glib:bin works too). > > > > I recently tried exporting XDG_CONFIG_DIRS as a variable from one > > module, so that it can be referenced in others, but that led to a > > weird > > recursive errors. It would be nice to find a good way of doing > > that, > > though. > > What do you think of defining the > $XDG_CONFIG_DIR in (guix search-paths) itself, next to $PATH? That > seems > unlikely to lead to recursive errors. > > Alternatively, I would guess that making 'search-paths' and > 'native-search-paths' a ‘thunked’ field would resolve the errors, > at cost of making objects use a bit more memory. Both sound like interesting proposals. Obviously, adding $XDG_CONFIG_DIRS to (guix search-paths) would work in the short term, but I think defining all interesting environment variables there is probably not the best solution for the future. There's a few variables that are used widely FSVO widely, but using them also implies having some package as input, e.g. the cURL-related ones. XDG_CONFIG_DIRS technically also falls in there, because you will have either xorg or xdisorg imported. Therefore, I think I'd prefer a solution where variables can be exported (and re-exported) from any module in the (gnu packages) subtree. Regards