* bug#22693: `guix refresh -u` updates other packages with same version
@ 2016-02-16 9:27 Leo Famulari
2016-02-22 21:33 ` Andreas Enge
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Leo Famulari @ 2016-02-16 9:27 UTC (permalink / raw)
To: 22693
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.
^ permalink raw reply related [flat|nested] 10+ messages in thread
* bug#22693: `guix refresh -u` updates other packages with same version
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 ` 宋文武
2016-04-04 10:20 ` bug#22693: `guix refresh -u` updates other packages with same version 宋文武
2 siblings, 1 reply; 10+ messages in thread
From: Andreas Enge @ 2016-02-22 21:33 UTC (permalink / raw)
To: Leo Famulari; +Cc: 22693
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#22693: `guix refresh -u` updates other packages with same version
2016-02-22 21:33 ` Andreas Enge
@ 2016-02-22 22:37 ` Leo Famulari
0 siblings, 0 replies; 10+ messages in thread
From: Leo Famulari @ 2016-02-22 22:37 UTC (permalink / raw)
To: Andreas Enge; +Cc: 22693
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
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#22693: `guix refresh -u` updates other packages with same version
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-04-04 10:20 ` 宋文武
2016-04-13 1:29 ` bug#22693: close 宋文武
2016-04-04 10:20 ` bug#22693: `guix refresh -u` updates other packages with same version 宋文武
2 siblings, 1 reply; 10+ messages in thread
From: 宋文武 @ 2016-04-04 10:20 UTC (permalink / raw)
To: guix-devel; +Cc: 22693
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bug#22693: `guix refresh -u` updates other packages with same version
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-04-04 10:20 ` 宋文武
@ 2016-04-04 10:20 ` 宋文武
2016-04-04 11:53 ` Andy Wingo
2016-04-04 11:53 ` Andy Wingo
2 siblings, 2 replies; 10+ messages in thread
From: 宋文武 @ 2016-04-04 10:20 UTC (permalink / raw)
To: guix-devel; +Cc: 22693
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#22693: `guix refresh -u` updates other packages with same version
2016-04-04 10:20 ` bug#22693: `guix refresh -u` updates other packages with same version 宋文武
@ 2016-04-04 11:53 ` Andy Wingo
2016-04-04 11:53 ` Andy Wingo
1 sibling, 0 replies; 10+ messages in thread
From: Andy Wingo @ 2016-04-04 11:53 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel, 22693
On Mon 04 Apr 2016 12:20, iyzsong@member.fsf.org (宋文武) writes:
> 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.
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bug#22693: `guix refresh -u` updates other packages with same version
2016-04-04 10:20 ` bug#22693: `guix refresh -u` updates other packages with same version 宋文武
2016-04-04 11:53 ` Andy Wingo
@ 2016-04-04 11:53 ` Andy Wingo
2016-04-04 20:57 ` Ludovic Courtès
2016-04-04 20:57 ` Ludovic Courtès
1 sibling, 2 replies; 10+ messages in thread
From: Andy Wingo @ 2016-04-04 11:53 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel, 22693
On Mon 04 Apr 2016 12:20, iyzsong@member.fsf.org (宋文武) writes:
> 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.
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#22693: `guix refresh -u` updates other packages with same version
2016-04-04 11:53 ` Andy Wingo
@ 2016-04-04 20:57 ` Ludovic Courtès
2016-04-04 20:57 ` Ludovic Courtès
1 sibling, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2016-04-04 20:57 UTC (permalink / raw)
To: Andy Wingo; +Cc: guix-devel, 22693, 宋文武
Andy Wingo <wingo@igalia.com> skribis:
> On Mon 04 Apr 2016 12:20, iyzsong@member.fsf.org (宋文武) writes:
>
>> 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.
>
> 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. ‘package-field-location’ does something along these lines.
> Then limit your substitute* to work within those lines.
A simpler yet less elegant trick used in ‘report-formatting-issues’ in
(guix scripts lint) is to have a maximum number of lines assumed to be
part of the ‘package’ form following its starting line.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bug#22693: `guix refresh -u` updates other packages with same version
2016-04-04 11:53 ` Andy Wingo
2016-04-04 20:57 ` Ludovic Courtès
@ 2016-04-04 20:57 ` Ludovic Courtès
1 sibling, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2016-04-04 20:57 UTC (permalink / raw)
To: Andy Wingo; +Cc: guix-devel, 22693
Andy Wingo <wingo@igalia.com> skribis:
> On Mon 04 Apr 2016 12:20, iyzsong@member.fsf.org (宋文武) writes:
>
>> 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.
>
> 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. ‘package-field-location’ does something along these lines.
> Then limit your substitute* to work within those lines.
A simpler yet less elegant trick used in ‘report-formatting-issues’ in
(guix scripts lint) is to have a maximum number of lines assumed to be
part of the ‘package’ form following its starting line.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#22693: close
2016-04-04 10:20 ` 宋文武
@ 2016-04-13 1:29 ` 宋文武
0 siblings, 0 replies; 10+ messages in thread
From: 宋文武 @ 2016-04-13 1:29 UTC (permalink / raw)
To: 22693-done
fixed in commit 2b8e9d9ed.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2016-04-13 1:30 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` 宋文武
2016-04-13 1:29 ` bug#22693: close 宋文武
2016-04-04 10:20 ` bug#22693: `guix refresh -u` updates other packages with same version 宋文武
2016-04-04 11:53 ` Andy Wingo
2016-04-04 11:53 ` Andy Wingo
2016-04-04 20:57 ` Ludovic Courtès
2016-04-04 20:57 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.