GNU bug report logs - #22836
“guix build -S” fails when “source” is #f

Previous Next

Package: guix;

Reported by: Ricardo Wurmus <rekado <at> elephly.net>

Date: Sun, 28 Feb 2016 10:59:01 UTC

Severity: normal

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 22836 in the body.
You can then email your comments to 22836 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#22836; Package guix. (Sun, 28 Feb 2016 10:59:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ricardo Wurmus <rekado <at> elephly.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 28 Feb 2016 10:59:01 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: bug-guix <at> gnu.org
Subject: “guix build -S” fails when
 “source” is #f
Date: Sun, 28 Feb 2016 11:58:34 +0100
I just did this:

    guix build -S xfce

This resulted in this error message:

~~~~~~~~~~~~~~~~~~~~~~~
Backtrace:
In ice-9/boot-9.scm:
 157: 18 [catch #t #<catch-closure 19a6780> ...]
In unknown file:
   ?: 17 [apply-smob/1 #<catch-closure 19a6780>]
In ice-9/boot-9.scm:
  63: 16 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 15 [eval # #]
In ice-9/boot-9.scm:
2401: 14 [save-module-excursion #<procedure 19c4940 at ice-9/boot-9.scm:4045:3 ()>]
4050: 13 [#<procedure 19c4940 at ice-9/boot-9.scm:4045:3 ()>]
1724: 12 [%start-stack load-stack ...]
1729: 11 [#<procedure 19dbea0 ()>]
In unknown file:
   ?: 10 [primitive-load "/home/rekado/dev/guix/scripts/guix"]
In guix/ui.scm:
1177: 9 [run-guix-command build "-S" "xfce"]
In ice-9/boot-9.scm:
 157: 8 [catch srfi-34 #<procedure 205a080 at guix/ui.scm:413:2 ()> ...]
 157: 7 [catch system-error ...]
In guix/scripts/build.scm:
 638: 6 [#<procedure 205a120 at guix/scripts/build.scm:634:2 ()>]
 591: 5 [options->derivations #<build-daemon 256.15 280efc0> (# # # # ...)]
In srfi/srfi-1.scm:
 646: 4 [append-map #<procedure 280ebc0 at guix/scripts/build.scm:591:16 (expr)> #]
 578: 3 [map #<procedure 280ebc0 at guix/scripts/build.scm:591:16 (expr)> (#)]
In guix/scripts/build.scm:
 598: 2 [#<procedure 280ebc0 at guix/scripts/build.scm:591:16 (expr)> #]
In guix/store.scm:
1017: 1 [#<procedure 206fbe0 at guix/store.scm:1016:26 (store . args)> # #f]
In guix/packages.scm:
1073: 0 [origin->derivation #f "x86_64-linux"]

guix/packages.scm:1073:2: In procedure origin->derivation:
guix/packages.scm:1073:2: Throw to key `match-error' with args `("match" "no matching pattern" #f)'.
~~~~~~~~~~~~~~~~~~~~~~~

That’s expected, because the “xfce” package is a meta-package and thus
does not have any sources of its own.  The “source” field is “#f”.

Guix should print a nice error message informing the user that the
requested package does not have any sources.

~~ Ricardo





Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Tue, 27 Sep 2016 09:48:01 GMT) Full text and rfc822 format available.

Notification sent to Ricardo Wurmus <rekado <at> elephly.net>:
bug acknowledged by developer. (Tue, 27 Sep 2016 09:48:01 GMT) Full text and rfc822 format available.

Message #10 received at 22836-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 22836-done <at> debbugs.gnu.org
Subject: Re: bug#22836: “guix build -S” fails when “source” is #f
Date: Tue, 27 Sep 2016 11:47:42 +0200
Ricardo Wurmus <rekado <at> elephly.net> skribis:

> I just did this:
>
>     guix build -S xfce
>
> This resulted in this error message:
>
> ~~~~~~~~~~~~~~~~~~~~~~~
> Backtrace:
> In ice-9/boot-9.scm:
>  157: 18 [catch #t #<catch-closure 19a6780> ...]
> In unknown file:
>    ?: 17 [apply-smob/1 #<catch-closure 19a6780>]
> In ice-9/boot-9.scm:
>   63: 16 [call-with-prompt prompt0 ...]
> In ice-9/eval.scm:
>  432: 15 [eval # #]
> In ice-9/boot-9.scm:
> 2401: 14 [save-module-excursion #<procedure 19c4940 at ice-9/boot-9.scm:4045:3 ()>]
> 4050: 13 [#<procedure 19c4940 at ice-9/boot-9.scm:4045:3 ()>]
> 1724: 12 [%start-stack load-stack ...]
> 1729: 11 [#<procedure 19dbea0 ()>]
> In unknown file:
>    ?: 10 [primitive-load "/home/rekado/dev/guix/scripts/guix"]
> In guix/ui.scm:
> 1177: 9 [run-guix-command build "-S" "xfce"]
> In ice-9/boot-9.scm:
>  157: 8 [catch srfi-34 #<procedure 205a080 at guix/ui.scm:413:2 ()> ...]
>  157: 7 [catch system-error ...]
> In guix/scripts/build.scm:
>  638: 6 [#<procedure 205a120 at guix/scripts/build.scm:634:2 ()>]
>  591: 5 [options->derivations #<build-daemon 256.15 280efc0> (# # # # ...)]
> In srfi/srfi-1.scm:
>  646: 4 [append-map #<procedure 280ebc0 at guix/scripts/build.scm:591:16 (expr)> #]
>  578: 3 [map #<procedure 280ebc0 at guix/scripts/build.scm:591:16 (expr)> (#)]
> In guix/scripts/build.scm:
>  598: 2 [#<procedure 280ebc0 at guix/scripts/build.scm:591:16 (expr)> #]
> In guix/store.scm:
> 1017: 1 [#<procedure 206fbe0 at guix/store.scm:1016:26 (store . args)> # #f]
> In guix/packages.scm:
> 1073: 0 [origin->derivation #f "x86_64-linux"]
>
> guix/packages.scm:1073:2: In procedure origin->derivation:
> guix/packages.scm:1073:2: Throw to key `match-error' with args `("match" "no matching pattern" #f)'.
> ~~~~~~~~~~~~~~~~~~~~~~~
>
> That’s expected, because the “xfce” package is a meta-package and thus
> does not have any sources of its own.  The “source” field is “#f”.

Fixed in 8a54c0ec694ad6e22b155d167552b8fd0914e82d.

I made it a warning so that one can still use things like:

  guix build -S `guix package -A | cut -f1`

Thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 25 Oct 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 193 days ago.

Previous Next


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