From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MPu4KkJY5GFqIwEAgWs5BA (envelope-from ) for ; Sun, 16 Jan 2022 18:39:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EINsI0JY5GEDMAEAG6o9tA (envelope-from ) for ; Sun, 16 Jan 2022 18:39:14 +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 3D43D34C69 for ; Sun, 16 Jan 2022 18:39:14 +0100 (CET) Received: from localhost ([::1]:51882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n99Un-0007L0-8c for larch@yhetil.org; Sun, 16 Jan 2022 12:39:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n99Ub-0007Kr-71 for guix-devel@gnu.org; Sun, 16 Jan 2022 12:39:01 -0500 Received: from sender4-op-o14.zoho.com ([136.143.188.14]:17414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n99UZ-0007Bw-0y for guix-devel@gnu.org; Sun, 16 Jan 2022 12:39:00 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1642354735; cv=none; d=zohomail.com; s=zohoarc; b=MFhQmr4j6oCkfpvdsmw29rJylMWkdoBZOCH+lRzZD0DRegWE3IrouFffiK2IIj5FjdjAdpfdjT9NTYs5ZHGxNqK+dRAK5yNu2gy83GpfCdDu3tEwJT4csQOr3LwIdtyq040xAGFuTVTGwyHHvSfMLuC7OB3DteWLDBFZcBpdkr0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1642354735; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=5/0vLUqZJEzW3sie/MbjtnVSpTCxCVVqYj62r6Ujbkw=; b=OKa7OuUpyw0F56q4DMeiwsTSpXu0Y3VR8cn4Ty+oFAJ3CB5+hCt/SKHinbR0RDXg/NJ0otwZLJ/yh/G04XUXINbeK5xaWGicEIhkodI5RmFOdOF1ppEm/H6Uq1NSmIQSFPqvVzRRjrEhp6t8Edzr9+E6W2Ce/n7REsHKT1gG3uA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=excalamus.com; spf=pass smtp.mailfrom=matt@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1642354735; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:From:To:Cc:Message-Id:In-Reply-To:References:Subject:MIME-Version:Content-Type; bh=5/0vLUqZJEzW3sie/MbjtnVSpTCxCVVqYj62r6Ujbkw=; b=VSJFMcmYOaAggB2Upmb9iZgwpCWGn+y7TqETe1CF7dVpHe5FQ+4iobjTtSSKP1d/ qjtFkVuDoB0yk/rrjNlS69WxL8FqWZMa708t8pqcx2j9pYsN0qsAivkpe3G86WlLHM3 I4rx8V4ZrsY2j2zIGWOCygvx2byv74ZF9S72Mep4= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1642354732906717.9198429455377; Sun, 16 Jan 2022 09:38:52 -0800 (PST) Date: Sun, 16 Jan 2022 12:38:52 -0500 From: Matt To: "Leo Famulari" Message-Id: <17e63f86f33.d5900dd61032836.2315489730847975183@excalamus.com> In-Reply-To: References: <17e60e604fa.d4b620b31007437.5972832998992327822@excalamus.com> Subject: Re: Document /homeless-shelter? MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3269541_1467901283.1642354732851" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Zoho-Virus-Status: 1 Received-SPF: pass client-ip=136.143.188.14; envelope-from=matt@excalamus.com; helo=sender4-op-o14.zoho.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642354754; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=5/0vLUqZJEzW3sie/MbjtnVSpTCxCVVqYj62r6Ujbkw=; b=p5jQ7rakE4mcUSFNcJZsJp8ivHHfSdYSt93g+r2NQkhuL7Kzddoe7986Yw43DRUjrQoZN3 Qa20+9BEU87Tjso5GuisunfYsY89epbPQMsJ+8DISiMiQSn2h5S6GUAMCEevSt6e9AwuMP Alr6YOqOL6bHFSE1EZMI/TcLiQD4Px/cLAoosYOJbXYYA6rN9DKs8e+LOy+1rvkEpemfr7 8M9HBJO8gkp4ZB5fIfjaSkrTWN1E5aYU5B+JKckEwYQxbV3+paz9k5oLdYZtxaNEMWocQm HGKczG83sj6VhdkbcgPMU09B1aaX5TcAjFRSqvngF2hzDpr4OwfobnxawZDJmA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1642354754; a=rsa-sha256; cv=fail; b=mAayaLbPVRVHRF9rfsnDZjVQ1vN5JJCb3SHFuIJjYBfJAecb07I8jvKBS8WVjQvxO5C4Zv pZ0CuX0tcE9GjQC+wOpZWVhx1eELt2qdBL3r0k/Zl2aSDNjmjUJM1oAeHHlXx3rZmZqk94 yu4s2vyKqYEDIfprBpk14ZtHXFJKZbm1L0Jph4vG43L22a4QfUy6v6e547IwMnvlfpO/nC N7yBCjh4uzBbKh3WFDO1Vb6EkzhaBcXaeYoYADnAQMv/bRRrZNE+zN2L7AoyWpB7FouqO3 v6+7dxXk8zqM85n/5m/av6blfX+fwTibdP+xFS07RQ0I43mfeKgCJtOjOtzlrw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=excalamus.com header.s=zmail header.b=VSJFMcmY; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=excalamus.com header.s=zmail header.b=VSJFMcmY; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3D43D34C69 X-Spam-Score: -0.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: AfvC/Jj/P41b ------=_Part_3269541_1467901283.1642354732851 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit ---- On Sun, 16 Jan 2022 00:20:49 -0500 Leo Famulari wrote ---- > It could be documented briefly in the manual section Build Environment > Setup. How does this look? >From 34fcd075efad1577aa139012c5d2fccf44e10058 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 16 Jan 2022 12:30:37 -0500 Subject: [PATCH] Document /homeless-shelter --- doc/guix.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 42691570ff..fd48a0dcd2 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -1193,6 +1193,19 @@ environment variables for HTTP and HTTPS downloads it performs, be it for fixed-output derivations (@pxref{Derivations}) or for substitutes (@pxref{Substitutes}). +The @env{HOME} environment variable is set to @file{/homeless-shelter} +during the build process. This ensures builds are determistic and +highlights all uses of @env{HOME}. Packages should not depend on the +pathname of a home directory. Instead, modify the build phase to set +@env{HOME} to @file{/tmp}: + +@lisp +(modify-phases %standard-phases + (add-before 'check 'fix-home-directory + (lambda _ + (setenv "HOME" "/tmp")))) +@end lisp + If you are installing Guix as an unprivileged user, it is still possible to run @command{guix-daemon} provided you pass @option{--disable-chroot}. However, build processes will not be isolated from one another, and not -- 2.34.0 ------=_Part_3269541_1467901283.1642354732851 Content-Type: application/octet-stream; name=0001-Document-homeless-shelter.patch Content-Transfer-Encoding: 7bit X-ZM_AttachId: 138616475328540020 Content-Disposition: attachment; filename=0001-Document-homeless-shelter.patch >From 34fcd075efad1577aa139012c5d2fccf44e10058 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 16 Jan 2022 12:30:37 -0500 Subject: [PATCH] Document /homeless-shelter --- doc/guix.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 42691570ff..fd48a0dcd2 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -1193,6 +1193,19 @@ environment variables for HTTP and HTTPS downloads it performs, be it for fixed-output derivations (@pxref{Derivations}) or for substitutes (@pxref{Substitutes}). +The @env{HOME} environment variable is set to @file{/homeless-shelter} +during the build process. This ensures builds are determistic and +highlights all uses of @env{HOME}. Packages should not depend on the +pathname of a home directory. Instead, modify the build phase to set +@env{HOME} to @file{/tmp}: + +@lisp +(modify-phases %standard-phases + (add-before 'check 'fix-home-directory + (lambda _ + (setenv "HOME" "/tmp")))) +@end lisp + If you are installing Guix as an unprivileged user, it is still possible to run @command{guix-daemon} provided you pass @option{--disable-chroot}. However, build processes will not be isolated from one another, and not -- 2.34.0 ------=_Part_3269541_1467901283.1642354732851--