unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* guix import hackage fails with errors, and failed tests
@ 2021-03-23 22:54 c4t0
  2021-03-24 15:13 ` c4t0
  2021-03-24 16:58 ` zimoun
  0 siblings, 2 replies; 9+ messages in thread
From: c4t0 @ 2021-03-23 22:54 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1693 bytes --]


Hi!

I'm having problems with 'guix import' in my environment:
$guix import hackage -t ghc-events
Syntax error: unexpected token : common (at line 44, column 0)
Syntax error: unexpected end of input
guix import: error: failed to download cabal file for package 'ghc-events'

so I cloned guix, and:

guix environment guix --pure --ad-hoc help2man git strace --container
make check TESTS=tests/hackage.scm

(I need to add --container for a problem that I address in another
email, can be ignored)

I found that two tests are failing with similar error:

Syntax error: unexpected token : (ghc-options (-Wall)) (at line 11, column 2)
Syntax error: unexpected end of input

;;; (fail #f #f)
test-name: hackage->guix-package test mixed layout
location: ./tests/hackage.scm:295
source:
+ (test-assert
+   "hackage->guix-package test mixed layout"
+   (eval-test-with-cabal
+     test-cabal-mixed-layout
+     match-ghc-foo))
actual-value: #f
result: XFAIL

Syntax error: unexpected token : (buildable (False)) (at line 12, column 4)
Syntax error: unexpected end of input

;;; (fail #f #f)
test-name: hackage->guix-package test flag executable
location: ./tests/hackage.scm:322
source:
+ (test-assert
+   "hackage->guix-package test flag executable"
+   (eval-test-with-cabal
+     test-cabal-flag-executable
+     match-ghc-foo))
actual-value: #f
result: XFAIL

I'm using guix 5f9b28b231e17749d14a1b95ae9cad68d7315a1e on top of and
old ubuntu, with all packages upgraded.

How can I start a debugger?

I tried several variations of:

guile -l scripts/guix
and then
(main '("import" "hackage" "ghc-events"))

with out success.

I'm interested in checking the tests and the package that fails.

COD.


[-- Attachment #2: hackage.log --]
[-- Type: application/octet-stream, Size: 7114 bytes --]


Starting download of /tmp/guix-file.DXOaUI
From https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz...
In procedure getaddrinfo: Servname not supported for ai_socktype
failed to download "/tmp/guix-file.DXOaUI" from "https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz"
test-name: hackage->guix-package test 1
location: /home/catriel/guix/git/guix/tests/hackage.scm:192
source:
+ (test-assert
+   "hackage->guix-package test 1"
+   (eval-test-with-cabal test-cabal-1 match-ghc-foo))
actual-value: #t
result: PASS


Starting download of /tmp/guix-file.0FktLK
From https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz...
In procedure getaddrinfo: Servname not supported for ai_socktype
failed to download "/tmp/guix-file.0FktLK" from "https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz"
test-name: hackage->guix-package test 2
location: /home/catriel/guix/git/guix/tests/hackage.scm:195
source:
+ (test-assert
+   "hackage->guix-package test 2"
+   (eval-test-with-cabal test-cabal-2 match-ghc-foo))
actual-value: #t
result: PASS


Starting download of /tmp/guix-file.oFe2VJ
From https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz...
In procedure getaddrinfo: Servname not supported for ai_socktype
failed to download "/tmp/guix-file.oFe2VJ" from "https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz"
test-name: hackage->guix-package test 3
location: /home/catriel/guix/git/guix/tests/hackage.scm:198
source:
+ (test-assert
+   "hackage->guix-package test 3"
+   (eval-test-with-cabal
+     test-cabal-3
+     match-ghc-foo
+     #:cabal-environment
+     '(("impl" . "ghc-7.8"))))
actual-value: #t
result: PASS


Starting download of /tmp/guix-file.LeWYkH
From https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz...
In procedure getaddrinfo: Servname not supported for ai_socktype
failed to download "/tmp/guix-file.LeWYkH" from "https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz"
test-name: hackage->guix-package test 4
location: /home/catriel/guix/git/guix/tests/hackage.scm:202
source:
+ (test-assert
+   "hackage->guix-package test 4"
+   (eval-test-with-cabal
+     test-cabal-4
+     match-ghc-foo
+     #:cabal-environment
+     '(("impl" . "ghc-7.8"))))
actual-value: #t
result: PASS


Starting download of /tmp/guix-file.9yIwGG
From https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz...
In procedure getaddrinfo: Servname not supported for ai_socktype
failed to download "/tmp/guix-file.9yIwGG" from "https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz"
test-name: hackage->guix-package test 5
location: /home/catriel/guix/git/guix/tests/hackage.scm:206
source:
+ (test-assert
+   "hackage->guix-package test 5"
+   (eval-test-with-cabal
+     test-cabal-5
+     match-ghc-foo
+     #:cabal-environment
+     '(("impl" . "ghc-7.8"))))
actual-value: #t
result: PASS


Starting download of /tmp/guix-file.ulh8bJ
From https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz...
In procedure getaddrinfo: Servname not supported for ai_socktype
failed to download "/tmp/guix-file.ulh8bJ" from "https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz"
test-name: hackage->guix-package test 6
location: /home/catriel/guix/git/guix/tests/hackage.scm:237
source:
+ (test-assert
+   "hackage->guix-package test 6"
+   (eval-test-with-cabal
+     test-cabal-6
+     match-ghc-foo-6))
actual-value: #t
result: PASS


Starting download of /tmp/guix-file.7B8uFK
From https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz...
In procedure getaddrinfo: Servname not supported for ai_socktype
failed to download "/tmp/guix-file.7B8uFK" from "https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz"
test-name: hackage->guix-package test multiline desc (layout)
location: /home/catriel/guix/git/guix/tests/hackage.scm:255
source:
+ (test-assert
+   "hackage->guix-package test multiline desc (layout)"
+   (eval-test-with-cabal
+     test-cabal-multiline-layout
+     match-ghc-foo))
actual-value: #t
result: PASS


Starting download of /tmp/guix-file.IOHWEK
From https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz...
In procedure getaddrinfo: Servname not supported for ai_socktype
failed to download "/tmp/guix-file.IOHWEK" from "https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz"
test-name: hackage->guix-package test multiline desc (braced)
location: /home/catriel/guix/git/guix/tests/hackage.scm:275
source:
+ (test-assert
+   "hackage->guix-package test multiline desc (braced)"
+   (eval-test-with-cabal
+     test-cabal-multiline-braced
+     match-ghc-foo))
actual-value: #t
result: PASS

Syntax error: unexpected token : (ghc-options (-Wall)) (at line 11, column 2)
Syntax error: unexpected end of input

;;; (fail #f #f)
test-name: hackage->guix-package test mixed layout
location: /home/catriel/guix/git/guix/tests/hackage.scm:295
source:
+ (test-assert
+   "hackage->guix-package test mixed layout"
+   (eval-test-with-cabal
+     test-cabal-mixed-layout
+     match-ghc-foo))
actual-value: #f
result: XFAIL

Syntax error: unexpected token : (buildable (False)) (at line 12, column 4)
Syntax error: unexpected end of input

;;; (fail #f #f)
test-name: hackage->guix-package test flag executable
location: /home/catriel/guix/git/guix/tests/hackage.scm:322
source:
+ (test-assert
+   "hackage->guix-package test flag executable"
+   (eval-test-with-cabal
+     test-cabal-flag-executable
+     match-ghc-foo))
actual-value: #f
result: XFAIL


Starting download of /tmp/guix-file.Jz5fyG
From https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz...
In procedure getaddrinfo: Servname not supported for ai_socktype
failed to download "/tmp/guix-file.Jz5fyG" from "https://hackage.haskell.org/package/foo/foo-1.0.0.tar.gz"
test-name: hackage->guix-package test cabal revision
location: /home/catriel/guix/git/guix/tests/hackage.scm:367
source:
+ (test-assert
+   "hackage->guix-package test cabal revision"
+   (eval-test-with-cabal
+     test-cabal-revision
+     match-ghc-foo-revision))
actual-value: #t
result: PASS

test-name: read-cabal test 1
location: /home/catriel/guix/git/guix/tests/hackage.scm:370
source:
+ (test-assert
+   "read-cabal test 1"
+   (match (call-with-input-string
+            test-read-cabal-1
+            read-cabal)
+          ((("name" ("test-me"))
+            ('section
+             'library
+             (('if
+               ('flag "base4point8")
+               (("build-depends" ("base >= 4.8 && < 5")))
+               (('if
+                 ('flag "base4")
+                 (("build-depends" ("base >= 4 && < 4.8")))
+                 (('if
+                   ('flag "base3")
+                   (("build-depends" ("base >= 3 && < 4")))
+                   (("build-depends" ("base < 3"))))))))
+              ('if
+               ('or
+                ('flag "base4point8")
+                ('and ('flag "base4") ('flag "base3")))
+               (("build-depends" ("random")))
+               ())
+              ("build-depends" ("containers"))
+              ("exposed-modules" ("Test.QuickCheck.Exception")))))
+           #t)
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS


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

end of thread, other threads:[~2021-03-26 22:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-23 22:54 guix import hackage fails with errors, and failed tests c4t0
2021-03-24 15:13 ` c4t0
2021-03-24 16:58 ` zimoun
2021-03-24 19:41   ` c4t0
2021-03-24 21:12     ` zimoun
2021-03-25 19:23       ` c4t0
2021-03-26  4:37         ` zimoun
2021-03-26 20:21           ` c4t0
2021-03-26 22:37             ` zimoun

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).