GNU bug report logs - #43458
[PATCH] guix: build: Add a hint for unspecified value

Previous Next

Package: guix-patches;

Reported by: Julien Lepiller <julien <at> lepiller.eu>

Date: Wed, 16 Sep 2020 21:41:01 UTC

Severity: normal

Tags: patch

Done: Julien Lepiller <julien <at> lepiller.eu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Julien Lepiller <julien <at> lepiller.eu>
Subject: bug#43458: closed (Re: [bug#43458] [PATCH] guix: build: Add a
 hint for unspecified value)
Date: Tue, 29 Sep 2020 13:17:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#43458: [PATCH] guix: build: Add a hint for unspecified value

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 43458 <at> debbugs.gnu.org.

-- 
43458: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43458
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Julien Lepiller <julien <at> lepiller.eu>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 43458-done <at> debbugs.gnu.org
Subject: Re: [bug#43458] [PATCH] guix: build: Add a hint for unspecified value
Date: Tue, 29 Sep 2020 15:16:05 +0200
Pushed as e75443d4f28ff1aa97e545f2b47b311c3a5ac32a, thanks for the
review!

[Message part 3 (message/rfc822, inline)]
From: Julien Lepiller <julien <at> lepiller.eu>
To: guix-patches <at> gnu.org
Subject: [PATCH] guix: build: Add a hint for unspecified value
Date: Wed, 16 Sep 2020 23:40:03 +0200
[Message part 4 (text/plain, inline)]
Hi Guix!

this patch adds a hint to guix build, when you try to build from a file
and it returns #<unspecified>.  The most common error is when you copy
the structure from other guix modules and use `define-public` for your
package. The file returns #<unspecified> and you get this message:

> #<unspecified>: not something we can build.

Which is not very helpful. Here is what happens with this change:

> guix build: error: #<unspecified>: not something we can build
> 
> hint: If you build from a file, make sure the last scheme expression
> returns a package value.  `define-public' defines a variable, but
> returns #<unspecified>.  To fix this, add a scheme expression at the
> end of the file that consists only of the package's variable name you
> defined.  ex:
> 
>      (define-public my-package
>        (package
>          ...))
>      
>      my-package

If instead, you return a value that is not understood, the message is
simpler (as this is not something that happens out of confusion / being
new to guix or guile):

> guix build: error: 1: not something we can build
> 
> hint: If you build from a file, make sure the last scheme expression
> returns a package, gexp, derivation value or a list of such values.

(here the file returned "1" which we can't build :))
[0001-guix-build-Add-a-hint-for-unspecified-value.patch (text/x-patch, attachment)]

This bug report was last modified 4 years and 287 days ago.

Previous Next


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