From: iyzsong@member.fsf.org (宋文武)
To: guix-devel@gnu.org
Cc: 22693@debbugs.gnu.org
Subject: bug#22693: `guix refresh -u` updates other packages with same version
Date: Mon, 04 Apr 2016 18:20:45 +0800 [thread overview]
Message-ID: <87pou5oete.fsf__7662.14660038731$1459765404$gmane$org@member.fsf.org> (raw)
In-Reply-To: <20160216092724.GA10422@jasmine> (Leo Famulari's message of "Tue, 16 Feb 2016 04:27:24 -0500")
Leo Famulari <leo@famulari.name> 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 ‘update-package-source’ in (guix upstream).
it find the file, then use ‘substitute’ to replace the version and
hash. ‘substitute’ works line-by-line, it can’t match mutiple lines.
I try:
- use ‘package-location’ and ‘read’ to get the package object,
but it lost all format and comments.
- use ‘string-match’, but I have no idea how to match the whole
package sexp.
next prev parent reply other threads:[~2016-04-04 10:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-16 9:27 bug#22693: `guix refresh -u` updates other packages with same version Leo Famulari
2016-02-22 21:33 ` Andreas Enge
2016-02-22 22:37 ` Leo Famulari
2016-04-04 10:20 ` 宋文武 [this message]
2016-04-13 1:29 ` bug#22693: close 宋文武
[not found] ` <87pou5oete.fsf@member.fsf.org>
2016-04-04 11:53 ` bug#22693: `guix refresh -u` updates other packages with same version Andy Wingo
[not found] ` <87r3elh9od.fsf@igalia.com>
2016-04-04 20:57 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='87pou5oete.fsf__7662.14660038731$1459765404$gmane$org@member.fsf.org' \
--to=iyzsong@member.fsf.org \
--cc=22693@debbugs.gnu.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).