GNU bug report logs - #64734
Recursive hackage import fails

Previous Next

Package: guix;

Reported by: Saku Laesvuori <saku <at> laesvuori.fi>

Date: Wed, 19 Jul 2023 20:13:02 UTC

Severity: normal

Done: Saku Laesvuori <saku <at> laesvuori.fi>

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 64734 in the body.
You can then email your comments to 64734 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#64734; Package guix. (Wed, 19 Jul 2023 20:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Saku Laesvuori <saku <at> laesvuori.fi>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 19 Jul 2023 20:13:02 GMT) Full text and rfc822 format available.

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

From: Saku Laesvuori <saku <at> laesvuori.fi>
To: bug-guix <at> gnu.org
Subject: Recursive hackage import fails
Date: Wed, 19 Jul 2023 23:12:03 +0300
[Message part 1 (text/plain, inline)]
Importing hackage packages recursively fails with similar error to this:

```
$ guix import hackage linear-generics --recursive
Backtrace:
          11 (primitive-load "/home/saku/.config/guix/current/bin/gu…")
In guix/ui.scm:
   2309:7 10 (run-guix . _)
  2272:10  9 (run-guix-command _ . _)
In guix/scripts/import.scm:
    90:11  8 (guix-import . _)
In guix/scripts/import/hackage.scm:
   129:26  7 (guix-import-hackage . _)
In guix/import/utils.scm:
    651:3  6 (recursive-import _ #:repo->guix-package _ #:guix-name . #)
   613:31  5 (topological-sort _ #<procedure 7f8f515f4720 at guix/i…> …)
   655:29  4 (_ _)
In unknown file:
           3 (remove #<procedure 7f8f51610ce0 at guix/import/utils.…> …)
In guix/import/utils.scm:
   635:39  2 (exists? #<<upstream-input> name: "th-abstraction" dow…> …)
In guix/import/hackage.scm:
    128:6  1 (hackage-name->package-name #<<upstream-input> name: "t…>)
In unknown file:
           0 (string-prefix? "ghc-" #<<upstream-input> name: "th-ab…> …)

ERROR: In procedure string-prefix?:
In procedure string-prefix?: Wrong type argument in position 2 (expecting string): #<<upstream-input> name: "th-abstraction" downstream-name: "ghc-th-abstraction" type: regular min-version: any max-version: any>

```

I tried to find out what passes the `upstream-input` to
`hackage-name->package-name`, but only found out with `pk` that it seems
to only happen with the recursed dependencies and not with the root
package. I also tried to make `hackage-name->package-name` accept
`upstream-input` records but that a new error, so I assume the issue is
that something in the importer is returning `upstream-input` records
when it should return package names.

I could try to debug this further but I don't feel like I know enough
about debugging with guile nor about debugging scheme.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#64734; Package guix. (Sat, 25 May 2024 07:40:01 GMT) Full text and rfc822 format available.

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

From: Lars-Dominik Braun <lars <at> 6xq.net>
To: Saku Laesvuori <saku <at> laesvuori.fi>
Cc: 64734 <at> debbugs.gnu.org
Subject: Re: Recursive hackage import fails
Date: Sat, 25 May 2024 09:38:49 +0200
Hi,

> $ guix import hackage linear-generics --recursive

have you ever figured out what caused this? I cannot reproduce it
currently – probably because ghc-th-abstraction is part of Guix already
and no recursion actually happens.

Lars





Information forwarded to bug-guix <at> gnu.org:
bug#64734; Package guix. (Mon, 27 May 2024 06:13:02 GMT) Full text and rfc822 format available.

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

From: Saku Laesvuori <saku <at> laesvuori.fi>
To: Lars-Dominik Braun <lars <at> 6xq.net>
Cc: 64734 <at> debbugs.gnu.org
Subject: Re: Recursive hackage import fails
Date: Mon, 27 May 2024 09:12:45 +0300
[Message part 1 (text/plain, inline)]
> Hi,
> 
> > $ guix import hackage linear-generics --recursive
> 
> have you ever figured out what caused this?

Yes, I fixed it in https://issues.guix.gnu.org/67564 so this issue can
now be closed.

- Saku
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#64734; Package guix. (Mon, 27 May 2024 06:17:02 GMT) Full text and rfc822 format available.

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

From: Saku Laesvuori <saku <at> laesvuori.fi>
To: control <at> debbugs.gnu.org
Cc: Lars-Dominik Braun <lars <at> 6xq.net>, 64734 <at> debbugs.gnu.org
Subject: Re: Recursive hackage import fails
Date: Mon, 27 May 2024 09:16:36 +0300
[Message part 1 (text/plain, inline)]
close 64734
thanks
[signature.asc (application/pgp-signature, inline)]

bug closed, send any further explanations to 64734 <at> debbugs.gnu.org and Saku Laesvuori <saku <at> laesvuori.fi> Request was from Saku Laesvuori <saku <at> laesvuori.fi> to control <at> debbugs.gnu.org. (Mon, 27 May 2024 06:17: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. (Mon, 24 Jun 2024 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 358 days ago.

Previous Next


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