GNU bug report logs - #42512
"guix refresh --list-updaters" fails

Previous Next

Package: guix;

Reported by: Danny Milosavljevic <dannym <at> scratchpost.org>

Date: Fri, 24 Jul 2020 09:23:01 UTC

Severity: normal

Tags: wontfix

Done: Ludovic Courtès <ludo <at> gnu.org>

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 42512 in the body.
You can then email your comments to 42512 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#42512; Package guix. (Fri, 24 Jul 2020 09:23:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Danny Milosavljevic <dannym <at> scratchpost.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 24 Jul 2020 09:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: <bug-guix <at> gnu.org>
Subject: "guix refresh --list-updaters" fails
Date: Fri, 24 Jul 2020 11:22:40 +0200
[Message part 1 (text/plain, inline)]
$ LC_ALL=C guix describe
Generation 108  Jul 16 2020 11:03:13    (current)
  guix d57ce20
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: d57ce2024b0bdec0f8d05258c32c7bc7275a17a6
  heads 9cc77db
    repository URL: https://github.com/daym/heads-guix.git
    branch: wip-musl
    commit: 9cc77db51d994dc3ea03298e3714e2a0c7b929a5

$ LC_ALL=C guix refresh  --list-updaters
[...]
  - cpan: Updater for CPAN packages (5.3% coverage)
  - kernel.org: Updater for packages hosted on kernel.org (.3% coverage)
Backtrace:
          12 (primitive-load "/home/dannym/.config/guix/current/bin/?")
In guix/ui.scm:
  1974:12 11 (run-guix-command _ . _)
In guix/scripts/refresh.scm:
    502:4 10 (guix-refresh . _)
