Received: (at submit) by debbugs.gnu.org; 23 Aug 2023 11:15:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 23 07:15:23 2023 Received: from localhost ([127.0.0.1]:33006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qYlpZ-0005ho-E4 for submit <at> debbugs.gnu.org; Wed, 23 Aug 2023 07:15:23 -0400 Received: from lists.gnu.org ([2001:470:142::17]:35206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <nils@HIDDEN>) id 1qYl0q-0003zd-A7 for submit <at> debbugs.gnu.org; Wed, 23 Aug 2023 06:22:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <nils@HIDDEN>) id 1qYl0h-0007Ra-Fy for bug-guix@HIDDEN; Wed, 23 Aug 2023 06:22:47 -0400 Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <nils@HIDDEN>) id 1qYl0e-0001Qh-P2 for bug-guix@HIDDEN; Wed, 23 Aug 2023 06:22:47 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4RW2N04n5Mz9sqf for <bug-guix@HIDDEN>; Wed, 23 Aug 2023 12:22:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landt.email; s=MBO0001; t=1692786160; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=+qdVVcOGusR89GmMu9SYclu5OLMOvUQsojScUn3UXKY=; b=BLSNXiZjWXstL6Tpvlq5fTG8EqwwsWAaYv7dSkSudWUoNspHNoDMLMOu182ChJ/+TAzFRd 615vdF7p+xC5U3zTV3NyZYNV5P9xWBNBFTUy8u4np7qjdAF++Qvm9NZ2zYOXq53jkrnOOK Xos8Q0L/oSGHYxVmuBQNm68RSHME+A5K9WHQMS4b/yL6pQx6c8bghjpgwCy3/8P4kPnE9d rmk+q2/Wqj3Qi8up/zAOZBHBNpsxX4uyfVV7hquhOPOWTIIijPoeJW7FFB2NZ/1YFmAdCH sJJu79UdRjNGacwXH9EvmNc11pOMvZOeJO3cBBWNEJTO16c5mK+CzNdGOhTYJA== Date: Wed, 23 Aug 2023 12:22:40 +0200 (CEST) From: nils@HIDDEN To: "bug-guix@HIDDEN" <bug-guix@HIDDEN> Message-ID: <509099431.327298.1692786160360@HIDDEN> Subject: home mcron service overwrites PATH with a GuixSD-only directory MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_327297_1022314884.1692786160357" X-Priority: 3 Importance: Normal X-Rspamd-Queue-Id: 4RW2N04n5Mz9sqf Received-SPF: pass client-ip=2001:67c:2050:0:465::202; envelope-from=nils@HIDDEN; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 23 Aug 2023 07:15:17 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) ------=_Part_327297_1022314884.1692786160357 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, when using the home-mcron-service, PATH is set to /run/current-system/profile/bin . This directory is empty when using guix home on a foreign distro, meaning all executable paths would need to be absolute. This includes stuff like /usr/bin/ssh, /usr/bin/nice etc.. My guess for the culprit was 1c30d5a6bfc5d48137f4bdcc271189a06fdc6ed3 , which replaced the custom home-mcron-service-type with mapping it to mcron-service-type. The mcron shepherd service in old service type did not mess with the environment variables, the inherited one does: #:environment-variables (cons* "GUILE_AUTO_COMPILE=0" "PATH=/run/current-system/profile/bin" (remove (cut string-prefix? "PATH=" <>) (environ))) Strange thing is that the commit is from 2023-08-06, and I update guix almost every day, but did not run into the issue until today. But the commit seems to fit the issue perfectly, so I'm not sure what's going on at all. ------=_Part_327297_1022314884.1692786160357 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit <!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div class="default-style"> Hello, </div> <div class="default-style"> </div> <div class="default-style"> when using the home-mcron-service, PATH is set to /run/current-system/profile/bin . This directory is empty when using guix home on a foreign distro, meaning all executable paths would need to be absolute. This includes stuff like /usr/bin/ssh, /usr/bin/nice etc.. </div> <div class="default-style"> </div> <div class="default-style"> My guess for the culprit was 1c30d5a6bfc5d48137f4bdcc271189a06fdc6ed3 , which replaced the custom home-mcron-service-type with mapping it to mcron-service-type. </div> <div class="default-style"> The mcron shepherd service in old service type did not mess with the environment variables, the inherited one does: </div> <div class="default-style"> #:environment-variables <br>(cons* "GUILE_AUTO_COMPILE=0" <br>"PATH=/run/current-system/profile/bin" <br>(remove (cut string-prefix? "PATH=" <>) <br>(environ))) </div> <div class="default-style"> </div> <div class="default-style"> Strange thing is that the commit is from 2023-08-06, and I update guix almost every day, but did not run into the issue until today. But the commit seems to fit the issue perfectly, so I'm not sure what's going on at all. </div> </body> </html> ------=_Part_327297_1022314884.1692786160357--
nils@HIDDEN
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#65471
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.