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 iJzCCYCgnWDfZgAAgWs5BA (envelope-from ) for ; Thu, 13 May 2021 23:56:16 +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 SDR+BYCgnWD5ZQAA1q6Kng (envelope-from ) for ; Thu, 13 May 2021 21:56:16 +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 8610115F9A for ; Thu, 13 May 2021 23:56:15 +0200 (CEST) Received: from localhost ([::1]:34150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhJJV-0002cV-3x for larch@yhetil.org; Thu, 13 May 2021 17:56:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhJJK-0002cL-5q for bug-guix@gnu.org; Thu, 13 May 2021 17:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhJJJ-0003r9-TA for bug-guix@gnu.org; Thu, 13 May 2021 17:56:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhJJJ-0001Mz-P4 for bug-guix@gnu.org; Thu, 13 May 2021 17:56:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48398: many packages become nonfunctional if not install in fixed profile like ~/.guix-profile Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 13 May 2021 21:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48398 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Shyam Saran , 48398@debbugs.gnu.org Received: via spool by 48398-submit@debbugs.gnu.org id=B48398.16209429545250 (code B ref 48398); Thu, 13 May 2021 21:56:01 +0000 Received: (at 48398) by debbugs.gnu.org; 13 May 2021 21:55:54 +0000 Received: from localhost ([127.0.0.1]:44483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhJJB-0001Mb-L3 for submit@debbugs.gnu.org; Thu, 13 May 2021 17:55:53 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:61498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhJJ7-0001MQ-V1 for 48398@debbugs.gnu.org; Thu, 13 May 2021 17:55:52 -0400 Received: from [10.0.0.4] (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Fh57k0KcRz1LWp5; Thu, 13 May 2021 23:55:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4Fh57k0KcRz1LWp5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1620942946; bh=e3bV70nMSO72F0SYIXEJS1jihD3/9NspdymaQ8IEPvU=; h=Subject:From:To:Date:In-Reply-To:References:From; b=FBXNKIxWJPamTJp/C78vq1NlSy8MtwYJo2yIBw9TBsCkyYe7ar40FEnMB+ZZbag08 bpXd8lG9Y8u2IAUaeEckR/64/jjNy5DxEvgCWUlusrDAfyfTVeIgDSqLDL9kla+mFJ ZKuks01Hgq0QCidQ0+PELBLYZvownzbyMgBqjzqs= Message-ID: From: Leo Prikler Date: Thu, 13 May 2021 23:55:20 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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.117 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=1620942975; 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=e3bV70nMSO72F0SYIXEJS1jihD3/9NspdymaQ8IEPvU=; b=m2BqJGKoH2S/wG8tBWKogAjYDch6nYly68DQPkoMDnToU51MJFFjBS7eTLZQHbLfNPf9hx 5t3H/enooTCCyMUToSc0i2wbycV8x6xUhlzDYi/4dkLIUvWNoEdl+1ob+PIv4ZoLhvAdd8 ZkYaggYxN3c6RTFmYkkcFE0DwSLaoVNJxn5Hf/1DfN1GdXiRf2NQGBy645i0PkYRv+cAMV Ar+rBgGcOwYYAnt8GQaQhWcDEnElvhQFazJNPJKeCJysCjU+e2gF4AcztsCEsA6cQTxRbl STXAgd9s5jLOAu3OXiYXw6WHXL8nROUZlSOzJDG1VUVs9kh5bMcFrc6oYksTaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620942975; a=rsa-sha256; cv=none; b=pGEwKMUUfuHpouQ50BeXILbcCh+NrmeAEA4qbQEFCL7qnpK23NRqtizEAp4BGis1Pdfb+p X46Nh5Do0BdBD3jYXeOSybrOXFtwIS64EgGVb6jIdjeTFrO0MX61miPmuw1xuh5irBLsit UPa3rPxFj8MKAbN3iBrAncIHupgDG0GqrU+Th3he4V0znIWeZQNcdeaMKGT0aqjtbI4lIC QP+wKKpKXifRvwl7S0tMpWBQ/aTXjqUZJo0gLx5KpvClFYKuqJtU8mQVbijAw6M1cIaQ5b 2AKZF1lv+AlFmF1NSKH6JIkVqCCuEWKepxoBPmdn4QgDj3FOHRmA0uIffn4rNg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=FBXNKIxW; 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.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=FBXNKIxW; 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: 8610115F9A X-Spam-Score: -1.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: tRSUAw5kWG8A Am Donnerstag, den 13.05.2021, 19:56 +0530 schrieb Shyam Saran: > many packages become nonfunctional if not install in fixed profiles > (e.g. ~/.guix-profile) While this is true, there is not necessarily a common cause for all such instances. Even among packages, that hardcode ~/.guix-profile, there might be differences, so it's better to focus on specific instances or groups of instances, in which one fix can be applied to all of them. > 1. blueman Please provide more information on blueman. > 2. font-conf so most of font like font-lohit will not be available This one has a history. Instead of exposing itself to the dangers of environment variables, fontconfig took the reasonable approach of letting itself be controlled by XML files, so if you want it to work differently from how it usually behaves, you have to edit those. > I had noticed that fixed profiles have become part of many > packages/services definition which could be the reason that many of > these packages/services become dependent on these fixed profiles. Which packages/services in particular? > It can be checked with > > $ ag --scheme '.guix-profile' > $ grep -r '.guix-profile' > > in code I find 65 matches including documentation. Even assuming every one of them was a package, it would affect about 1% of packages, many of which would probably be leaf packages. So while this number is definitely large enough to intimidate those who want to quickly fix a number of them, it is also smaller in scale than the report would imply. > > Also > > We provides necessary services through putting environment variables > in each profiles > > PROFILE_PATH/etc/profile > > like for pidgin/purple > PURPLE_PLUGIN_PATH > > for libraries > LIBRARY_PATH > > > As suggestion > > We could first provide augment all variables with guix specific > prefix e.g. GUIX_PEV_... > (PVS profile environment variables.) > > So these all variables will become > > > GUIX_PEV_PURPLE_PLUGIN_PATH > GUIX_PEV_LIBRARY_PATH > > then we could or could not (left to user) to set them > PURPLE_PLUGIN_PATH=$GUIX_PEV_PURPLE_PLUGIN_PATH > LIBRARY_PATH=$GUIX_PEV_LIBRARY_PATH > > > So with prefixed env vars, in first look one will know it is coming > from guix related profiles. > maybe it will also help in removing dependencies on fixed profiles. Guix already prefixes some environment variables, that might cause issues if they are read by all variants of a package with GUIX_. I don't think this needs to be done for every search path, however. Again, specific instances like GUIX_PYTHONPATH can (and should be) discussed, but I don't think this solves the relation to fixed profiles. Regards, Leo