From unknown Mon Aug 18 14:24:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22693 <22693@debbugs.gnu.org> To: bug#22693 <22693@debbugs.gnu.org> Subject: Status: `guix refresh -u` updates other packages with same version Reply-To: bug#22693 <22693@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:24:37 +0000 retitle 22693 `guix refresh -u` updates other packages with same version reassign 22693 guix submitter 22693 Leo Famulari severity 22693 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 16 04:27:31 2016 Received: (at submit) by debbugs.gnu.org; 16 Feb 2016 09:27:32 +0000 Received: from localhost ([127.0.0.1]:40800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVbut-0005W2-PM for submit@debbugs.gnu.org; Tue, 16 Feb 2016 04:27:31 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52005) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVbus-0005Vr-Rs for submit@debbugs.gnu.org; Tue, 16 Feb 2016 04:27:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVbum-0008WF-MB for submit@debbugs.gnu.org; Tue, 16 Feb 2016 04:27:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVbum-0008W9-Iu for submit@debbugs.gnu.org; Tue, 16 Feb 2016 04:27:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVbul-0005cm-FG for bug-guix@gnu.org; Tue, 16 Feb 2016 04:27:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVbug-0008VJ-G0 for bug-guix@gnu.org; Tue, 16 Feb 2016 04:27:23 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:41894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVbug-0008V6-96 for bug-guix@gnu.org; Tue, 16 Feb 2016 04:27:18 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 14341208C1; Tue, 16 Feb 2016 04:27:18 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 16 Feb 2016 04:27:18 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=famulari.name; h= content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=GWaqK9dcG5G1bH64IupoPwyWobQ =; b=AhGX2OmajVVRhLomn6PPHYj0gfX+VG1R6fjY/ZnI5oH93ssTi2EcAiBoDia Mc61CvtoONkgIFppAsHX3onghu89eGBAK56Jv/XwFgQc05F43w3jnUpcPcb/U0Sk J7I3j69cYqPjwBXdSxPCHN4B/sSNh2D7ph28JLCc2qF1NF+w= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=GW aqK9dcG5G1bH64IupoPwyWobQ=; b=AM4UFnO5CYE4RRs2bhugP6oWjE8XrF8aJd l+X/o7onGZeY0Amjnvy+WYCL0LNjGslHSQjhM2CxU5Os4Uf/ge702RYZ5JzGBV0a d1Djiah4JceYVOhYuFi3Ue+jIpeg3M64b0ZHKR08mAhHnHp0vZmafslgof0OsU8m htTpWL0/s= X-Sasl-enc: WCb2ap0jPno3cHDc/jV4bFtrN15RlW1v6ANGlnd7+QSY 1455614837 Received: from localhost (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id C09626800F1 for ; Tue, 16 Feb 2016 04:27:17 -0500 (EST) Date: Tue, 16 Feb 2016 04:27:24 -0500 From: Leo Famulari To: bug-guix@gnu.org Subject: `guix refresh -u` updates other packages with same version Message-ID: <20160216092724.GA10422@jasmine> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) I've noticed that `guix refresh -u` will update extraneous packages if they happen to have the same version and be in the same module. For example, from commit d694230ab, you can reproduce the bug: $ ./pre-inst-env guix environment guix -- ./pre-inst-env guix refresh -u python-pytest $ git diff diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3dd3862..ae14404 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -796,7 +796,7 @@ Python 3 support.") (define-public python-pycrypto (package (name "python-pycrypto") - (version "2.6.1") + (version "2.8.7") (source (origin (method url-fetch) @@ -1565,7 +1565,7 @@ code introspection, and logging.") (define-public python-pytest (package (name "python-pytest") - (version "2.6.1") + (version "2.8.7") (source (origin (method url-fetch) @@ -1574,7 +1574,7 @@ code introspection, and logging.") version ".tar.gz")) (sha256 (base32 - "0g2w4p0n42wvz8rq4k6gnzpkakgz3g8sfanxk8jrsra9675snkcr")) + "1bwb06g64x2gky8x5hcrfpg6r351xwvafimnhm5qxq7wajz8ck7w")) (modules '((guix build utils))) (snippet ;; One of the tests involves the /usr directory, so it fails. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 22 16:33:24 2016 Received: (at 22693) by debbugs.gnu.org; 22 Feb 2016 21:33:24 +0000 Received: from localhost ([127.0.0.1]:38581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXy6e-0000bH-9K for submit@debbugs.gnu.org; Mon, 22 Feb 2016 16:33:24 -0500 Received: from mailrelay7.public.one.com ([91.198.169.215]:51649) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXy6b-0000b2-W6 for 22693@debbugs.gnu.org; Mon, 22 Feb 2016 16:33:22 -0500 X-HalOne-Cookie: addcdd2210f3ebffba5c1bed75a6171d88582f5d X-HalOne-ID: e11d6adc-d9ab-11e5-882a-b82a72cffc46 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=enge.fr; s=20140924; h=from:subject:date:message-id:to:cc:mime-version:content-type:in-reply-to: references; bh=ez8qOyTmky9LHenuQCDYS3YrJM03NmCOMzSvPoLClV0=; b=B9Rh1sh7hFjyeBgiRGvw6DlEYGENyXidC9jerX6n3sIPAJ2k6KFyeVjLhHv4qg7lLmKFvLPzov8qb U9BfDBQ4pRLtdob5mwUx0wotjczu2ow3bCX7PexHdQ0x7UJ5d1KHiN4V+fAZXoLFVpEiVZwuas3LIQ fioLwCDbhCiUaN3E= Received: from solar (unknown [92.89.73.211]) by smtpfilter4.public.one.com (Halon Mail Gateway) with ESMTPSA; Mon, 22 Feb 2016 21:33:14 +0000 (UTC) Date: Mon, 22 Feb 2016 22:33:12 +0100 From: Andreas Enge To: Leo Famulari Subject: Re: bug#22693: `guix refresh -u` updates other packages with same version Message-ID: <20160222213312.GA9481@solar> References: <20160216092724.GA10422@jasmine> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160216092724.GA10422@jasmine> User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22693 Cc: 22693@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Tue, Feb 16, 2016 at 04:27:24AM -0500, Leo Famulari wrote: > I've noticed that `guix refresh -u` will update extraneous packages if > they happen to have the same version and be in the same module. > > For example, from commit d694230ab, you can reproduce the bug: > > $ ./pre-inst-env guix environment guix -- ./pre-inst-env guix refresh -u python-pytest > $ git diff > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > @@ -796,7 +796,7 @@ Python 3 support.") > (define-public python-pycrypto > (package > (name "python-pycrypto") > - (version "2.6.1") > + (version "2.8.7") > (define-public python-pytest > (package > (name "python-pytest") > - (version "2.6.1") > + (version "2.8.7") I wondered about the "./pre-inst-env guix environment guix", but I tried it without, and I confirm the problem. Andreas From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 22 17:37:50 2016 Received: (at 22693) by debbugs.gnu.org; 22 Feb 2016 22:37:50 +0000 Received: from localhost ([127.0.0.1]:38615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXz70-000283-5I for submit@debbugs.gnu.org; Mon, 22 Feb 2016 17:37:50 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:55752) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXz6y-00027w-By for 22693@debbugs.gnu.org; Mon, 22 Feb 2016 17:37:48 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id E78E3219B1; Mon, 22 Feb 2016 17:37:47 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 22 Feb 2016 17:37:47 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=famulari.name; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=8waGT 27I5GYVtsKVEsOHMC52s1I=; b=pB3jhytF4CULxaAwN5Nhtf7KlnPmlD2veiPzK 9NmA5D+wQd2x3A/otEW1OT9vHxCAac9f25WhgCJOuBjtwAu9vSQ5cBdXdksd0yxc P53DA+f5ued5kH/aLgHIOlzNA0RqOxfczblBErlX33tloJNGivSfQMYWsjDGAvWT c2Ta50= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=8waGT27I5GYVtsKVEsOHMC52s1I=; b=MbHX6 9e9jGOg6dic3YOeR6qgwaDHQT8dUZkV50PURUq05wUFQIKHYgpTnyGac3MN0vVj0 H1zQFXQOzdZ+rZBfmBbMXURXz6b+y6q7ol6s/DuJWaqp+dx9ewCrm/nCLJY3DWCY 8d31CyB37pEdHltrFhP046pT0i0nJG9lGkvZr8= X-Sasl-enc: 7z4P0X138D4K1kmvj89ytQmmLZJ3a40v3MpIwmqv2O64 1456180667 Received: from localhost (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id A1C61C00012; Mon, 22 Feb 2016 17:37:47 -0500 (EST) Date: Mon, 22 Feb 2016 17:37:46 -0500 From: Leo Famulari To: Andreas Enge Subject: Re: bug#22693: `guix refresh -u` updates other packages with same version Message-ID: <20160222223746.GB16919@jasmine> References: <20160216092724.GA10422@jasmine> <20160222213312.GA9481@solar> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160222213312.GA9481@solar> User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22693 Cc: 22693@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Mon, Feb 22, 2016 at 10:33:12PM +0100, Andreas Enge wrote: > On Tue, Feb 16, 2016 at 04:27:24AM -0500, Leo Famulari wrote: > > I've noticed that `guix refresh -u` will update extraneous packages if > > they happen to have the same version and be in the same module. > > > > For example, from commit d694230ab, you can reproduce the bug: > > > > $ ./pre-inst-env guix environment guix -- ./pre-inst-env guix refresh -u python-pytest > > $ git diff > > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > > @@ -796,7 +796,7 @@ Python 3 support.") > > (define-public python-pycrypto > > (package > > (name "python-pycrypto") > > - (version "2.6.1") > > + (version "2.8.7") > > (define-public python-pytest > > (package > > (name "python-pytest") > > - (version "2.6.1") > > + (version "2.8.7") > > I wondered about the "./pre-inst-env guix environment guix", but I tried it > without, and I confirm the problem. I like to offer my bug reports with './pre-inst-env' and a commit, to increase the number of factors that are deterministic. > > Andreas > From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 04 06:22:17 2016 Received: (at 22693) by debbugs.gnu.org; 4 Apr 2016 10:22:17 +0000 Received: from localhost ([127.0.0.1]:50601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an1eD-0003FU-LU for submit@debbugs.gnu.org; Mon, 04 Apr 2016 06:22:17 -0400 Received: from smtp16.openmailbox.org ([62.4.1.50]:50206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an1eB-0003FL-Ps for 22693@debbugs.gnu.org; Mon, 04 Apr 2016 06:22:16 -0400 Received: by mail2.openmailbox.org (Postfix, from userid 1002) id 3D1037C9E2F; Mon, 4 Apr 2016 12:22:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on openmailbox-b1 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,T_HEADER_FROM_DIFFERENT_DOMAINS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) To: guix-devel@gnu.org Subject: Re: bug#22693: `guix refresh -u` updates other packages with same version In-Reply-To: <20160216092724.GA10422@jasmine> (Leo Famulari's message of "Tue, 16 Feb 2016 04:27:24 -0500") References: <20160216092724.GA10422@jasmine> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Date: Mon, 04 Apr 2016 18:20:45 +0800 Message-ID: <87pou5oete.fsf@member.fsf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 22693 Cc: 22693@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Leo Famulari writes: > I've noticed that `guix refresh -u` will update extraneous packages if > they happen to have the same version and be in the same module. > > For example, from commit d694230ab, you can reproduce the bug: > > $ ./pre-inst-env guix environment guix -- ./pre-inst-env guix refresh -u = python-pytest > $ git diff > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index 3dd3862..ae14404 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -796,7 +796,7 @@ Python 3 support.") > (define-public python-pycrypto > (package > (name "python-pycrypto") > - (version "2.6.1") > + (version "2.8.7") > (source > (origin > (method url-fetch) > @@ -1565,7 +1565,7 @@ code introspection, and logging.") > (define-public python-pytest > (package > (name "python-pytest") > - (version "2.6.1") > + (version "2.8.7") > (source > (origin > (method url-fetch) > @@ -1574,7 +1574,7 @@ code introspection, and logging.") > version ".tar.gz")) > (sha256 > (base32 > - "0g2w4p0n42wvz8rq4k6gnzpkakgz3g8sfanxk8jrsra9675snkcr")) > + "1bwb06g64x2gky8x5hcrfpg6r351xwvafimnhm5qxq7wajz8ck7w")) > (modules '((guix build utils))) > (snippet > ;; One of the tests involves the /usr directory, so it fails. How to fix this? The procedure is =E2=80=98update-package-source=E2=80=99 in (guix upstream). it find the file, then use =E2=80=98substitute=E2=80=99 to replace the vers= ion and hash. =E2=80=98substitute=E2=80=99 works line-by-line, it can=E2=80=99t ma= tch mutiple lines. I try: - use =E2=80=98package-location=E2=80=99 and =E2=80=98read=E2=80=99 to get= the package object, but it lost all format and comments. - use =E2=80=98string-match=E2=80=99, but I have no idea how to match the = whole package sexp. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 04 07:53:46 2016 Received: (at 22693) by debbugs.gnu.org; 4 Apr 2016 11:53:46 +0000 Received: from localhost ([127.0.0.1]:50635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an34j-00073r-UW for submit@debbugs.gnu.org; Mon, 04 Apr 2016 07:53:46 -0400 Received: from pb-sasl0.pobox.com ([208.72.237.25]:61225 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1an34h-00073j-Tf for 22693@debbugs.gnu.org; Mon, 04 Apr 2016 07:53:44 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl0.pobox.com (Postfix) with ESMTP id 65B8B4F580; Mon, 4 Apr 2016 07:53:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=45X/ainH1VB+ qyt0VF6L81wMpiM=; b=ubC70oOslme6X5SJQCBlm6pH0fdgr5csYPV4e3uL++f5 YKFPDmLIu/1izw65TkuiuL+NeZOVXWzRial3cFVtF7F76Pw4T2kqY6Ma+d8CJ7Zk g8wdgeh+1VFdQ4fjfhQzjvsdbhHaJmKKRzXF4D/SvlNjAAF/+nABi3HN/kl6/P0= Received: from pb-sasl0.int.icgroup.com (unknown [127.0.0.1]) by pb-sasl0.pobox.com (Postfix) with ESMTP id 5BA5B4F57E; Mon, 4 Apr 2016 07:53:42 -0400 (EDT) Received: from rusty (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl0.pobox.com (Postfix) with ESMTPSA id 9685A4F57D; Mon, 4 Apr 2016 07:53:41 -0400 (EDT) From: Andy Wingo To: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: bug#22693: `guix refresh -u` updates other packages with same version References: <20160216092724.GA10422@jasmine> <87pou5oete.fsf@member.fsf.org> Date: Mon, 04 Apr 2016 13:53:38 +0200 In-Reply-To: <87pou5oete.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Mon, 04 Apr 2016 18:20:45 +0800") Message-ID: <87r3elh9od.fsf@igalia.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pobox-Relay-ID: E05828CA-FA5B-11E5-A174-E4FB1E2D4245-02397024!pb-sasl0.pobox.com X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22693 Cc: guix-devel@gnu.org, 22693@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Mon 04 Apr 2016 12:20, iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD= =A6) writes: > How to fix this? > > The procedure is =E2=80=98update-package-source=E2=80=99 in (guix upstrea= m). > it find the file, then use =E2=80=98substitute=E2=80=99 to replace the ve= rsion and > hash. =E2=80=98substitute=E2=80=99 works line-by-line, it can=E2=80=99t = match mutiple lines. > > I try: > - use =E2=80=98package-location=E2=80=99 and =E2=80=98read=E2=80=99 to g= et the package object, > but it lost all format and comments. One option: 1. open the source file for the package 2. Call (read) until port-line / port-column are beyond the package-location of the package 3. At that point you have the ending location of the package. Then limit your substitute* to work within those lines. Another option would be to extend substitute* to start on a certain line, and to limit the number of substitutions. That way if you start on package-location and limit to one substitution you are likely to update the correct version. Andy From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 04 16:57:23 2016 Received: (at 22693) by debbugs.gnu.org; 4 Apr 2016 20:57:23 +0000 Received: from localhost ([127.0.0.1]:51451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anBYp-000553-93 for submit@debbugs.gnu.org; Mon, 04 Apr 2016 16:57:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anBYn-00054r-FK for 22693@debbugs.gnu.org; Mon, 04 Apr 2016 16:57:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anBYf-0000ms-6Z for 22693@debbugs.gnu.org; Mon, 04 Apr 2016 16:57:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anBYf-0000mo-3P; Mon, 04 Apr 2016 16:57:13 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:53296 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1anBYe-0005JP-86; Mon, 04 Apr 2016 16:57:12 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Andy Wingo Subject: Re: bug#22693: `guix refresh -u` updates other packages with same version References: <20160216092724.GA10422@jasmine> <87pou5oete.fsf@member.fsf.org> <87r3elh9od.fsf@igalia.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Germinal an 224 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 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-unknown-linux-gnu Date: Mon, 04 Apr 2016 22:57:09 +0200 In-Reply-To: <87r3elh9od.fsf@igalia.com> (Andy Wingo's message of "Mon, 04 Apr 2016 13:53:38 +0200") Message-ID: <87inzxcct6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 22693 Cc: guix-devel@gnu.org, 22693@debbugs.gnu.org, =?utf-8?B?5a6L5paH5q2m?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Andy Wingo skribis: > On Mon 04 Apr 2016 12:20, iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6= =AD=A6) writes: > >> How to fix this? >> >> The procedure is =E2=80=98update-package-source=E2=80=99 in (guix upstre= am). >> it find the file, then use =E2=80=98substitute=E2=80=99 to replace the v= ersion and >> hash. =E2=80=98substitute=E2=80=99 works line-by-line, it can=E2=80=99t= match mutiple lines. >> >> I try: >> - use =E2=80=98package-location=E2=80=99 and =E2=80=98read=E2=80=99 to = get the package object, >> but it lost all format and comments. > > One option: > > 1. open the source file for the package > 2. Call (read) until port-line / port-column are beyond the > package-location of the package > 3. At that point you have the ending location of the package. Right. =E2=80=98package-field-location=E2=80=99 does something along these= lines. > Then limit your substitute* to work within those lines. A simpler yet less elegant trick used in =E2=80=98report-formatting-issues= =E2=80=99 in (guix scripts lint) is to have a maximum number of lines assumed to be part of the =E2=80=98package=E2=80=99 form following its starting line. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 12 21:29:32 2016 Received: (at 22693-done) by debbugs.gnu.org; 13 Apr 2016 01:29:32 +0000 Received: from localhost ([127.0.0.1]:33135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aq9ca-0007lU-7s for submit@debbugs.gnu.org; Tue, 12 Apr 2016 21:29:32 -0400 Received: from smtp19.openmailbox.org ([62.4.1.53]:45692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aq9cZ-0007lM-29 for 22693-done@debbugs.gnu.org; Tue, 12 Apr 2016 21:29:31 -0400 Received: by mail2.openmailbox.org (Postfix, from userid 1002) id 224607C8EB0; Wed, 13 Apr 2016 03:29:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on openmailbox-b1 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,T_HEADER_FROM_DIFFERENT_DOMAINS autolearn=no autolearn_force=no version=3.4.0 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) To: 22693-done@debbugs.gnu.org Subject: close References: <20160216092724.GA10422@jasmine> <87pou5oete.fsf__7662.14660038731$1459765404$gmane$org@member.fsf.org> Date: Wed, 13 Apr 2016 09:29:11 +0800 In-Reply-To: <87pou5oete.fsf__7662.14660038731$1459765404$gmane$org@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIncw==?= message of "Mon, 04 Apr 2016 18:20:45 +0800") Message-ID: <87fuuqmh3s.fsf_-_@member.fsf.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 22693-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) fixed in commit 2b8e9d9ed. From unknown Mon Aug 18 14:24:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 11 May 2016 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator