From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id APDSANrE72Td1QAA9RJhRA:P1 (envelope-from ) for ; Thu, 31 Aug 2023 00:38:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id APDSANrE72Td1QAA9RJhRA (envelope-from ) for ; Thu, 31 Aug 2023 00:38:18 +0200 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 BF47DE637 for ; Thu, 31 Aug 2023 00:38:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=landt.email header.s=MBO0001 header.b=BLSNXiZj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=landt.email (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693435097; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=+qdVVcOGusR89GmMu9SYclu5OLMOvUQsojScUn3UXKY=; b=m0EaQjV3V6NK3lQ3FJvKN0e0aNZdCMc7JJKEMkCtoKuXYImeCgrCd8hcugqELUU0UyLXMJ 9VDlJK+1uwbWAKYyIB2DMrkDWDaOBT1RkxbUuyFVaZdBas0ihZjYWkOtkgx/w9ujlq4kZ4 vC7ET51uC/jonY07+ZC2ODKftm9jtWxeYjOiWFn6Z2QGLubIwibHZGAbeyw/ZVnp6ZWFnP M/3sCfKteWpiXZN3bzwiPdPlfligpn8Q/CXZx4lLxokWm1DGQZ12ZwT960zUZoNK9dFejM 5d58J3cpGgh6bDXxHYdANaSDOozb6DWSBn0WXxC47uHRLpN1m4t8cDWf53hLSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=landt.email header.s=MBO0001 header.b=BLSNXiZj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=landt.email (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693435097; a=rsa-sha256; cv=none; b=VGTWQZ4ILmjlbi3zuby+PAE7Z2SFojoSLgemW+yUTBlbDK2xtBgpTvu6rQIVKjF8WQB2s4 QcPNMRCETIXN5PugZcPCUuTe/HdqSp/Tt7ASvXP9nCSesb+lCEGZWHEM1pvzLjVWjv0ajM dtkpmXG9RZU4ns+HNZwbyg38ekUalyo8FXtpYZsjvTbfu8kto5DAsxYLcoTlafMS6Hlc3f Aar790GBaaB21v54qDAn83MNzp4XhrlPaylrCs13LWftBKtdl9HF8ArfC442jz5d8RGl6A fqUeanfa2gJ2u+aspP8LbDoTM0B5CFHj+DtmNDHjMt1VqHgl9Mbqyu4g/4x9qw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbTow-0003m6-53; Wed, 30 Aug 2023 18:37:54 -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 ) id 1qYlqB-0006oJ-I1 for bug-guix@gnu.org; Wed, 23 Aug 2023 07:15:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYlqB-0004F9-7n for bug-guix@gnu.org; Wed, 23 Aug 2023 07:15:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYlqE-0005j6-H4 for bug-guix@gnu.org; Wed, 23 Aug 2023 07:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65471: home mcron service overwrites PATH with a GuixSD-only directory Resent-From: nils@landt.email Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 23 Aug 2023 11:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65471 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 65471@debbugs.gnu.org X-Debbugs-Original-To: "bug-guix@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.169278932321946 (code B ref -1); Wed, 23 Aug 2023 11:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Aug 2023 11:15:23 +0000 Received: from localhost ([127.0.0.1]:33006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYlpZ-0005ho-E4 for submit@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 ) id 1qYl0q-0003zd-A7 for submit@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 ) id 1qYl0h-0007Ra-Fy for bug-guix@gnu.org; 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 ) id 1qYl0e-0001Qh-P2 for bug-guix@gnu.org; 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 ; 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@landt.email Message-ID: <509099431.327298.1692786160360@office.mailbox.org> 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@landt.email; 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-Mailman-Approved-At: Wed, 23 Aug 2023 07:15:17 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 30 Aug 2023 18:37:52 -0400 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -3.59 X-Migadu-Queue-Id: BF47DE637 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -3.59 X-TUID: bINwifeTsXrc ------=_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
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--