From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ECYWB1au6WBUWAEAgWs5BA (envelope-from ) for ; Sat, 10 Jul 2021 16:27:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qOMIAlau6WBKXAAAbx9fmQ (envelope-from ) for ; Sat, 10 Jul 2021 14:27:34 +0000 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 BB32C193C5 for ; Sat, 10 Jul 2021 16:27:33 +0200 (CEST) Received: from localhost ([::1]:57826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2Dx6-0000Si-TU for larch@yhetil.org; Sat, 10 Jul 2021 10:27:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Dwx-0000SY-SO for guix-devel@gnu.org; Sat, 10 Jul 2021 10:27:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34110) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2Dww-00030J-UV; Sat, 10 Jul 2021 10:27:22 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42896 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Dww-0000Gs-N4; Sat, 10 Jul 2021 10:27:22 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Nathan Benedetto =?utf-8?Q?Proen=C3=A7a?= Subject: Re: Exploiting hashes for Scheme refactoring References: <87lf6komnz.fsf@archlinux.i-did-not-set--mail-host-address--so-tickle-me> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 Messidor an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 10 Jul 2021 16:27:21 +0200 In-Reply-To: <87lf6komnz.fsf@archlinux.i-did-not-set--mail-host-address--so-tickle-me> ("Nathan Benedetto =?utf-8?Q?Proen=C3=A7a=22's?= message of "Mon, 05 Jul 2021 11:33:36 -0300") Message-ID: <87eec6ckhi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 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@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625927253; 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; bh=NYsnLJRi0CS+WWgoD1k0WMMH89epwKrQl9Ne1jLMBx4=; b=fIOc2X8iLihNl4pDkWwCC8p9Kyf4J/enqZ/QbMiZnk7YurEqLJ3XRvC50Oj/yv7yZbYX8S zmBoIckbI5QfPJbfFm0yPEVRqDwptpg97ASgCVP18PKQ3XC4OGKH6t6hmdn1jDRjuawBdf fUEnfSPs32h4jMwvR08oMS2N6pFR+IQYMeNd0r0zS7Cllf5KT0CWxwom+3ewBKtHPNEMCZ RGaF0tb+w7EWaKql1gKyBx9lMKShTL1yI9vOH8IWX6eokvVqmjQKO5xR5uquvmk4JWFLzr vGo3jczdwfTjPHhZ4FqbztAk2JgyZnJrVUYZWDdybYIt8nEc7He5DVltOt8XiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625927253; a=rsa-sha256; cv=none; b=PlwibdYzx2GdOtMLOy6iyHeACnj8f4+/1tf9INivFBzCdnRE/hFIbsgbCYF+OM/yfQXU9u 9XKj+aKjJAcqugacE/t551Rs5On6PKP8xpCQbdaKjFY381JiRw25uO7+uw0efjTHdomq1f owJxsGzVegX5KRHi2oNDU7YugTWppjjgrzxI+WcZ2mMacwJrndrtmBrq/886/FDYXRqZ5t QQbNGvw0mLlKtdD2xsAvkmF1vx+DuofaHvK28WNRGl2JvsCYE9D8SmmS1GMRY5pbm4vV1Q mxuEvbNjI421zsS91m9WYVbcGFWGQV1SoUpr7dwqLDxTFr3u1agaTEgsOpwn/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.90 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: BB32C193C5 X-Spam-Score: -2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: 27RHown7Ve3M Hi, Nathan Benedetto Proen=C3=A7a skribis: > Is it a good idea to exploit Guix hashing infrastructure to ensure that > a Scheme refactoring did not change the packages produced? > Has some developer already done that? > Are there another tools and techniques I should be aware of? > > As I said in the other email I sent to the mailing list, I am interested > in upgrading the texlive package in tex.scm. > Depending on what you teach me there, a solution could involve changing > more than 100+ places where the origin of packages is specified. > > Without proper tooling, this can demand a whole lot of developer time > --- be it my time, or other contributors time. > Would this imply more than 100+ patches submitted and reviewed, and > perhaps in an alternative branch which core developers would have to > maintain? > > Then I noticed I could use the hashes for the packages produced as a > test of whether my refactor was satisfactory or not. I=E2=80=99m not sure I fully understand the use case. If you=E2=80=99re ch= anging the way a package is produced, but you know that it should be a =E2=80=9Csilent change=E2=80=9D (i.e., not involving a rebuild of that package), you can ch= eck that the derivation for the package remains unchanged by running: ./pre-inst-env guix build texlive --no-grafts -d before and after the change. If you=E2=80=99re changing origins, for example from one URL to another, the .drv will be different but the package won=E2=80=99t need to be rebuilt. HTH! Ludo=E2=80=99.