From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wFYsJu8tbGNDcgEAbAwnHQ (envelope-from ) for ; Wed, 09 Nov 2022 23:47:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UAJLJu8tbGPL3AAA9RJhRA (envelope-from ) for ; Wed, 09 Nov 2022 23:47:11 +0100 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 75951F2B6 for ; Wed, 9 Nov 2022 23:47:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ostqZ-0006u5-OO; Wed, 09 Nov 2022 17:47:03 -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 1ostqY-0006tX-Bo for guix-patches@gnu.org; Wed, 09 Nov 2022 17:47:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ostqY-0002Xj-3r for guix-patches@gnu.org; Wed, 09 Nov 2022 17:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ostqX-0004w9-IQ for guix-patches@gnu.org; Wed, 09 Nov 2022 17:47:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#58903] [PATCH] gnu: nix: Update to 2.11.1. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Nov 2022 22:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58903 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: phodina Cc: "58903@debbugs.gnu.org" <58903@debbugs.gnu.org>, "go.wigust@gmail.com" , Tobias Geerinckx-Rice , "i@pengmeiyu.com" Received: via spool by 58903-submit@debbugs.gnu.org id=B58903.166803396218908 (code B ref 58903); Wed, 09 Nov 2022 22:47:01 +0000 Received: (at 58903) by debbugs.gnu.org; 9 Nov 2022 22:46:02 +0000 Received: from localhost ([127.0.0.1]:41257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ostpa-0004uj-Bg for submit@debbugs.gnu.org; Wed, 09 Nov 2022 17:46:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ostpY-0004uC-2k for 58903@debbugs.gnu.org; Wed, 09 Nov 2022 17:46:00 -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 1ostpQ-0001gI-2j; Wed, 09 Nov 2022 17:45: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:In-Reply-To:Date:References:Subject:To: From; bh=tqq1OpogNA8GEBrhJRX3rY/LwTDemNM0NcOPfaz6eQQ=; b=hpPg96qLMNJ81Wf1qbUj EYj0TjJmDiCPa2ewrd6SQFdcpImI/aIzqvxPuluoLCk+4K9moxMwul6L0jX3WH499z9iqMlzTPd/K 6R4dBu2fFRTGeC82gEyDWdZSWRFaJ0dVDqExchKmqzx9AZ1W4sYfnzFoRUfHtuCiNMYsFrA8YrkBi M7Jma+NCEkvQOEycQPzJhSynyNjcrycm0g3P6jdRok+eA6zRtd4EOknpqrD3jJGrHEDt+OuhZrcAK hrNKyWyZHqLfGZkjbeEFgquJmd0sqTkzDIK6HsNX3HzfX+GPlUWGkE5MW/Rhaw0I2ZH49yE8tBCCN HxFgpFDKK0ioGg==; 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 1ostpP-0005rc-IQ; Wed, 09 Nov 2022 17:45:51 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <89-rZ-T-EfdANIf7D2MDU2c9GRrDND1-wshyPcAx6X4dE6AJnN-N9N2r_93XsmOnKcrGShflEKyle5bRxtumYcHvcgwwF_3DZvZUPOSLr70=@protonmail.com> <87sfj4551q.fsf@nckx> Date: Wed, 09 Nov 2022 23:45:49 +0100 In-Reply-To: (phodina@protonmail.com's message of "Mon, 31 Oct 2022 19:18:29 +0000") Message-ID: <87v8nnn3vm.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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668034027; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=tqq1OpogNA8GEBrhJRX3rY/LwTDemNM0NcOPfaz6eQQ=; b=j/kR+IkzIetjGjSUZa/LDSI4Rh/cxwWHf2Kbga4oepADTmoo+I7Ws34mekIpZsC2agfgee ADXCSr6H2HkSsM3uE3CPTGNOrxWscc5tucPDy3iRtlY3wwzRbHtZgPNQvqqi6QVhlM+MnB 69F9ZOxhyzs6x8i41BZsosv7GWHW9meD+0k0QQxW023VOD1M87MJNUB/LjC/ldnGVWLCkX 8oY9zyiWqv2TMbJVpeRIjOHbQu9iz4gziUi7gHEoKL2YpsTveNMnh7KCqk/F1vKaKEJema WqQ07mNQ/JnYdYABwmmEQTm62f28fP9cOIDkGH754pJ5itzg1KxZ3InhcqNToA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668034027; a=rsa-sha256; cv=none; b=iO0e/YWDlv+QNwcmkAHNivbzCW/++i9WufIbTi5jp+uGTzuk89vl0ZQDAeeTTK6pJYY1zW /EDsMDeZfuso9hDpcAmYI3z6D1ekZ8WMXGuZR/3jH8cc6PLkeSXmsccttiYSXX8yZ/Bhol CkzYCXqrUn9pfibbqQqm93/qVsf0Lsc0SAytL6RmMWDKFWtUwn2FwSlFqNv7boN8/XXMf7 FAGGmlfLkZlDuJ9rjk8xu7weOGqNOb5PvTGwsGU5R/LZrZ0gPHWW9ASaM2UvwVG1uJk8o8 XhIqVVZ7uvxK9JI+cVT7mYRY2BwSaeWCOZDtH2T/2Fciy5FPQdmfYGRKKvo3LA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=hpPg96qL; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.82 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=hpPg96qL; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 75951F2B6 X-Spam-Score: -3.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZYsrYpjIsg9Q Hi, phodina skribis: > I've updated the patch so there is no abbreviation. I asked on Nix matrix= channel and was told just for derivations. But I'm not expert so take it w= ith grain of salt. > > Ludo', > you have a lot insight into the build infrastructure and you also took th= e concepts from Nix. The manual documents it in the context of guix-daemon (info "(guix) Build Environment Setup"): You can influence the directory where the daemon stores build trees via the =E2=80=98TMPDIR=E2=80=99 environment variable. However, the buil= d tree within the chroot is always called =E2=80=98/tmp/guix-build-NAME.drv-0=E2=80=99,= where NAME is the derivation name=E2=80=94e.g., =E2=80=98coreutils-8.24=E2=80=99. This= way, the value of =E2=80=98TMPDIR=E2=80=99 does not leak inside build environments, which a= voids discrepancies in cases where build processes capture the name of their build tree. > I guess the machines behind 'https://ci.guix.gnu.org' have enough resourc= es. Or is there some script that handles large derivations?=20 On Guix System, /tmp is not on tmpfs by default (maybe something to change?); that=E2=80=99s also the case on build machines. > From d71d48d0fd5d4803abbb50900e0d9aa3c374e7e1 Mon Sep 17 00:00:00 2001 > From: Petr Hodina > Date: Mon, 31 Oct 2022 16:12:38 +0100 > Subject: [PATCH v2] services: nix: Add more configuration fields. > > * gnu/services/nix.scm ()[build-directory]: New field. > (nix-service-etc, nix-shepherd-service): Take them into account. > * doc/guix.texi (Nix): Update it. [...] > +@item @code{build-directory} (default: @code{"/tmp"}) > +Specifies build directory. Rather something like: =E2=80=9CThe directory where build directory are sto= red during builds.=E2=80=9D > This is useful to change if there is not enough RAM > +on the machine (e.g. embedded targets) or if building big packages (e.g. > +chromium). =E2=80=9CThis is useful to change if, for example, the default location doe= s not have enough space to hold build trees for big packages.=E2=80=9D (There=E2=80=99s no =E2=80=98chromium=E2=80=99 package in Guix.) Then, instead of a long explanation, I=E2=80=99d just write something like: This is similar to setting the @env{TMPDIR} environment variable for @command{guix-daemon}. @ref{Build Environment Setup, @env{TMPDIR}}, for more info. Could you send an updated patch? Thanks, Ludo=E2=80=99.