From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uPFJJTlq5GGCAQAAgWs5BA (envelope-from ) for ; Sun, 16 Jan 2022 19:55:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KOX8HTlq5GEOWQEAG6o9tA (envelope-from ) for ; Sun, 16 Jan 2022 19:55:53 +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 05F9D1E29F for ; Sun, 16 Jan 2022 19:55:53 +0100 (CET) Received: from localhost ([::1]:60202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9Agy-0002ke-5x for larch@yhetil.org; Sun, 16 Jan 2022 13:55:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9AgS-0002kP-9q for guix-devel@gnu.org; Sun, 16 Jan 2022 13:55:20 -0500 Received: from sender4-op-o14.zoho.com ([136.143.188.14]:17451) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9AgQ-0005iB-68 for guix-devel@gnu.org; Sun, 16 Jan 2022 13:55:19 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1642359313; cv=none; d=zohomail.com; s=zohoarc; b=d6WzC5fjiTDkhmE1XeIe/Xh8L+fOVWMoxIlCMlX01ApHzm+CIhyeoX8REbFk4RifcYQDzLdtT5OitK2sD243rB+L2srTxubTXTAupxOUbfMAzmDUkaL1YqMkCF2kAyI1HjPpKFDAIKJNp2TwkA1nfe2r20Pw6yrnBGriBHZTiGQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1642359313; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=/XMvazrxMgHO9i0cnaCy1KL8vDW4VJNO5H/GHkR2qLA=; b=LWnHJjK2aESlVfvEc4m/ubohPAdWqrcP0DNaKa4a2d/8okl9PKVJSzxzw8fsjJbasR2xIlyJlqbqr7It3CYaUlJW2+KfKnQuoXA4EdD2B6khGnTlVpnN7pA9RjhX0M4Ky8zrJ5DxJuGRK/xz+1jQlQUPYR1LfU0WHpQ9qau463k= 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=1642359313; 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:Content-Transfer-Encoding; bh=/XMvazrxMgHO9i0cnaCy1KL8vDW4VJNO5H/GHkR2qLA=; b=UFJ/1pSzYX05L0U3Fn2FmfbFohfMtsR/zta02jQX9Koz92UVt7jmwOrb6E/zz3ef HrVNL2UID1VjTtfWwxMI0+zqyGZcOnHrMOzxJgLL6B3yzr+BpNeiklpzGzmGSl7+ZtZ eFcTZuEGt3E67xbLAWykmCKSl9zi9La315vPpTrk= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1642359312548681.8856117463903; Sun, 16 Jan 2022 10:55:12 -0800 (PST) Date: Sun, 16 Jan 2022 13:55:12 -0500 From: Matt To: "Leo Famulari" Message-ID: <17e643e508a.e552e2621035362.4950233452711916332@excalamus.com> In-Reply-To: References: <17e60e604fa.d4b620b31007437.5972832998992327822@excalamus.com> <17e63f86f33.d5900dd61032836.2315489730847975183@excalamus.com> Subject: Re: Document /homeless-shelter? MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail 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=1642359353; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/XMvazrxMgHO9i0cnaCy1KL8vDW4VJNO5H/GHkR2qLA=; b=euNy0LCQ6xT+LwzwGkF2N1p3VLBnePxH2r2brtYlVUWS6NB8DT5R8Ubcn8HgozvwFkURRI 1vyea0uZ/J6w7pDzh/wxrrfDu7LiflpkAwq8yvm44SpNPc+QD6vA6ptykXQwQH028Yq/UG JHUrefELKW2K58WsghU7n50b7Kmhuq6cmxENN3MWexHXi2Kglt8NSBMt/EEB4G4o5MbSts /VzgwU2D2BDAA/kfhbmOQWFpV/fJd5Sg6aiMdFzqVewTXiuSpTCbOJEa30yfN2OdcNxkYm OrlvrqPwwfEkzKjvDe4rHTTE0o9391U02wjXtgNBulhnEVhJlScGH7gfE4aMOg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1642359353; a=rsa-sha256; cv=fail; b=tXuVJ5gmRregky0lguUatu4IVSGrdZvHeStDbODDTBRDhNOhVz/tWpMo6vm+Wxvs4bGGBI mXZOQ8buXv6WATF5z1NVO5VEEcJgKGJwl00zorCWzPMQ7F7jWnWJmMEcMmFA+89AmuI3qE P71UWBj+zQ8RyGywVC+Kb/AySe3c7ffM9URXt1Krod9Nw8Sw8lqXYUmiHxcsdLz/YDJNm9 tZ1qWeba7MXrgm/EMW/3FkjP9uF7DnJPyT3JTstAUmVutz/1bH5wMALmuwZzqViW6H2XyL ArPPDREVv1ZeROw+r1+ybCR3SVGqYhutJiH0DVwl7HN+9FSaMOJhivRMl9cVlg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=excalamus.com header.s=zmail header.b="UFJ/1pSz"; 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.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=excalamus.com header.s=zmail header.b="UFJ/1pSz"; 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: 05F9D1E29F X-Spam-Score: -0.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: A1w11CnKnCgX ---- On Sun, 16 Jan 2022 13:25:57 -0500 Leo Famulari wrote ---- > On Sun, Jan 16, 2022 at 12:38:52PM -0500, Matt wrote: > > Subject: [PATCH] Document /homeless-shelter > > I pushed a simpler addition to the manual: > > https://git.savannah.gnu.org/cgit/guix.git/tree/doc/guix.texi#n1181 That looks great. > > +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 > > This text is basically correct but we have to balance verbosity with > readability. > > The important thing was to document /homeless-shelter, so that packagers > understand it comes from Guix, and to explain its rationale. > > It's not 100% true that setting HOME=homeless-shelter ensures that > builds are deterministic and highlights all uses of $HOME, although it > does help with those goals. > > I don't think we want to document the use of /tmp, or recommend it as an > authoritative workaround. > > Rather, it's a common solution, but packagers must seek to understand > how the package build scripts are trying to use $HOME and make a > judgement. > > Additionally, I don't think that Build Environment Setup is the right > place to document workarounds. This all looks sound to me. Thanks for taking the time to work with me on this.