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 ms0.migadu.com with LMTPS id UGOLKnEEM2JySAEAgWs5BA (envelope-from ) for ; Thu, 17 Mar 2022 10:50:41 +0100 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 kO/zJ3EEM2LVKgAA9RJhRA (envelope-from ) for ; Thu, 17 Mar 2022 10:50:41 +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 5631D32D7 for ; Thu, 17 Mar 2022 10:50:41 +0100 (CET) Received: from localhost ([::1]:37260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUmJS-0006cn-O6 for larch@yhetil.org; Thu, 17 Mar 2022 05:20:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUmJ7-0006ce-8m for guix-devel@gnu.org; Thu, 17 Mar 2022 05:20:33 -0400 Received: from [2a00:1450:4864:20::32a] (port=38635 helo=mail-wm1-x32a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUmJ5-0005hH-Kb; Thu, 17 Mar 2022 05:20:32 -0400 Received: by mail-wm1-x32a.google.com with SMTP id m42-20020a05600c3b2a00b00382ab337e14so4573283wms.3; Thu, 17 Mar 2022 02:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-transfer-encoding; bh=uagKYOFj9W34NymyEzbxKusH8SjSQVeCijLEwacacRo=; b=bAnDnIDckNUbyq86KeQcD02IvPSU7ZYcwwHJV3F5cmN9bjz0iNKMvblDD6LqvGT4nQ QQi9bycgPnHNiWgwcDcXzZuusBoYKrV29z8LylzvFpsfbON198+2lzAKObeVPydAB+6F pTSw+aSne+WJ4Zw5ABxCDGqdm0TTDRu/xLuO3Ac48a9jDdoH8lUw9jXedmgzG28WDg1w 9+g1A+lWaSrxRr8vKpNGexdwn2oJIh8u/Bap+EJUKd42lIKtbWTLL8NJZgGZTPmeKwcT rxvS20BcvtCh8TXYqFHZuNwiws3ttMKrmZIWwHsfoPaBn3QHPWMw1uG9+d9XCK3vqS1u 9/sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-transfer-encoding; bh=uagKYOFj9W34NymyEzbxKusH8SjSQVeCijLEwacacRo=; b=26mNN1vPhijk5gM4HPFuuJ0Udz+XYg7tL/yC3BIdMv9AURgbCpDEu4FYjQV42PaV+x Cb4LQCm8hh6KS1agNmYsrHNMnV6IhRSKOzLF1aYGkLyaOczRbHABP9359X9Ju2SOjA+p 8srNaNjurMILIxP8dt8RRNqpgY8LmFqyu/P8S+gh8Pdru93ZhNrwrpBxzGBJ75jli4eX legX+RshVMwNUiMQ+WDZTp4/yHXaY8QweU4rvIAyDaFfsEEZDq9MvZaBRAbjgfo9UfjY UEXdp2L/qXYwAUDn1Nmt2p5+5h2lZukbYl4Tm/ivusfHJRT9VBg/9THC7AmCFY5f4xHd OsXw== X-Gm-Message-State: AOAM530eXhZ00AfK2NRRHKr6dImGHyhojaEHueRGAozfjg5WDtClToeh hA0gkldXVs/CZ5EENbm3jSA= X-Google-Smtp-Source: ABdhPJzfbQtyaeQTg1cNGE6+vTTnphL2sqJ3Fu+lzIJf4uIhnHpzI1aPXge6FRqAMDit0LHrU19BYQ== X-Received: by 2002:a05:600c:1c13:b0:389:a475:9ed5 with SMTP id j19-20020a05600c1c1300b00389a4759ed5mr2985433wms.86.1647508828490; Thu, 17 Mar 2022 02:20:28 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id o11-20020adfe80b000000b00203dda2388dsm3589916wrm.30.2022.03.17.02.20.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 02:20:28 -0700 (PDT) From: zimoun To: Guix Devel Subject: Re: Building a software toolchain that works In-Reply-To: <87o827ocex.fsf@gnu.org> Date: Thu, 17 Mar 2022 10:20:23 +0100 Message-ID: <86ilsd3pgo.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647510641; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uagKYOFj9W34NymyEzbxKusH8SjSQVeCijLEwacacRo=; b=Nb98Y43b7AQpqC3a6oip5epKSu9c/LujakdzFV9FVtnLsqPo0EOTfOYGYLgsHKQTe5ii9G o+tTXs+ca7xM1Ga/n/JSK7ydRhrra0qtjhVztNndrZ11zPgplXUW6bRjrWCutEypvAHQCW 9FU7oxeJkfpuTczWfbwnl3/LIgknDW/QdNbJZI5MHTV+40YBC7fccAaS/qCTiatEQUKWoB PkbBe0orteIFNNeNKOfV0GDcV9uIoyJOByzkI3+DWLYEfyBbGhaeOar+O0W+tIytLzlvGg 7nfr4x1VEKgODLwz/kZ0YbTaLSAg5s14KYWl+7ygxDkcTO5GVbcfK8krYLqV3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647510641; a=rsa-sha256; cv=none; b=idzyiVa7HaxQLzE1JINr+mZL7w7vVt4sXFj8DNguFPAYVzo68lhuQWeAHZS3Pk3dskl27m vW994i6fqyJMeoyGzRdUopj9GP6eLxetm0Pe77bwHjFk1YyH8sg787kpVEh72msnSRc/x+ c5PLw0287djtk28hZJYmGSQxQ//mrHM5y4HRyJgAKSN4aCIrrTPhhVaRikxtB3sK5UyV+g gaA7aB2w7Py4TQShvwRoOxcKTFmOC4hE9NbsYluZT8f915sQ77o0o34F8emLbdacdx2Ids wbIKAkQ7hq3MPBtArOTPvmW2CB201MT04YnuOTLzvYIo/8m6KZ77O+m76ZNT+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bAnDnIDc; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 6.04 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bAnDnIDc; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 5631D32D7 X-Spam-Score: 6.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: AX5Jg9rpaMqL Hi, On Tue, 15 Mar 2022 at 09:19:50 +0100, Ludovic Court=C3=A8s = wrote: > > One could develop a `guix contribute ` subcommand or standalone > > script that would implement the following workflow: > > > > 1. Obtain the source and unpack it into a writable working directory, > > skipping downstream patches and snippets. > > 2. Drop the user into a shell with the build and test inputs present. > > Perhaps with the scripts $PWD/.guix/test and $PWD/.guix/build added > > to run the build and test actions as needed. > > 3. After the user has made changes, and maybe signalled completion > > somehow, run the tests and build all outputs. > > 4. Once the user exits, output a diff that's suitable for git send-emai= l. > > I like that idea, that=E2=80=99d be a great tool to have! And indeed, we= have > all the building blocks. While I agree the idea looks nice, the point #1 does not appear to me straightforward. a) The point #1 =C2=ABskipping downstream patches and snippets=C2=BB means = that the user would access to upstream source as is. Therefore, I would like to point the endless discussion about =E2=80=9Cguix build --source=E2=80=9D= . Because allowing to obtain the source skipping downstream patches and snippets would be in contradiction with the rationale behind =E2=80=9Cguix build -S= =E2=80=9D, IIUC. Personally, I am in favor to have an option to be able to access to the true upstream source =E2=80=93 I have an half-baked script for that :-) =E2= =80=93 and not the Guix-modified one =E2=80=93 always for good reasons hardly justifie= d. Reading the lengthy backlog on this very topic, the main argument against this option (implied by #1) is the poor written FSDG; leading to various interpretations of the =E2=80=99spirit=E2=80=99. All arguments are= valid. :-) My point is, yes we have all the building blocks but, from my understanding, we disagree about the way =E2=80=93 how the end-user would a= ccess to them. b) Aside this potentially controversial point about =C2=ABskipping downstre= am patches and snippets=C2=BB, a nice workflow could be: i. Fetch the source that Guix builds and put it in a writable directory. =20=20 ii. Extract the current Guix recipe and put it in guix.scm pointing to this working directory. iii. =E2=80=9Cguix build -f guix.scm=E2=80=9C or jump to a development en= vironment cooked by =E2=80=98guix shell=E2=80=99 using this guix.scm Well, iii) is already done =E2=80=93 modulo corner cases, i) is almost read= y =E2=80=93 missing glue for moving from the store to a writable directory; maybe a addition to =E2=80=98guix build=E2=80=99 The missing, but not that hard I guess, is ii); maybe an addition to =E2=80=98guix edit=E2=80=99 as =E2=80=98guix edit --extract=E2=80=99. The workflow would read: guix build --writable-source=3D/tmp/foo foo cd /tmp/foo guix edit --extract > guix.scm guix shell -Df guix.scm editor git:send-email editor bar baz git send-email Personally, I would prefer to do it re-using existing subcommands than only one doing all in one go. Cheers, simon