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 ms9.migadu.com with LMTPS id qGioCroWqGTAjAAASxT56A (envelope-from ) for ; Fri, 07 Jul 2023 15:44:26 +0200 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 EHh4CboWqGQI+wAAG6o9tA (envelope-from ) for ; Fri, 07 Jul 2023 15:44:26 +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 C9E673CA2B for ; Fri, 7 Jul 2023 15:44:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHlkh-0002Z8-GF; Fri, 07 Jul 2023 09:44:03 -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 1qHlkg-0002Yy-BG for bug-guix@gnu.org; Fri, 07 Jul 2023 09:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHlkg-00062X-3I for bug-guix@gnu.org; Fri, 07 Jul 2023 09:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qHlkf-0004uY-Vr for bug-guix@gnu.org; Fri, 07 Jul 2023 09:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64358: =?UTF-8?Q?=E2=80=9Cguix_?= =?UTF-8?Q?refresh=E2=80=9D?= chokes on cran.scm Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 07 Jul 2023 13:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64358 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Cc: 64358@debbugs.gnu.org Received: via spool by 64358-submit@debbugs.gnu.org id=B64358.168873739318809 (code B ref 64358); Fri, 07 Jul 2023 13:44:01 +0000 Received: (at 64358) by debbugs.gnu.org; 7 Jul 2023 13:43:13 +0000 Received: from localhost ([127.0.0.1]:42788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHljs-0004tJ-SS for submit@debbugs.gnu.org; Fri, 07 Jul 2023 09:43:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHljn-0004sz-Vq for 64358@debbugs.gnu.org; Fri, 07 Jul 2023 09:43:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHlji-0005hG-AY; Fri, 07 Jul 2023 09:43:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=J8aLXb60C0lYiw/4DvtfblKaWvjMjcBwPUwJVZOv3Dw=; b=VnwKvYn4GjiFp4V8uEXc FumHfqnL/qyfg75JO+rTeSKx3RGgllvP/KwCxsWB4LM2tqntzVO9fb+e2JUFrknbJzPkMPm+oLde+ ZEUlE3HzqhfTiPcmmiJCqiqQaN7xXUuQNpGSFZrDN5ms1xTdAEsLyCoxWOEkIdMn8o3TEQX3OOz1f RKLaa/nZHaiIrhu2a8o1DLmPPLMRMQYy/vGSpGKXYuHLj8ON4MGRbnIOALDcjZZpCtBnw1wJJAIKg zzGSXgxtkAy9pWCTZ8j9eWVz2L2QW5gdmiJtKXnGaIG4GT0TCw+kC463ZEg3mW1eNtda86g7T6A+O UgFG1JUvttiBpQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHljh-00008a-UJ; Fri, 07 Jul 2023 09:43:02 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87bkgyklbv.fsf@elephly.net> <87r0pou6h3.fsf@elephly.net> Date: Fri, 07 Jul 2023 15:42:59 +0200 In-Reply-To: <87r0pou6h3.fsf@elephly.net> (Ricardo Wurmus's message of "Mon, 03 Jul 2023 21:29:09 +0200") Message-ID: <87v8evkfbw.fsf@gnu.org> 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 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688737465; a=rsa-sha256; cv=none; b=OBkE3jkaAZ+xMCsb9KZtVuQv2obLLKbiRbKZ0mR7rm5Uyne4NZhI9Q+g7uJ7d1M3c6kEI1 JS1UyyPQl7eZ5l0MFQ6SiAZo6MPVom1C3biWDxI7NoSP7B7Is0YrSABB8ZoUhpPP3lMZmB W4mpN0rJxrFqW+DjhsuEWtflgXqVcVDKdDjLUExT6bQkJvH0r0fU2ympTudroEN0WODFqw BUcyVSW+TTLs7aMl4IzfRjz+HEmeUdzQMEW5VDHqEhKdznILUv9M1aOvrvY5fKTDaxzjwH BWzlQcNPa1BoIaTchwJBWW5mTY7IY1Sb1/Q2sf78z+npQ2U5hVxKnvtFyvG7jQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=VnwKvYn4; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688737465; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=J8aLXb60C0lYiw/4DvtfblKaWvjMjcBwPUwJVZOv3Dw=; b=glNB1pLR7BNWIeXPYrqfEbLzLMNe6s/BI1l3Yyugmzz8qUPtbAZY/GHWptS04QfGlTgTX7 7U5J4oLMOvkCOwSPZlOkF6WVlWtsNHh96q5pMcztHUr8iK5BehMnicGxnGIYu4V7L/7koC ltU+ICv1ZAT0wU0mva/38G/vebn7cAUzVTh2tGuktn63TnTZPmiFf2m70+f9DDR/oxiUy4 nr7Q9tTq4J4NB/sR/Cnb7Jg99MwukmNARqkZxgxvPKXeg/gWoSLvVJi/gszgXal4m4V6AO 6+d+PJITiftwbfD1ZF+823oKvKbYJ7JOgylx1vnCA0vccXdloAZwZVADkH1zFw== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=VnwKvYn4; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.47 X-Spam-Score: -3.47 X-Migadu-Queue-Id: C9E673CA2B X-TUID: k2HzRKik9TBA Hi, Ricardo Wurmus skribis: >> Prior to that we see warnings like this: >> >> /home/rekado/dev/gx/branches/master/gnu/packages/cran.scm:36350:2: r-rea= dtext: updating from version 0.82 to version 0.90... >> /home/rekado/dev/gx/branches/master/gnu/packages/cran.scm:36350:2: warni= ng: r-readtext: no `version' field in source; skipping >> >> It=E2=80=99s as if the position in the file has been lost and it tries t= o update >> the definition of r-readtext that is no longer where the current port >> position is. > > It seems that this is indeed the problem. The value for a =E2= =80=99s > =E2=80=9Clocation=E2=80=9D field is known at compile/eval time and this v= alue will not > be correct after the first substantial edit has taken place. The way =E2=80=98guix style -S inputs=E2=80=99 handles it is by starting ed= iting packages from the bottom of the file and upwards (see the bottom of (guix scripts style)). That way, source location is valid as it edits things. Perhaps we can do that here? Ludo=E2=80=99.