unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37160: guix lint --checkers=refresh fails
@ 2019-08-23 14:45 Jonathan Brielmaier
  2019-08-27  9:44 ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Brielmaier @ 2019-08-23 14:45 UTC (permalink / raw)
  To: 37160

During testing various guix commands on openSUSE Tumbleweed with the
openSUSE package, I found a strange error. This happens with guix 1.0.1
and d78bc23411 as openSUSE packages.

Steps to reproduce:
* Install Tumbleweed
$ sudo zypper install guix
$ sudo systemctl start guix-daemon
$ guix install nss-certs
$ export
SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
$ export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
$ guix lint --checkers=refresh hello
Backtrace:ello@2.10 [refresh]...
           8 (apply-smob/1 #<catch-closure 7f611c41c7c0>)
In ice-9/boot-9.scm:
    705:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  6 (_ #(#(#<directory (guile-user) 7f611c43b140>)))
In guix/ui.scm:
  1747:12  5 (run-guix-command _ . _)
In srfi/srfi-1.scm:
    640:9  4 (for-each #<procedure 7f611af598e0 at guix/scripts/lin…> …)
In guix/scripts/lint.scm:
   1152:4  3 (run-checkers #<package hello@2.10 gnu/packages/base.s…> …)
In srfi/srfi-1.scm:
    640:9  2 (for-each #<procedure 7f6110857820 at guix/scripts/lin…> …)
In guix/scripts/lint.scm:
    954:2  1 (check-for-updates #<package hello@2.10 gnu/packages/ba…>)
In ice-9/boot-9.scm:
    829:9  0 (catch srfi-34 #<procedure 7f611074a3c0 at guix/script…> …)

ice-9/boot-9.scm:829:9: In procedure catch:
Wrong type to apply: #f

Error does not occur when:
* guix is installed via the installer script 1.0.1
* guix is installed via the installer script and guix pulled to current
master
* package source doesn't gome from gnu mirror like 0xffff (github),
mate-system-monitor, dconf-editor...

The only difference I can see between guix binary and openSUSE's guix is
the first uses guile 2.2.4 and the second guile 2.2.6 (from Tumbleweed).

Some backtrace from guix repl:

scheme@(guix-user)> (use-modules (guix scripts lint))
scheme@(guix-user)> (guix-lint "--checkers=refresh" "hello")
ice-9/boot-9.scm:829:9: In procedure catch:
Wrong type to apply: #f

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [1]> ,bt
In srfi/srfi-1.scm:
    640:9  4 (for-each #<procedure 7fb9c718a560 at guix/scripts/lin…> …)
In guix/scripts/lint.scm:
   1152:4  3 (run-checkers #<package hello@2.10 gnu/packages/base.s…> …)
In srfi/srfi-1.scm:
    640:9  2 (for-each #<procedure 7fb9ba623b00 at guix/scripts/lin…> …)
In guix/scripts/lint.scm:
    954:2  1 (check-for-updates #<package hello@2.10 gnu/packages/ba…>)
In ice-9/boot-9.scm:
    829:9  0 (catch srfi-34 #<procedure 7fb9bd5321e0 at guix/script…> …)
scheme@(guix-user) [1]> ,locals
  Local variables:
  $1 = k = srfi-34
  $2 = thunk = #<procedure 7fb9bd5321e0 at guix/scripts/lint.scm:880:2…>
  $3 = handler = #<procedure 7fb9ba623740 at guix/scripts/lint.scm:880…>
  $4 = #f = #<thread-local-fluid 7fb9cb21d750>
scheme@(guix-user) [1]> ,up
In guix/scripts/lint.scm:
    954:2  1 (check-for-updates #<package hello@2.10 gnu/packages/ba…>)
scheme@(guix-user) [1]> ,locals
  Local variables:
  $5 = package = #<package hello@2.10 gnu/packages/base.scm:72 7fb9bce…>
  $6 = arg = #<procedure call-with-networking-fail-safe (message error…>
  $7 = box = #<variable 7fb9caecbd60 value: #<procedure 7fb9caec8ac0 a…>
  $8 = arg = #<procedure 7fb9caec8ac0 at ice-9/format.scm:1609:9 (dest…>
  $9 = arg = #f
  $10 = box = #<variable 7fb9cae898c0 value: #<procedure G_ (t-13c8acc…>
  $11 = tmp = "while retrieving upstream info for '~a'"
  $12 = arg = #<record-type <package>>
  $13 = box = #<variable 7fb9c9de61d0 value: #<record-type <package>>>
scheme@(guix-user) [1]> ,up
In srfi/srfi-1.scm:
    640:9  2 (for-each #<procedure 7fb9ba623b00 at guix/scripts/lin…> …)
scheme@(guix-user) [1]> ,locals
  Local variables:
  $19 = f = #<procedure 7fb9ba623b00 at guix/scripts/lint.scm:1152:14 …>
  $20 = l = (#<<lint-checker> name: refresh description: "Check the p…>)

To be honest I'm a bit lost here. If you have any ideas how to debug
this, please let my know.

Kind Regards
Jonathan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#37160: guix lint --checkers=refresh fails
  2019-08-23 14:45 bug#37160: guix lint --checkers=refresh fails Jonathan Brielmaier
@ 2019-08-27  9:44 ` Ludovic Courtès
  2019-08-27 10:27   ` Jonathan Brielmaier
  2019-08-27 10:29   ` quiliro
  0 siblings, 2 replies; 8+ messages in thread
From: Ludovic Courtès @ 2019-08-27  9:44 UTC (permalink / raw)
  To: Jonathan Brielmaier; +Cc: 37160

Hi Jonathan,

Jonathan Brielmaier <jonathan.brielmaier@web.de> skribis:

> During testing various guix commands on openSUSE Tumbleweed with the
> openSUSE package, I found a strange error. This happens with guix 1.0.1
> and d78bc23411 as openSUSE packages.

I cannot reproduce it on current master, on Guix System.

> Steps to reproduce:
> * Install Tumbleweed
> $ sudo zypper install guix
> $ sudo systemctl start guix-daemon
> $ guix install nss-certs
> $ export
> SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
> $ export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
> $ guix lint --checkers=refresh hello
> Backtrace:ello@2.10 [refresh]...
>            8 (apply-smob/1 #<catch-closure 7f611c41c7c0>)
> In ice-9/boot-9.scm:
>     705:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  6 (_ #(#(#<directory (guile-user) 7f611c43b140>)))
> In guix/ui.scm:
>   1747:12  5 (run-guix-command _ . _)
> In srfi/srfi-1.scm:
>     640:9  4 (for-each #<procedure 7f611af598e0 at guix/scripts/lin…> …)
> In guix/scripts/lint.scm:
>    1152:4  3 (run-checkers #<package hello@2.10 gnu/packages/base.s…> …)
> In srfi/srfi-1.scm:
>     640:9  2 (for-each #<procedure 7f6110857820 at guix/scripts/lin…> …)
> In guix/scripts/lint.scm:
>     954:2  1 (check-for-updates #<package hello@2.10 gnu/packages/ba…>)
> In ice-9/boot-9.scm:
>     829:9  0 (catch srfi-34 #<procedure 7f611074a3c0 at guix/script…> …)
>
> ice-9/boot-9.scm:829:9: In procedure catch:
> Wrong type to apply: #f

This backtrace is not from current master (there’s now a new (guix lint)
module.)  Could you post the backtrace for master?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#37160: guix lint --checkers=refresh fails
  2019-08-27  9:44 ` Ludovic Courtès
@ 2019-08-27 10:27   ` Jonathan Brielmaier
  2019-08-27 22:33     ` Ludovic Courtès
  2019-08-27 10:29   ` quiliro
  1 sibling, 1 reply; 8+ messages in thread
From: Jonathan Brielmaier @ 2019-08-27 10:27 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37160

On 27.08.19 11:44, Ludovic Courtès wrote:
> This backtrace is not from current master (there’s now a new (guix lint)
> module.)  Could you post the backtrace for master?

Backtrace on master (d78bc23411):

guix lint --checkers=refresh hello
Backtrace:ello@2.10 [refresh]...
           9 (apply-smob/1 #<catch-closure 7fcdabc0a560>)
In ice-9/boot-9.scm:
    705:2  8 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  7 (_ #(#(#<directory (guile-user) 7fcdabcb9140>)))
In guix/ui.scm:
  1692:12  6 (run-guix-command _ . _)
In srfi/srfi-1.scm:
    640:9  5 (for-each #<procedure 7fcdaa7e9500 at guix/scripts/lin…> …)
In guix/scripts/lint.scm:
     57:4  4 (run-checkers #<package hello@2.10 gnu/packages/base.s…> …)
In srfi/srfi-1.scm:
    640:9  3 (for-each #<procedure 7fcd9e787ba0 at guix/scripts/lin…> …)
In guix/scripts/lint.scm:
    64:17  2 (_ _)
In guix/lint.scm:
   1010:2  1 (check-for-updates #<package hello@2.10 gnu/packages/ba…>)
In ice-9/boot-9.scm:
    829:9  0 (catch srfi-34 #<procedure 7fcd9f2c0390 at guix/lint.s…> …)

ice-9/boot-9.scm:829:9: In procedure catch:
Wrong type to apply: #f

It's slightly different then on 1.0.1 (now at guix/lint.scm), but the
error seems to be the same.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#37160: guix lint --checkers=refresh fails
  2019-08-27  9:44 ` Ludovic Courtès
  2019-08-27 10:27   ` Jonathan Brielmaier
@ 2019-08-27 10:29   ` quiliro
  2019-08-27 12:51     ` Jonathan Brielmaier
  1 sibling, 1 reply; 8+ messages in thread
From: quiliro @ 2019-08-27 10:29 UTC (permalink / raw)
  To: Jonathan Brielmaier, 37160


> Jonathan Brielmaier <jonathan.brielmaier@web.de> skribis:
>
>> During testing various guix commands on openSUSE Tumbleweed with the
>> openSUSE package, I found a strange error. This happens with guix 1.0.1
>> and d78bc23411 as openSUSE packages.
>
>
>> Steps to reproduce:
>> * Install Tumbleweed
>> $ sudo zypper install guix
>> $ sudo systemctl start guix-daemon

Why don't you 'guix pull' before the next step ?

>> $ guix install nss-certs
>> $ export
>> SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
>> $ export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
>> $ guix lint --checkers=refresh hello
>> Backtrace:ello@2.10 [refresh]...
>>            8 (apply-smob/1 #<catch-closure 7f611c41c7c0>)
>> In ice-9/boot-9.scm:
>>     705:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
>> In ice-9/eval.scm:
>>     619:8  6 (_ #(#(#<directory (guile-user) 7f611c43b140>)))
>> In guix/ui.scm:
>>   1747:12  5 (run-guix-command _ . _)
>> In srfi/srfi-1.scm:
>>     640:9  4 (for-each #<procedure 7f611af598e0 at guix/scripts/lin…> …)
>> In guix/scripts/lint.scm:
>>    1152:4  3 (run-checkers #<package hello@2.10 gnu/packages/base.s…> …)
>> In srfi/srfi-1.scm:
>>     640:9  2 (for-each #<procedure 7f6110857820 at guix/scripts/lin…> …)
>> In guix/scripts/lint.scm:
>>     954:2  1 (check-for-updates #<package hello@2.10 gnu/packages/ba…>)
>> In ice-9/boot-9.scm:
>>     829:9  0 (catch srfi-34 #<procedure 7f611074a3c0 at guix/script…> …)
>>
>> ice-9/boot-9.scm:829:9: In procedure catch:
>> Wrong type to apply: #f

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#37160: guix lint --checkers=refresh fails
  2019-08-27 10:29   ` quiliro
@ 2019-08-27 12:51     ` Jonathan Brielmaier
  2019-08-27 12:59       ` quiliro
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Brielmaier @ 2019-08-27 12:51 UTC (permalink / raw)
  To: quiliro, 37160

On 27.08.19 12:29, quiliro@riseup.net wrote:
>
>> Jonathan Brielmaier <jonathan.brielmaier@web.de> skribis:
>>
>>> During testing various guix commands on openSUSE Tumbleweed with the
>>> openSUSE package, I found a strange error. This happens with guix 1.0.1
>>> and d78bc23411 as openSUSE packages.
>>
>>
>>> Steps to reproduce:
>>> * Install Tumbleweed
>>> $ sudo zypper install guix
>>> $ sudo systemctl start guix-daemon
>
> Why don't you 'guix pull' before the next step ?

Because I use an openSUSE packages which gets regulary built from
current master commit of guix. So I don't need guix pull :)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#37160: guix lint --checkers=refresh fails
  2019-08-27 12:51     ` Jonathan Brielmaier
@ 2019-08-27 12:59       ` quiliro
  0 siblings, 0 replies; 8+ messages in thread
From: quiliro @ 2019-08-27 12:59 UTC (permalink / raw)
  To: Jonathan Brielmaier; +Cc: 37160

El Mar, 27 de Agosto de 2019, 7:51 am, Jonathan Brielmaier escribió:
> On 27.08.19 12:29, quiliro@riseup.net wrote:
>>
>>> Jonathan Brielmaier <jonathan.brielmaier@web.de> skribis:
>>>
>>>> During testing various guix commands on openSUSE Tumbleweed with the
>>>> openSUSE package, I found a strange error. This happens with guix
>>>> 1.0.1
>>>> and d78bc23411 as openSUSE packages.
>>>
>>>
>>>> Steps to reproduce:
>>>> * Install Tumbleweed
>>>> $ sudo zypper install guix
>>>> $ sudo systemctl start guix-daemon
>>
>> Why don't you 'guix pull' before the next step ?
>
> Because I use an openSUSE packages which gets regulary built from
> current master commit of guix. So I don't need guix pull :)

Oh! Thank you for the information I did not know that was available. It
sounds like a good thing.

I am not sure about this, but (just in case) would you please test guix
pull and then verify if the error comes up again? Then we could compare.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#37160: guix lint --checkers=refresh fails
  2019-08-27 10:27   ` Jonathan Brielmaier
@ 2019-08-27 22:33     ` Ludovic Courtès
  2019-08-28  9:36       ` Jonathan Brielmaier
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2019-08-27 22:33 UTC (permalink / raw)
  To: Jonathan Brielmaier; +Cc: 37160

Hi,

Jonathan Brielmaier <jonathan.brielmaier@web.de> skribis:

> guix lint --checkers=refresh hello
> Backtrace:ello@2.10 [refresh]...
>            9 (apply-smob/1 #<catch-closure 7fcdabc0a560>)
> In ice-9/boot-9.scm:
>     705:2  8 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  7 (_ #(#(#<directory (guile-user) 7fcdabcb9140>)))
> In guix/ui.scm:
>   1692:12  6 (run-guix-command _ . _)
> In srfi/srfi-1.scm:
>     640:9  5 (for-each #<procedure 7fcdaa7e9500 at guix/scripts/lin…> …)
> In guix/scripts/lint.scm:
>      57:4  4 (run-checkers #<package hello@2.10 gnu/packages/base.s…> …)
> In srfi/srfi-1.scm:
>     640:9  3 (for-each #<procedure 7fcd9e787ba0 at guix/scripts/lin…> …)
> In guix/scripts/lint.scm:
>     64:17  2 (_ _)
> In guix/lint.scm:
>    1010:2  1 (check-for-updates #<package hello@2.10 gnu/packages/ba…>)
> In ice-9/boot-9.scm:
>     829:9  0 (catch srfi-34 #<procedure 7fcd9f2c0390 at guix/lint.s…> …)
>
> ice-9/boot-9.scm:829:9: In procedure catch:
> Wrong type to apply: #f

I think commit 58d5f280a36e1cfddfa999d320c285726d8a8bc1 fixes it,
doesn’t it?  :-)

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#37160: guix lint --checkers=refresh fails
  2019-08-27 22:33     ` Ludovic Courtès
@ 2019-08-28  9:36       ` Jonathan Brielmaier
  0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Brielmaier @ 2019-08-28  9:36 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37160

On 28.08.19 00:33, Ludovic Courtès wrote:
> Hi,
>
> Jonathan Brielmaier <jonathan.brielmaier@web.de> skribis:
>
>> guix lint --checkers=refresh hello
>> Backtrace:ello@2.10 [refresh]...
>>            9 (apply-smob/1 #<catch-closure 7fcdabc0a560>)
>> In ice-9/boot-9.scm:
>>     705:2  8 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
>> In ice-9/eval.scm:
>>     619:8  7 (_ #(#(#<directory (guile-user) 7fcdabcb9140>)))
>> In guix/ui.scm:
>>   1692:12  6 (run-guix-command _ . _)
>> In srfi/srfi-1.scm:
>>     640:9  5 (for-each #<procedure 7fcdaa7e9500 at guix/scripts/lin…> …)
>> In guix/scripts/lint.scm:
>>      57:4  4 (run-checkers #<package hello@2.10 gnu/packages/base.s…> …)
>> In srfi/srfi-1.scm:
>>     640:9  3 (for-each #<procedure 7fcd9e787ba0 at guix/scripts/lin…> …)
>> In guix/scripts/lint.scm:
>>     64:17  2 (_ _)
>> In guix/lint.scm:
>>    1010:2  1 (check-for-updates #<package hello@2.10 gnu/packages/ba…>)
>> In ice-9/boot-9.scm:
>>     829:9  0 (catch srfi-34 #<procedure 7fcd9f2c0390 at guix/lint.s…> …)
>>
>> ice-9/boot-9.scm:829:9: In procedure catch:
>> Wrong type to apply: #f
>
> I think commit 58d5f280a36e1cfddfa999d320c285726d8a8bc1 fixes it,
> doesn’t it?  :-)

My package is now on2f57fa10f4, so includes your commit. But the error
still looks very similar:

$ guix lint --checkers=refresh hello
Backtrace:ello@2.10 [refresh]...
           9 (apply-smob/1 #<catch-closure 7fcbddeb4800>)
In ice-9/boot-9.scm:
    705:2  8 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  7 (_ #(#(#<directory (guile-user) 7fcbddf82140>)))
In guix/ui.scm:
  1692:12  6 (run-guix-command _ . _)
In srfi/srfi-1.scm:
    640:9  5 (for-each #<procedure 7fcbdbe8b0a0 at guix/scripts/lin…> …)
In guix/scripts/lint.scm:
     57:4  4 (run-checkers #<package hello@2.10 gnu/packages/base.s…> …)
In srfi/srfi-1.scm:
    640:9  3 (for-each #<procedure 7fcbd3b8ca80 at guix/scripts/lin…> …)
In guix/scripts/lint.scm:
    64:17  2 (_ _)
In guix/lint.scm:
   1010:2  1 (check-for-updates #<package hello@2.10 gnu/packages/ba…>)
In ice-9/boot-9.scm:
    829:9  0 (catch srfi-34 #<procedure 7fcbd3943e10 at guix/lint.s…> …)

ice-9/boot-9.scm:829:9: In procedure catch:
Wrong type to apply: #f

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-08-28  9:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-23 14:45 bug#37160: guix lint --checkers=refresh fails Jonathan Brielmaier
2019-08-27  9:44 ` Ludovic Courtès
2019-08-27 10:27   ` Jonathan Brielmaier
2019-08-27 22:33     ` Ludovic Courtès
2019-08-28  9:36       ` Jonathan Brielmaier
2019-08-27 10:29   ` quiliro
2019-08-27 12:51     ` Jonathan Brielmaier
2019-08-27 12:59       ` quiliro

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).