From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EDjINeSvbmTUHAEASxT56A (envelope-from ) for ; Thu, 25 May 2023 02:46:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id HRWqNeSvbmSZZgAA9RJhRA (envelope-from ) for ; Thu, 25 May 2023 02:46:28 +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 9D4424F89 for ; Thu, 25 May 2023 02:46:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1z6Z-00055I-Cp; Wed, 24 May 2023 20:45:23 -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 1q1z6W-000550-L9 for guix-devel@gnu.org; Wed, 24 May 2023 20:45:20 -0400 Received: from mail-qv1-xf2b.google.com ([2607:f8b0:4864:20::f2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1z6S-0006Va-Gh; Wed, 24 May 2023 20:45:19 -0400 Received: by mail-qv1-xf2b.google.com with SMTP id 6a1803df08f44-62382464ca3so1887446d6.1; Wed, 24 May 2023 17:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684975508; x=1687567508; h=content-transfer-encoding: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=3O6MEuUEMcFbFkyg+EUjxZme2ukaTF2NTn0qm1JS88E=; b=NW5N6WYWtpwwWuqdzeSz9eH/QKrClf7FBJ+2wE0irqLhuNOBPo07FLY0NWMML3oWM2 L/Uz/tXDdBL7Z9jrng/V9G6HA42Dl5hkGI5aqoGwNtMS3QVtyktZ6njseCDI3FpteSn/ CKMLhwjCJd8kciZQaw6G01EDx/tqtFIeMIJ5vcJ/gI+u/0UTbmmcScjiIJIFX3KY1XU7 pM8NIH+I6R7/D/vhS/YPrhoemloRNQaM1P2HDOO4bhtC6Ir3PEFBuSzoHJs9ooZviODe TIlDPrixmbDagaoutGgT2GpaT8oTiCnFgz0ZZxLNCLNDYYurrwvOfCYRv/jGe/7ZF6Nd H3hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684975508; x=1687567508; h=content-transfer-encoding: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=3O6MEuUEMcFbFkyg+EUjxZme2ukaTF2NTn0qm1JS88E=; b=h2S/Jcd8B/A/vjAT1nR2mPV/Ne/K3jMJ1jnRJbumhpOr89yyeA4Fd6rMcPf1uB10p/ b0KyrZHAub0kcS0qOoMMOF+NkEX0qrolVpywpgUrw/ExsjPZEcOzdhbaEZF1zoANkNFQ dUCNMy1kffInw7XLGp/hIgOq6vhAtdb90hX1L3owmoQ5tZF7ujQPVtgjuZUmYfIb5eBu wCdD+Xs1dWCoS6tEnObPTyYFsZRGKm8vb3iZrNxvkZNuWJZsQ2pres71JDJTWBzvPRtq USA2aX/UAMR3Ow9gbLYYaiuyQJEp1NsXLt/OPG7bRGbMO1qS0ia6Itoey5qKZNsZVdXK Kv6A== X-Gm-Message-State: AC+VfDwLP4OPqMtAGJ5Rr9TURa0Uviww7qM0ZVui4twJVPA8SdW2/kg6 HEcVRcCt4lWg8EwUtlU36Yfz0hKEPzkzyQ== X-Google-Smtp-Source: ACHHUZ54eGcC4itQxexXZRSLCg3OmMexrzwyKm6UHCqFeOtGpXgtzCvMw/n39Dde9NA/vvZ0tt+tWg== X-Received: by 2002:a05:6214:494:b0:625:af4b:4162 with SMTP id pt20-20020a056214049400b00625af4b4162mr3823242qvb.14.1684975508550; Wed, 24 May 2023 17:45:08 -0700 (PDT) Received: from hurd (dsl-10-133-118.b2b2c.ca. [72.10.133.118]) by smtp.gmail.com with ESMTPSA id s18-20020ad44b32000000b005f9a0018360sm6543qvw.11.2023.05.24.17.45.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 17:45:08 -0700 (PDT) From: Maxim Cournoyer To: Philip McGrath Cc: guix-devel@gnu.org, ludo@gnu.org Subject: Re: tracking /etc/profile.d/*guix.sh in downstream distributions References: <87sfbsht02.fsf@wireframe> <842534819.0ifERbkFSE@bastet> Date: Wed, 24 May 2023 20:45:07 -0400 In-Reply-To: <842534819.0ifERbkFSE@bastet> (Philip McGrath's message of "Fri, 19 May 2023 23:37:06 -0400") Message-ID: <875y8hgrxo.fsf@gmail.com> 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 Received-SPF: pass client-ip=2607:f8b0:4864:20::f2b; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf2b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684975588; a=rsa-sha256; cv=none; b=j/EMtyZls0MElZ+vVIK2GJ2lGYl2AowC9ffAGGVUhzC/Vk3PBvkX9AYfSA+slJM4Ai/YO+ WoaeLXIag/zInqjv0R6SlzBp8RK61KwxL/SDMJiyM0SdxcSNrppVif477ysUinL0ddfZ7T BFn+4uKInT5L52iMxQMxV0E5478CSnTTLoLONaGvDgSpWLJAf50MtAYjMhDtnu807WLpZY 3V7rQ5kclvmBRAV2uO6CR5tdpqMxiBXZeUTaZf0ykmFTbEY8+ZP67r+lVoclTAS1DwpiUO rquGKV80gEBYEuNcNDx81/04fEbH0fBeR5zkY78p1H5rTn2rXpe4exLGnSyEKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=NW5N6WYW; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684975588; 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=3O6MEuUEMcFbFkyg+EUjxZme2ukaTF2NTn0qm1JS88E=; b=OK9vFqyYZeBQgUdMFpgyjxCwlHkpSChEL7IPLvS6ZNFUy5nym6L0G7fZVk0nSuzwylkMVQ ZjyJNnHkfBrTjHXbyFtGUh+i7whYgfbJ3v18a3YzWn2jfK0mcPZcHeff/HC0ERTCEOH2F0 aIj9nPUa0siQAOpVnC0Lzmf9D4Eu4IfCzA9UGmAGuaQPory94XAJ2ACaRgCYzzDgbZRUhl tECAZQujOSi2PPLnUxHtubVAHkdAjfn2UGTg3J19MtjFgybVzlNGgsS5tCrALtZmH0M2BE frQr/Ur54TiA006sMpYdRUmVrAlK/cLWJgmvLvdwLHO2iRMYYvxrqYKdJ/hGfA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=NW5N6WYW; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.83 X-Spam-Score: -4.83 X-Migadu-Queue-Id: 9D4424F89 X-TUID: W88hUm8I3R5C Hi, Philip McGrath writes: > On Friday, May 19, 2023 6:10:53 PM EDT Vagrant Cascadian wrote: >> Philip McGrath recently pointed out that the /etc/profile.d/guix.sh >> snippet had not been updating in the Guix packaging for Debian: >>=20 >> https://bugs.debian.org/1036304 >>=20 >> (and as bonus complication, was also renamed to zzz-guix.sh) >>=20 >> The reason I never noticed before is because it is actually a manual >> process, with this script embedded in the sys_create_init_profile() >> function of etc/guix-install.sh ... and thus easy to miss when updating >> packaging. >>=20 >> What would be the impact of separating the /etc/profile.d/zzz-guix.sh >> into a separate file upstream? Would guix-install.sh need to be adjusted >> to guix-install.sh.in so as to embed the contents of this file? >>=20 > > I think this would also make it easier for Guix contributors to edit the = file.=20 > When I sent a patch for it, Ludo=E2=80=99 and I both got to learn about t= he obscure=20 > feature of Bash here documents it uses: https://issues.guix.gnu.org/56050= #11 > Ludo=E2=80=99s informal poll results suggest that others would be confuse= d, too: > https://toot.aquilenet.fr/@civodul/108590952454715930 > >> Alternately, maybe guix-install.sh could be updated to optionally output >> or generate the zzz-guix.sh file either by passing commandline arguments >> or some other conditional mechanism? One problem I see with extracting that from the script (and relying on the build system to stitch the final script together), is that we then can't simply link to the repo as we currently do for https://guix.gnu.org/install.sh or https://guix-install.sh (they simply point to https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh). --=20 Thanks, Maxim