GNU bug report logs -
#25635
'guix refresh' does not work for packages with multiple URIs (python-cram is one example)
Previous Next
Reported by: Sergei Trofimovich <slyfox <at> inbox.ru>
Date: Mon, 6 Feb 2017 16:36:03 UTC
Severity: normal
Tags: fixed
Done: ludo <at> gnu.org (Ludovic Courtès)
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25635 in the body.
You can then email your comments to 25635 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#25635
; Package
guix
.
(Mon, 06 Feb 2017 16:36:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sergei Trofimovich <slyfox <at> inbox.ru>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Mon, 06 Feb 2017 16:36:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
[had to corrupt URIs to get past spam filter]
Noticed by accident when ran 'guix refresh' (global refreh).
Full quick reproducer is [1].
The trigger seems to be '(uri (list' nesting:
gnu/packages/python.scm:
(define-public python-cram
(package
(name "python-cram")
(version "0.7")
(home-page "https://...")
(source (origin
(method url-fetch)
(uri (list (string-append home-page "cram-"
version ".tar.gz")
(pypi-uri "cram" version)))
(sha256
(base32
"0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx"))))
A few issues here:
- in [1] it does not tell which package it is.
- in full 'guix refresh' run the first error aborts whole process.
would be nice to have a mode which proceeds even in face of errors
[1]: ~/dev/git/guix $ ./pre-inst-env guix refresh python-cram
;;; note: source file /home/slyfox/dev/git/guix/guix/import/pypi.scm
;;; newer than compiled /home/slyfox/dev/git/guix/guix/import/pypi.go
Backtrace:
In ice-9/boot-9.scm:
66: 19 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 18 [eval # #]
In ice-9/boot-9.scm:
2404: 17 [save-module-excursion #<procedure 1fd5900 at ice-9/boot-9.scm:4051:3 ()>]
4056: 16 [#<procedure 1fd5900 at ice-9/boot-9.scm:4051:3 ()>]
1727: 15 [%start-stack load-stack ...]
1732: 14 [#<procedure 1fe8bd0 ()>]
In unknown file:
?: 13 [primitive-load "/home/slyfox/dev/git/guix/scripts/guix"]
In guix/ui.scm:
1228: 12 [run-guix-command refresh "python-cram"]
In ice-9/boot-9.scm:
160: 11 [catch srfi-34 #<procedure 59c8100 at guix/ui.scm:432:2 ()> ...]
160: 10 [catch system-error ...]
In guix/scripts/refresh.scm:
442: 9 [#<procedure 4bf00f0 at guix/scripts/refresh.scm:441:4 ()>]
462: 8 [#<procedure 3082c60 at guix/scripts/refresh.scm:442:6 ()>]
In srfi/srfi-1.scm:
616: 7 [for-each #<procedure 479d8d0 at guix/scripts/refresh.scm:462:22 (t-1378592)> ...]
In guix/scripts/refresh.scm:
288: 6 [check-for-package-update # # # ...]
In ice-9/boot-9.scm:
160: 5 [catch srfi-34 #<procedure 5c24300 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/eval.scm:
411: 4 [eval # #]
387: 3 [eval # #]
387: 2 [eval # #]
In guix/utils.scm:
569: 1 [file-sans-extension #]
In unknown file:
?: 0 [string-rindex # #\. #<undefined> ...]
ERROR: In procedure string-rindex:
ERROR: In procedure string-index-right: Wrong type argument in position 1 (expecting string): ("https://..." "https://...")
--
Sergei
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#25635
; Package
guix
.
(Wed, 08 Feb 2017 15:19:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 25635 <at> debbugs.gnu.org (full text, mbox):
Hi Sergei,
Sergei Trofimovich <slyfox <at> inbox.ru> skribis:
> [1]: ~/dev/git/guix $ ./pre-inst-env guix refresh python-cram
> ;;; note: source file /home/slyfox/dev/git/guix/guix/import/pypi.scm
> ;;; newer than compiled /home/slyfox/dev/git/guix/guix/import/pypi.go
> Backtrace:
> In ice-9/boot-9.scm:
> 66: 19 [call-with-prompt prompt0 ...]
> In ice-9/eval.scm:
> 432: 18 [eval # #]
> In ice-9/boot-9.scm:
> 2404: 17 [save-module-excursion #<procedure 1fd5900 at ice-9/boot-9.scm:4051:3 ()>]
> 4056: 16 [#<procedure 1fd5900 at ice-9/boot-9.scm:4051:3 ()>]
> 1727: 15 [%start-stack load-stack ...]
> 1732: 14 [#<procedure 1fe8bd0 ()>]
> In unknown file:
> ?: 13 [primitive-load "/home/slyfox/dev/git/guix/scripts/guix"]
> In guix/ui.scm:
> 1228: 12 [run-guix-command refresh "python-cram"]
> In ice-9/boot-9.scm:
> 160: 11 [catch srfi-34 #<procedure 59c8100 at guix/ui.scm:432:2 ()> ...]
> 160: 10 [catch system-error ...]
> In guix/scripts/refresh.scm:
> 442: 9 [#<procedure 4bf00f0 at guix/scripts/refresh.scm:441:4 ()>]
> 462: 8 [#<procedure 3082c60 at guix/scripts/refresh.scm:442:6 ()>]
> In srfi/srfi-1.scm:
> 616: 7 [for-each #<procedure 479d8d0 at guix/scripts/refresh.scm:462:22 (t-1378592)> ...]
> In guix/scripts/refresh.scm:
> 288: 6 [check-for-package-update # # # ...]
> In ice-9/boot-9.scm:
> 160: 5 [catch srfi-34 #<procedure 5c24300 at ice-9/eval.scm:416:20 ()> ...]
> In ice-9/eval.scm:
> 411: 4 [eval # #]
> 387: 3 [eval # #]
> 387: 2 [eval # #]
> In guix/utils.scm:
> 569: 1 [file-sans-extension #]
> In unknown file:
> ?: 0 [string-rindex # #\. #<undefined> ...]
>
> ERROR: In procedure string-rindex:
> ERROR: In procedure string-index-right: Wrong type argument in position 1 (expecting string): ("https://..." "https://...")
Fixed in 4eaac4b722b180b433b75127a30b871aaf9f0913, thanks!
Ludo’.
Added tag(s) fixed.
Request was from
ludo <at> gnu.org (Ludovic Courtès)
to
control <at> debbugs.gnu.org
.
(Wed, 08 Feb 2017 15:19:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
25635 <at> debbugs.gnu.org and Sergei Trofimovich <slyfox <at> inbox.ru>
Request was from
ludo <at> gnu.org (Ludovic Courtès)
to
control <at> debbugs.gnu.org
.
(Wed, 08 Feb 2017 15:19:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 09 Mar 2017 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 22 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.