From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 07 13:19:56 2023 Received: (at submit) by debbugs.gnu.org; 7 Jan 2023 18:19:56 +0000 Received: from localhost ([127.0.0.1]:58865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEDnP-0001Nq-K8 for submit@debbugs.gnu.org; Sat, 07 Jan 2023 13:19:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:48134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEDnO-0001Nj-3d for submit@debbugs.gnu.org; Sat, 07 Jan 2023 13:19:54 -0500 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 1pEDnN-0007Y5-V9 for guix-patches@gnu.org; Sat, 07 Jan 2023 13:19:53 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEDnN-0007gm-Mn for guix-patches@gnu.org; Sat, 07 Jan 2023 13:19:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=vzEoa5Qe7VZ8HFYCjCvqoDINxXSk/MWM+FFXwBCX3VY=; b=ZYijfiWCG6kSkG zNRx2vUiEt3QBgrzq6hb2VEbjJ8KFAFtiJwPeSrqGNif37iS8bF4a/2ZcNktCpbObKpnpV07dtxDS ++7rDLVb/VHQx4LYZi2rZmQFzZo46KOO2EuE6fifXXTyrLCgbJd7REMp2VaBgc7SiGOWR9coP0Fhs y/K5sqtMboDirFibiGRyB5J7aDQdORZuzoRJyIw6ff4zVyOWH0Vy6z6aZ5EZsU64ESgbI9X+hHDSk aQAnwThPCrwjRh01Uk7NzBuRk4VBsj7uqc5elfMGqYYqsZmwLxTZKYhQMMfyEaug6wCl1O1qlisNH P835SpTCosBBIBh39e7Q==; Received: from [109.190.253.11] (helo=localhost.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEDnM-0005LN-Ul; Sat, 07 Jan 2023 13:19:53 -0500 From: Mathieu Othacehe To: guix-patches@gnu.org Subject: [PATCH 1/1] services: base: Add extra-env support to guix-configuration. Date: Sat, 7 Jan 2023 19:19:38 +0100 Message-Id: <20230107181938.14334-1-othacehe@gnu.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: Mathieu Othacehe 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: -3.3 (---) * gnu/services/base.scm ()[extra-env]: New field. (guix-shepherd-service): Honor it. * doc/guix.texi (Base Services): Document it. --- Hello, Here is a small patch to allow defining extra environment variables in the guix-daemon context. I intend to use it to set the GUIX_SUBSTITUTE_DEBUG variable to debug https://issues.guix.gnu.org/48468. Thanks, Mathieu doc/guix.texi | 4 ++++ gnu/services/base.scm | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 293c3016aa..e337945ba7 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -18482,6 +18482,10 @@ herd set-http-proxy guix-daemon @item @code{tmpdir} (default: @code{#f}) A directory path where the @command{guix-daemon} will perform builds. +@item @code{extra-env} (default: @code{'()}) +Environment variables to be set before starting the daemon, as a list of +@code{key=value} strings. + @end table @end deftp diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 6993e1f174..f29657e86e 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -198,6 +198,7 @@ (define-module (gnu services base) guix-configuration-generate-substitute-key? guix-configuration-extra-options guix-configuration-log-file + guix-configuration-extra-env guix-extension guix-extension? @@ -1654,7 +1655,9 @@ (define-record-type* (http-proxy guix-http-proxy ;string | #f (default #f)) (tmpdir guix-tmpdir ;string | #f - (default #f))) + (default #f)) + (extra-env guix-configuration-extra-env ;list of strings + (default '()))) (define %default-guix-configuration (guix-configuration)) @@ -1710,7 +1713,7 @@ (define (guix-shepherd-service config) (guix build-group build-accounts authorize-key? authorized-keys use-substitutes? substitute-urls max-silent-time timeout log-compression discover? extra-options log-file - http-proxy tmpdir chroot-directories) + http-proxy tmpdir chroot-directories extra-env) (list (shepherd-service (documentation "Run the Guix daemon.") (provision '(guix-daemon)) @@ -1799,7 +1802,8 @@ (define discover? (if proxy (list (string-append "http_proxy=" proxy) (string-append "https_proxy=" proxy)) - '())) + '()) + extra-env) #:log-file #$log-file)))) (stop #~(make-kill-destructor)))))) -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 11 14:38:31 2023 Received: (at 60632) by debbugs.gnu.org; 11 Jan 2023 19:38:32 +0000 Received: from localhost ([127.0.0.1]:43921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFgvf-0003GZ-LJ for submit@debbugs.gnu.org; Wed, 11 Jan 2023 14:38:31 -0500 Received: from mail-vs1-f46.google.com ([209.85.217.46]:42896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFgvc-0003GK-DU for 60632@debbugs.gnu.org; Wed, 11 Jan 2023 14:38:30 -0500 Received: by mail-vs1-f46.google.com with SMTP id d66so4417990vsd.9 for <60632@debbugs.gnu.org>; Wed, 11 Jan 2023 11:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=BMvIOgA7aGVaJpdRfu+i3WPqp2PRXJzobiu9GoNhc5k=; b=dK/6wo8HGC4k9i/+526kogvRmxjKsHAiHmuBf96cM3389WdB0pjvcUfXPYKIIhoQaZ 07SqYFJ2nwzVfEoWCZYgV3sN0Wrky6+uuGqCZMRbVXW8EWh18BEx4b2U7YsqAYP5ZBc1 rM6vxzIi6cl7VWezFueNKMbo3cfqXW7/iZBfwLEjWU6rh0XJ5qCUCtZ/iFIymm7SI5DN yTXMF36tFCBCAFKAe/kUAI7d3/rHWX4LY8oiPmKfHhX84WbQcBPr7jasOFRBC0ZwehZH rTtvhlXDcuiSLEq+TqipXof+c0LkD1RlsNW14C9xyXDIFIUKQg3QbIGv+2EoFsav8sO0 0H6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BMvIOgA7aGVaJpdRfu+i3WPqp2PRXJzobiu9GoNhc5k=; b=VabV5jNvePx5e7mO2F/FGaWh7wBOyK9BUAjhu2T8wOAz2UMZiwZ7sxxPhQectyudj6 xPVAcrPcE12JfJKY4hNdnAsSXWFnA0elrChDtP3ayjuwGrP1vt7jk0x5b0uXDY3qT7db FEOxXrbrjLpq9uOTVsrUSejyueuMlVMMLWT29lP3sx0H7OLh8fUq2dpHmHXeW5ZcwiuO weG5JPs6Mu8qHwKHF4l75VUpeinXj7sXVjQxY61fPpPZrI3eDJm8Cd0TzvAX/zAqEooj OAOZWlSwiUQsy2yFwp9K/uq0RZ7jcAtSL5Rv5daP5LceThRMhXfNc2aqTvaDAsc5FCvh u7JQ== X-Gm-Message-State: AFqh2kotbvRrn6BthqJnz220kjQB0VlTyUp2zH62tDnxvLqu0j30TBkG +HA52wudQouGrUJV45SVX9ZL8DJk5k2hmg== X-Google-Smtp-Source: AMrXdXtzGPmFqdxHWtBevAj+bLcn8NedDC3oS7l+UyMNqAjnQaNI7kTRbuVoXsjYuKOT7mnhzo1ubQ== X-Received: by 2002:a05:6102:3022:b0:3ce:9934:c5f5 with SMTP id v2-20020a056102302200b003ce9934c5f5mr20241887vsa.20.1673465902332; Wed, 11 Jan 2023 11:38:22 -0800 (PST) Received: from hurd (dsl-159-79.b2b2c.ca. [66.158.159.79]) by smtp.gmail.com with ESMTPSA id d6-20020a37b406000000b007049f19c736sm9368153qkf.7.2023.01.11.11.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 11:38:21 -0800 (PST) From: Maxim Cournoyer To: Mathieu Othacehe Subject: Re: bug#60632: [PATCH 1/1] services: base: Add extra-env support to guix-configuration. References: <20230107181938.14334-1-othacehe@gnu.org> Date: Wed, 11 Jan 2023 14:38:20 -0500 In-Reply-To: <20230107181938.14334-1-othacehe@gnu.org> (Mathieu Othacehe's message of "Sat, 7 Jan 2023 19:19:38 +0100") Message-ID: <871qo0j1zn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60632 Cc: 60632@debbugs.gnu.org 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: -1.0 (-) Hi Mathieu, Mathieu Othacehe writes: > * gnu/services/base.scm ()[extra-env]: New field. > (guix-shepherd-service): Honor it. > * doc/guix.texi (Base Services): Document it. > --- > Hello, > > Here is a small patch to allow defining extra environment variables in the > guix-daemon context. > > I intend to use it to set the GUIX_SUBSTITUTE_DEBUG variable to debug > https://issues.guix.gnu.org/48468. LGTM. Side topic: I wonder if (with some changes to the daemon -- perhaps in DerivationGoal::startBuilder) in nix/libstore/build.cc we could leak the COLUMNS variable to be able to control the Guile builder backtrace width. -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 31 17:18:19 2023 Received: (at 60632) by debbugs.gnu.org; 31 Jan 2023 22:18:19 +0000 Received: from localhost ([127.0.0.1]:55226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMyxH-0007eJ-BZ for submit@debbugs.gnu.org; Tue, 31 Jan 2023 17:18:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMyxF-0007e5-Ck for 60632@debbugs.gnu.org; Tue, 31 Jan 2023 17:18:17 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMyxA-0007rR-5y; Tue, 31 Jan 2023 17:18:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=fqgTtmEd+vP+32hYha7xq9d+ulMiw2ZGRuPH5pwUGbo=; b=E9RCpjT83LyLQc2iayHG Ssn0rura8Df137e0kdyT96eRhWbOMZP3ENVgruttQg8wlLpn+lqJaFELVe5GW8Wg35SnpS/i643MK za8EyWLbRZN7aaPmb77hd2qvm4F2uwf1rAZBCcLuIxYE/MB/bH/SC8RDy8TG07tFOxNoQZALjgCHW EokFC5rrJAvJrPcaQQaomM3MUMqx+oC2dFoiP2KNTJr9KnkP96U4zvKe9Jp/Yyo9hD++pzkHwHT16 Kz4a+jgis75HtUTLT5/hKGj2dsT8XbinJe19mINXN6GD3A+awUvznrdgIIggFjdcEmcqRhtWnVFro OO7xOZXDWsfCUQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMyx9-0001Km-I0; Tue, 31 Jan 2023 17:18:11 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#60632: [PATCH 1/1] services: base: Add extra-env support to guix-configuration. References: <20230107181938.14334-1-othacehe@gnu.org> <871qo0j1zn.fsf@gmail.com> Date: Tue, 31 Jan 2023 23:18:10 +0100 In-Reply-To: <871qo0j1zn.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 11 Jan 2023 14:38:20 -0500") Message-ID: <87r0vas5zx.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60632 Cc: Mathieu Othacehe , 60632@debbugs.gnu.org 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: -3.3 (---) Hi! Maxim Cournoyer skribis: > Side topic: I wonder if (with some changes to the daemon -- perhaps in > DerivationGoal::startBuilder) in nix/libstore/build.cc we could leak the > COLUMNS variable to be able to control the Guile builder backtrace > width. As a rule of thumb, I think we should keep the build environment unchanged forever=E2=80=94no changes to the set of environment variables and files/directories present in the build environment. It=E2=80=99s important because the whole reproducibile-by-construction appr= oach depends on that. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 14 15:55:03 2023 Received: (at 60632-done) by debbugs.gnu.org; 14 Oct 2023 19:55:04 +0000 Received: from localhost ([127.0.0.1]:50594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrkj1-0008Mj-KN for submit@debbugs.gnu.org; Sat, 14 Oct 2023 15:55:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrkiz-0008MC-TD for 60632-done@debbugs.gnu.org; Sat, 14 Oct 2023 15:55:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrkiV-00049o-UQ; Sat, 14 Oct 2023 15:54:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=/3Na5OBaIMxHOrfZy+FjfBq613YGjfs60/i4CQA08q8=; b=GADJf/LtlZUBR+ZlWQKE hwKxznQe+sSRq5xl1BarULyLq9KIHSL5k9TXDplTiwk10mxhrABPNMv2h6HN2KHlbFk6sQQn0F9wg 5GuZDoDx4zLI9fvumg8OBBfu2Lz2VPkyUdC2W9TAlLqTvkNEQE8EV15PYlC+Ax4zK9rNJ6H9OK19w nExRFi0x9Skh62/2BLaAWadilMhQpVS/3U0zrg+uxPIYIFK52yScF4Xo2bSYohqYOIZAglr/NsLjY eFDc2MO69+9CFkYWYgojw+sIpr8czFsAtHEjMCp0bEIG/grSII/QFmmavixc2vSBE5OyaxPQcStQ8 wZsjwmE51S/Miw==; From: Mathieu Othacehe To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#60632] [PATCH 1/1] services: base: Add extra-env support to guix-configuration. In-Reply-To: <87r0vas5zx.fsf_-_@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s?= =?utf-8?Q?=22's?= message of "Tue, 31 Jan 2023 23:18:10 +0100") References: <20230107181938.14334-1-othacehe@gnu.org> <871qo0j1zn.fsf@gmail.com> <87r0vas5zx.fsf_-_@gnu.org> Date: Sat, 14 Oct 2023 21:54:27 +0200 Message-ID: <87sf6dj7yk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60632-done Cc: 60632-done@debbugs.gnu.org, Maxim Cournoyer 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: -3.3 (---) Hey, > As a rule of thumb, I think we should keep the build environment > unchanged forever=E2=80=94no changes to the set of environment variables = and > files/directories present in the build environment. > > It=E2=80=99s important because the whole reproducibile-by-construction ap= proach > depends on that. OK, closing then :) Thanks, Mathieu From unknown Fri Aug 15 14:16:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 12 Nov 2023 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator