GNU bug report logs - #36456
Guix stumbles on duplicates?

Previous Next

Package: guix;

Reported by: swedebugia <swedebugia <at> riseup.net>

Date: Mon, 1 Jul 2019 08:39:02 UTC

Severity: normal

Tags: notabug

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 36456 in the body.
You can then email your comments to 36456 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#36456; Package guix. (Mon, 01 Jul 2019 08:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to swedebugia <swedebugia <at> riseup.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 01 Jul 2019 08:39:02 GMT) Full text and rfc822 format available.

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

From: swedebugia <swedebugia <at> riseup.net>
To: Report new Guix bug <bug-guix <at> gnu.org>
Subject: Guix stumbles on duplicates?
Date: Mon, 1 Jul 2019 10:38:15 +0200
Hi

Yesterday Arne posted a list of 1000 crates-io packages to the devel list.

When I inserted them in my 200+ crates-io.scm I got this error when 
trying to build rust-backtrace:

$ ./pre-inst-env guix build rust-backtrace
Backtrace:
In guix/scripts/build.scm:
    902:6 19 (_)
In guix/status.scm:
    768:4 18 (call-with-status-report _ _)
In guix/store.scm:
   623:10 17 (call-with-store _)
In guix/scripts/build.scm:
   909:26 16 (_ #<store-connection 256.99 2726f00>)
In ice-9/boot-9.scm:
    829:9 15 (catch unbound-variable #<procedure 260ac80 at guix/ui…> …)
In guix/ui.scm:
    382:6 14 (_)
In guix/scripts/build.scm:
    874:5 13 (_)
In srfi/srfi-1.scm:
   679:15 12 (append-map _ _ . _)
   592:17 11 (map1 ("x86_64-linux"))
   679:15 10 (append-map _ _ . _)
   592:17  9 (map1 (#<package rust-backtrace <at> 0.3.32 /home/user/src/…>))
In guix/scripts/build.scm:
   835:18  8 (_ _)
In guix/packages.scm:
   936:16  7 (cache! #<weak-table 0/113> #<package rust-backtrace <at> 0…> …)
  1254:22  6 (thunk)
   936:16  5 (cache! #<weak-table 0/223> #<package rust-backtrace <at> 0…> …)
  1038:19  4 (thunk)
In guix/build-system/cargo.scm:
   260:27  3 (lower "rust-backtrace-0.3.32" #:source _ #:inputs _ # . #)
    231:4  2 (expand-crate-sources _ _)
   170:23  1 (crate-closure _)
    128:4  0 (_ #:cargo-inputs _)

guix/build-system/cargo.scm:128:4: Invalid keyword: ("rust-lazy-static" 
#<package rust-lazy-static <at> 1.3.0 
/home/user/src/guix/gnu/packages/crates-io.scm:98 3690d10>)

I tried building rust-lazy-static and it build fine and said:
successfully built 
/gnu/store/0z3giv8ba2383zqaz6m7ayyixhm2jicf-rust-lazy-static-1.3.0.drv
/gnu/store/ssw3gh2ydw1bwp01r6z9sgy2i1zsq1q0-rust-lazy-static-1.3.0

I narrowed it down by inserting smaller and smaller fragments of arnes 
list of packages and this one package (the last in the crates-io.scm) 
causes the error:

(define-public rust-redox-termios 


  (package 


    (name "rust-redox-termios") 


    (version "0.1.1") 


    (source 


     (origin 


       (method url-fetch) 


       (uri (crate-uri "redox_termios" version)) 


       (file-name 


        (string-append name "-" version ".tar.gz")) 


       (sha256 


        (base32 


         "0xhgvdh62mymgdl3jqrngl8hr4i8xwpnbsxnldq0l47993z1r2by")))) 


    (build-system cargo-build-system) 


    (arguments 


     `(#:cargo-inputs 


       (("rust-redox-syscall" ,rust-redox-syscall)))) 


    (home-page "https://github.com/redox-os/termios") 


    (synopsis 


     "A Rust library to access Redox termios functions") 


    (description 


     "This package provides a Rust library to access Redox termios 
functions") 

    (license #f)))

When it is commented out guix says:

$ ./pre-inst-env guix build rust-backtrace
ice-9/eval.scm:223:20: In procedure proc:
error: rust-redox-termios: unbound variable
hint: Did you forget `(use-modules (gnu packages rust))'?

this happens on a guix git pulled && maked yesterday @
Git checkout:
  repository: /home/egil/src/guix
  branch: master
  commit: a3d1a3487a34820d2a0b3d5e6206e4df1c77c15c

My rust is this (from tobias' CI-server @ guix.tobias.gr):
    /gnu/store/s89kb99c07wvyxjcq3rc6aap8rkcfwqx-rust-1.35.0-cargo
   /gnu/store/2dc71v5jlbd6rpz7qx04iyzwl7kcqrjm-rust-1.35.0

-- 
Cheers Swedebugia




Information forwarded to bug-guix <at> gnu.org:
bug#36456; Package guix. (Mon, 01 Jul 2019 09:03:01 GMT) Full text and rfc822 format available.

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

From: swedebugia <swedebugia <at> riseup.net>
To: bug-guix <at> gnu.org
Subject: Re: bug#36456: Guix stumbles on duplicates?
Date: Mon, 1 Jul 2019 11:01:06 +0200
[Message part 1 (text/plain, inline)]
On 2019-07-01 10:38, swedebugia wrote:
> Hi
> 
> Yesterday Arne posted a list of 1000 crates-io packages to the devel list.
> 
> When I inserted them in my 200+ crates-io.scm I got this error when 
> trying to build rust-backtrace:
> 
> $ ./pre-inst-env guix build rust-backtrace
> Backtrace:
> In guix/scripts/build.scm:
>      902:6 19 (_)
> In guix/status.scm:
>      768:4 18 (call-with-status-report _ _)
> In guix/store.scm:
>     623:10 17 (call-with-store _)
> In guix/scripts/build.scm:
>     909:26 16 (_ #<store-connection 256.99 2726f00>)
> In ice-9/boot-9.scm:
>      829:9 15 (catch unbound-variable #<procedure 260ac80 at guix/ui…> …)
> In guix/ui.scm:
>      382:6 14 (_)
> In guix/scripts/build.scm:
>      874:5 13 (_)
> In srfi/srfi-1.scm:
>     679:15 12 (append-map _ _ . _)
>     592:17 11 (map1 ("x86_64-linux"))
>     679:15 10 (append-map _ _ . _)
>     592:17  9 (map1 (#<package rust-backtrace <at> 0.3.32 /home/user/src/…>))
> In guix/scripts/build.scm:
>     835:18  8 (_ _)
> In guix/packages.scm:
>     936:16  7 (cache! #<weak-table 0/113> #<package rust-backtrace <at> 0…> …)
>    1254:22  6 (thunk)
>     936:16  5 (cache! #<weak-table 0/223> #<package rust-backtrace <at> 0…> …)
>    1038:19  4 (thunk)
> In guix/build-system/cargo.scm:
>     260:27  3 (lower "rust-backtrace-0.3.32" #:source _ #:inputs _ # . #)
>      231:4  2 (expand-crate-sources _ _)
>     170:23  1 (crate-closure _)
>      128:4  0 (_ #:cargo-inputs _)
> 
> guix/build-system/cargo.scm:128:4: Invalid keyword: ("rust-lazy-static" 
> #<package rust-lazy-static <at> 1.3.0 
> /home/user/src/guix/gnu/packages/crates-io.scm:98 3690d10>)
> 
> I tried building rust-lazy-static and it build fine and said:
> successfully built 
> /gnu/store/0z3giv8ba2383zqaz6m7ayyixhm2jicf-rust-lazy-static-1.3.0.drv
> /gnu/store/ssw3gh2ydw1bwp01r6z9sgy2i1zsq1q0-rust-lazy-static-1.3.0
> 
> I narrowed it down by inserting smaller and smaller fragments of arnes 
> list of packages and this one package (the last in the crates-io.scm) 
> causes the error:
> 
> (define-public rust-redox-termios
> 
>    (package
> 
>      (name "rust-redox-termios")
> 
>      (version "0.1.1")
> 
>      (source
> 
>       (origin
> 
>         (method url-fetch)
> 
>         (uri (crate-uri "redox_termios" version))
> 
>         (file-name
> 
>          (string-append name "-" version ".tar.gz"))
> 
>         (sha256
> 
>          (base32
> 
>           "0xhgvdh62mymgdl3jqrngl8hr4i8xwpnbsxnldq0l47993z1r2by"))))
> 
>      (build-system cargo-build-system)
> 
>      (arguments
> 
>       `(#:cargo-inputs
> 
>         (("rust-redox-syscall" ,rust-redox-syscall))))
> 
>      (home-page "https://github.com/redox-os/termios")
> 
>      (synopsis
> 
>       "A Rust library to access Redox termios functions")
> 
>      (description
> 
>       "This package provides a Rust library to access Redox termios 
> functions")
>      (license #f)))
> 
> When it is commented out guix says:
> 
> $ ./pre-inst-env guix build rust-backtrace
> ice-9/eval.scm:223:20: In procedure proc:
> error: rust-redox-termios: unbound variable
> hint: Did you forget `(use-modules (gnu packages rust))'?
> 
> this happens on a guix git pulled && maked yesterday @
> Git checkout:
>    repository: /home/egil/src/guix
>    branch: master
>    commit: a3d1a3487a34820d2a0b3d5e6206e4df1c77c15c
> 
> My rust is this (from tobias' CI-server @ guix.tobias.gr):
>      /gnu/store/s89kb99c07wvyxjcq3rc6aap8rkcfwqx-rust-1.35.0-cargo
>     /gnu/store/2dc71v5jlbd6rpz7qx04iyzwl7kcqrjm-rust-1.35.0
> 

crates-io.scm attached.

-- 
Cheers Swedebugia
[crates-io.scm (text/x-scheme, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#36456; Package guix. (Mon, 01 Jul 2019 21:42:01 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: swedebugia <swedebugia <at> riseup.net>
Cc: 36456 <at> debbugs.gnu.org
Subject: Re: bug#36456: Guix stumbles on duplicates?
Date: Mon, 01 Jul 2019 21:54:36 +0200
Hi swedebugia,

I don’t understand the bug you are reporting.  What duplicates are you
referring to?  How can I reproduce this bug?

> guix/build-system/cargo.scm:128:4: Invalid keyword:
> ("rust-lazy-static" #<package rust-lazy-static <at> 1.3.0
> /home/user/src/guix/gnu/packages/crates-io.scm:98 3690d10>)

What’s the code at the reported line?

-- 
Ricardo





Information forwarded to bug-guix <at> gnu.org:
bug#36456; Package guix. (Tue, 02 Jul 2019 09:31:02 GMT) Full text and rfc822 format available.

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

From: swedebugia <swedebugia <at> riseup.net>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 36456 <at> debbugs.gnu.org
Subject: Re: bug#36456: Guix stumbles on duplicates?
Date: Tue, 2 Jul 2019 11:30:52 +0200
On 2019-07-01 21:54, Ricardo Wurmus wrote:
> 
> Hi swedebugia,
> 
> I don’t understand the bug you are reporting.  What duplicates are you
> referring to?  How can I reproduce this bug?

I sent the whole crates-io.scm to the bug-adress which you can use to 
reproduce.

The duplicates in that file are a lot of double imported crates by arne. 
I'm pruning the duplicates by hand right now and building some of the 
most referenced packages (like rust-rand) with some degree of success.

The error reported only arises with arnes duplicates added to my own 
~200 imported crates.

> 
>> guix/build-system/cargo.scm:128:4: Invalid keyword:
>> ("rust-lazy-static" #<package rust-lazy-static <at> 1.3.0
>> /home/user/src/guix/gnu/packages/crates-io.scm:98 3690d10>)
> 
> What’s the code at the reported line?
> 

(define-public rust-lazy-static 


  (package 


    (name "rust-lazy-static")     <--- line 98 



    (version "1.3.0") 


    (source 


      (origin 


        (method url-fetch) 


        (uri (crate-uri "lazy_static" version)) 


        (file-name 


          (string-append name "-" version ".tar.gz")) 


        (sha256 


          (base32 


            "052ac27w189hrf1j3hz7sga46rp84zl2hqnzyihxv78mgzr2jmxw")))) 


    (build-system cargo-build-system) 


    (arguments 


      `(#:cargo-inputs (("rust-spin" ,rust-spin)))) 


    (home-page 


      "https://github.com/rust-lang-nursery/lazy-static.rs") 


    (synopsis 


      "A macro for declaring lazily evaluated statics in Rust.") 


    (description 


      "This package provides a macro for declaring lazily evaluated 
statics in Rust.") 

    (license #f)))

-- 
Cheers Swedebugia




Information forwarded to bug-guix <at> gnu.org:
bug#36456; Package guix. (Fri, 05 Jul 2019 21:34:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: swedebugia <swedebugia <at> riseup.net>
Cc: 36456 <at> debbugs.gnu.org
Subject: Re: bug#36456: Guix stumbles on duplicates?
Date: Fri, 05 Jul 2019 23:33:40 +0200
Hi swedebugia,

swedebugia <swedebugia <at> riseup.net> skribis:

> In guix/build-system/cargo.scm:
>    260:27  3 (lower "rust-backtrace-0.3.32" #:source _ #:inputs _ # . #)
>     231:4  2 (expand-crate-sources _ _)
>    170:23  1 (crate-closure _)
>     128:4  0 (_ #:cargo-inputs _)
>
> guix/build-system/cargo.scm:128:4: Invalid keyword:
> ("rust-lazy-static" #<package rust-lazy-static <at> 1.3.0
> /home/user/src/guix/gnu/packages/crates-io.scm:98 3690d10>)

This is Guile’s way of saying that you passed an arbitrary value where a
keyword was expected, as in this example:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ((lambda* (x #:key foo) (list x foo)) 1 2)
<unnamed port>:1209:1: Invalid keyword: 2
--8<---------------cut here---------------end--------------->8---

IOW, the error is in the ‘arguments’ field of this rust-backtrace-0.3.32
package.

HTH!

Ludo’.




Added tag(s) notabug. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 05 Jul 2019 21:35:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 36456 <at> debbugs.gnu.org and swedebugia <swedebugia <at> riseup.net> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 05 Jul 2019 21:35: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. (Sat, 03 Aug 2019 11:24:06 GMT) Full text and rfc822 format available.

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

Previous Next


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