From: "Wiktor Żelazny" <wz@freeshell.de>
To: 37332@debbugs.gnu.org
Subject: bug#37332: opam->guix-package test fails
Date: Sat, 7 Sep 2019 12:22:00 +0200 [thread overview]
Message-ID: <20190907102159.uhjnhfhxormkfk4o@wz.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 4200 bytes --]
My first post here. I’m assuming the bug number is going to be added
automatically. My apologies in advance, if it’s not.
I’m under GNU Guix SD (a new user), preparing to contribute my first
package. While following [1], I’m getting FAIL for opam->guix-package
after invoking `make check` in the Guix source tree.
The relevant part of the test log:
FAIL: tests/opam
================
test-name: opam->guix-package
location: /home/w/vurv/guix-git/tests/opam.scm:71
source:
+ (test-assert
+ "opam->guix-package"
+ (mock ((guix import utils)
+ url-fetch
+ (lambda (url file-name)
+ (match url
+ ("https://example.org/foo-1.0.0.tar.gz"
+ (begin
+ (mkdir-p "foo-1.0.0")
+ (system* "tar" "czvf" file-name "foo-1.0.0/")
+ (delete-file-recursively "foo-1.0.0")
+ (set! test-source-hash
+ (call-with-input-file file-name port-sha256))))
+ (_ (error "Unexpected URL: " url)))))
+ (let ((my-package
+ (string-append
+ test-repo
+ "/packages/foo/foo.1.0.0")))
+ (mkdir-p my-package)
+ (with-output-to-file
+ (string-append my-package "/opam")
+ (lambda _ (format #t "~a" test-opam-file))))
+ (mock ((guix import opam)
+ get-opam-repository
+ (lambda _ test-repo))
+ (match (opam->guix-package "foo")
+ (('package
+ ('name "ocaml-foo")
+ ('version "1.0.0")
+ ('source
+ ('origin
+ ('method 'url-fetch)
+ ('uri "https://example.org/foo-1.0.0.tar.gz")
+ ('sha256 ('base32 (? string? hash)))))
+ ('build-system 'ocaml-build-system)
+ ('inputs
+ ('quasiquote
+ (("ocaml-zarith" ('unquote 'ocaml-zarith)))))
+ ('native-inputs
+ ('quasiquote
+ (("ocaml-alcotest" ('unquote 'ocaml-alcotest))
+ ("ocamlbuild" ('unquote 'ocamlbuild)))))
+ ('home-page "https://example.org/")
+ ('synopsis "Some example package")
+ ('description "This package is just an example.")
+ ('license #f))
+ (string=?
+ (bytevector->nix-base32-string test-source-hash)
+ hash))
+ (x (pk 'fail x #f))))))
foo-1.0.0/
;;; (fail (package (name "ocaml-foo") (version "1.0.0") (source (origin (method url-fetch) (uri "https://example.org/foo-1.0.0.tar.gz") (sha256 (base32 "1krpnm4j5f8xi2h6jaq3v97alv9dz7v2mdw53a8sycw4i97qxkaq")))) (build-system ocaml-build-system) (propagated-inputs (quasiquote (("ocaml-zarith" (unquote ocaml-zarith))))) (native-inputs (quasiquote (("ocaml-alcotest" (unquote ocaml-alcotest)) ("ocamlbuild" (unquote ocamlbuild))))) (home-page "https://example.org/") (synopsis "Some example package") (description "This package is just an example.") (license #f)) #f)
actual-value: #f
result: FAIL
Software versions:
GNU Guix: 66d2133 for invoking `guix environment`, d550845 for the
tested source tree
GNU Guile: 2.2.4
Guile-Gcrypt: 0.1.0
GnuTLS: 3.6.5
Guile-SQLite3: 0.1.0
Guile-Git: 0.2.0
Guile-JSON: 1.2.0
zlib: 1.2.11
GNU Make: 4.2.1
In the mailing list archives, I can see some recurring opam/ocaml
issues, but I’m not familiar with any of those, so I cannot judge what
the problem could be. I will appreciate any hints.
WŻ
[1]: https://guix.gnu.org/manual/en/html_node/Building-from-Git.html
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
next reply other threads:[~2019-09-07 16:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-07 10:22 Wiktor Żelazny [this message]
2019-09-07 20:28 ` bug#37332: opam->guix-package test fails Julien Lepiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190907102159.uhjnhfhxormkfk4o@wz.localdomain \
--to=wz@freeshell.de \
--cc=37332@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).