In ice-9/boot-9.scm:
  1731:15  9 (with-exception-handler #<procedure 7fefd641f2d0 at ic?> ?)
In srfi/srfi-37.scm:
   201:16  8 (next-arg)
   113:18  7 (invoke-option-processor _ _ _ _ _)
In unknown file:
           6 (_ #<procedure 7fefd641f240 at srfi/srfi-37.scm:114:22?> ?)
In guix/scripts/refresh.scm:
    285:4  5 (_ . _)
In srfi/srfi-1.scm:
   460:18  4 (fold #<procedure 7fefdaecbf60 at guix/scripts/refresh?> ?)
In guix/scripts/refresh.scm:
   287:29  3 (_ #<<upstream-updater> name: gnu-ftp description: "Up?> ?)
In unknown file:
           2 (filter #<procedure pred (package)> (#<package heads?> ?))
In guix/memoization.scm:
    101:0  1 (_ #<hash-table 7fefdaedbce0 12/31> #<package heads-u-?> ?)
In guix/gnu-maintenance.scm:
   182:20  0 (_)

guix/gnu-maintenance.scm:182:20: In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f

(define gnu-package?
  (let ((official-gnu-packages (memoize official-gnu-packages)))
    (mlambdaq (package)
      "Return true if PACKAGE is a GNU package.  This procedure may access the
network to check in GNU's database."
      (define (mirror-type url)
        (let ((uri (string->uri url))) ; <------------------------
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#42512; Package guix. (Fri, 24 Jul 2020 09:50:02 GMT) Full text and rfc822 format available.

Message #8 received at 42512 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 42512 <at> debbugs.gnu.org
Subject: Re: bug#42512: "guix refresh --list-updaters" fails
Date: Fri, 24 Jul 2020 11:49:15 +0200
Hi Danny,

Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

> $ LC_ALL=C guix describe
> Generation 108  Jul 16 2020 11:03:13    (current)
>   guix d57ce20
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: d57ce2024b0bdec0f8d05258c32c7bc7275a17a6
>   heads 9cc77db
>     repository URL: https://github.com/daym/heads-guix.git
>     branch: wip-musl
>     commit: 9cc77db51d994dc3ea03298e3714e2a0c7b929a5
>
> $ LC_ALL=C guix refresh  --list-updaters
> [...]
>   - cpan: Updater for CPAN packages (5.3% coverage)
>   - kernel.org: Updater for packages hosted on kernel.org (.3% coverage)
> Backtrace:
>           12 (primitive-load "/home/dannym/.config/guix/current/bin/?")
> In guix/ui.scm:
>   1974:12 11 (run-guix-command _ . _)
> In guix/scripts/refresh.scm:
>     502:4 10 (guix-refresh . _)
> In ice-9/boot-9.scm:
>   1731:15  9 (with-exception-handler #<procedure 7fefd641f2d0 at ic?> ?)
> In srfi/srfi-37.scm:
>    201:16  8 (next-arg)
>    113:18  7 (invoke-option-processor _ _ _ _ _)
> In unknown file:
>            6 (_ #<procedure 7fefd641f240 at srfi/srfi-37.scm:114:22?> ?)
> In guix/scripts/refresh.scm:
>     285:4  5 (_ . _)
> In srfi/srfi-1.scm:
>    460:18  4 (fold #<procedure 7fefdaecbf60 at guix/scripts/refresh?> ?)
> In guix/scripts/refresh.scm:
>    287:29  3 (_ #<<upstream-updater> name: gnu-ftp description: "Up?> ?)
> In unknown file:
>            2 (filter #<procedure pred (package)> (#<package heads?> ?))
> In guix/memoization.scm:
>     101:0  1 (_ #<hash-table 7fefdaedbce0 12/31> #<package heads-u-?> ?)
> In guix/gnu-maintenance.scm:
>    182:20  0 (_)
>
> guix/gnu-maintenance.scm:182:20: In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
>
> (define gnu-package?
>   (let ((official-gnu-packages (memoize official-gnu-packages)))
>     (mlambdaq (package)
>       "Return true if PACKAGE is a GNU package.  This procedure may access the
> network to check in GNU's database."
>       (define (mirror-type url)
>         (let ((uri (string->uri url))) ; <------------------------

That suggests one of the packages in the ‘heads-guix’ channel has an
invalid URL (one for which ‘string->uri’ returns #f).

If you set COLUMNS=200 you should see the name of the package in the
backtrace.  :-)

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#42512; Package guix. (Sat, 25 Jul 2020 14:40:02 GMT) Full text and rfc822 format available.

Message #11 received at 42512 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 42512 <at> debbugs.gnu.org
Subject: Re: bug#42512: "guix refresh --list-updaters" fails
Date: Fri, 24 Jul 2020 12:18:44 +0200
[Message part 1 (text/plain, inline)]
Hi Ludo,

> That suggests one of the packages in the ‘heads-guix’ channel has an
> invalid URL (one for which ‘string->uri’ returns #f).
> 
> If you set COLUMNS=200 you should see the name of the package in the
> backtrace.  :-)

That is correct.  I had a URL with content "FIXME" with url-fetch.

Still, I don't think this should happen.  Better to just print a normal warning
or error message.

[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#42512; Package guix. (Tue, 28 Jul 2020 21:32:01 GMT) Full text and rfc822 format available.

Message #14 received at 42512 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 42512 <at> debbugs.gnu.org
Subject: Re: bug#42512: "guix refresh --list-updaters" fails
Date: Tue, 28 Jul 2020 23:31:11 +0200
Hi,

Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

>> That suggests one of the packages in the ‘heads-guix’ channel has an
>> invalid URL (one for which ‘string->uri’ returns #f).
>> 
>> If you set COLUMNS=200 you should see the name of the package in the
>> backtrace.  :-)
>
> That is correct.  I had a URL with content "FIXME" with url-fetch.
>
> Still, I don't think this should happen.  Better to just print a normal warning
> or error message.

Yes, but… it’s complicated: the assumption that the ‘uri’ field is a URI
or list thereof is made throughout the code.

Thanks,
Ludo’.




Added tag(s) wontfix. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 25 Sep 2020 10:00:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 42512 <at> debbugs.gnu.org and Danny Milosavljevic <dannym <at> scratchpost.org> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 25 Sep 2020 10:00:04 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. (Fri, 23 Oct 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.