From unknown Sat Aug 16 23:44:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37332: opam->guix-package test fails Resent-From: Wiktor =?UTF-8?Q?=C5=BBelazny?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 07 Sep 2019 16:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37332 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 37332@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156787306118730 (code B ref -1); Sat, 07 Sep 2019 16:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Sep 2019 16:17:41 +0000 Received: from localhost ([127.0.0.1]:38042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i6dP8-0004rx-7c for submit@debbugs.gnu.org; Sat, 07 Sep 2019 12:17:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:50242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i6XtE-0002e2-Gs for submit@debbugs.gnu.org; Sat, 07 Sep 2019 06:24:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47805) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6XtC-0000z8-WB for bug-guix@gnu.org; Sat, 07 Sep 2019 06:24:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50, T_FILL_THIS_FORM_SHORT,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i6XtB-0004vf-M2 for bug-guix@gnu.org; Sat, 07 Sep 2019 06:24:18 -0400 Received: from freeshell.de ([2a01:360:106::2]:43621) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i6XtB-0004nm-6q for bug-guix@gnu.org; Sat, 07 Sep 2019 06:24:17 -0400 Date: Sat, 7 Sep 2019 12:22:00 +0200 DKIM-Filter: OpenDKIM Filter v2.9.2 freeshell.de 0B35F35C3E42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freeshell.de; s=mail; t=1567851849; bh=JPxguaR9RfsQj7v1bM3DjS3byrfbY/QjyPsCkAyZKIE=; h=Date:From:To:Subject; b=dw1f0iGeSvv1RIhyoUQo/S8/v5vNBCeJBLmYv25KwbMMcpmV5UD3UncwPXI31ABEu KQigbaZMFliofkSF0cAazTWOqcQF11pRAQc4rbUgkCUm0PBPlqdUbsjYOCymLLNmtq Y3ZcQm1zDBmCaFnOpvcxElGgcm82IzoNAhjoDYj8= From: Wiktor =?UTF-8?Q?=C5=BBelazny?= Message-ID: <20190907102159.uhjnhfhxormkfk4o@wz.localdomain> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="b2mes7njnx4ehrd2" Content-Disposition: inline X-PGP-Key: https://freeshell.de/~wz/pubkey.asc X-PGP-Fingerprint: BDC9 74CD D9C9 BA7D 761A 573D C735 A8C6 AB60 79D5 User-Agent: NeoMutt/20180716 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:360:106::2 X-Spam-Score: -1.4 (-) X-Mailman-Approved-At: Sat, 07 Sep 2019 12:17:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --b2mes7njnx4ehrd2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable My first post here. I=E2=80=99m assuming the bug number is going to be added automatically. My apologies in advance, if it=E2=80=99s not. I=E2=80=99m under GNU Guix SD (a new user), preparing to contribute my first package. While following [1], I=E2=80=99m getting FAIL for opam->guix-packa= ge after invoking `make check` in the Guix source tree. The relevant part of the test log: FAIL: tests/opam =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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=3D? + (bytevector->nix-base32-string test-source-has= h) + 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 (ba= se32 "1krpnm4j5f8xi2h6jaq3v97alv9dz7v2mdw53a8sycw4i97qxkaq")))) (build-syst= em ocaml-build-system) (propagated-inputs (quasiquote (("ocaml-zarith" (unq= uote ocaml-zarith))))) (native-inputs (quasiquote (("ocaml-alcotest" (unquo= te ocaml-alcotest)) ("ocamlbuild" (unquote ocamlbuild))))) (home-page "http= s://example.org/") (synopsis "Some example package") (description "This pac= kage 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=E2=80=99m not familiar with any of those, so I cannot judge w= hat the problem could be. I will appreciate any hints. W=C5=BB [1]: https://guix.gnu.org/manual/en/html_node/Building-from-Git.html --b2mes7njnx4ehrd2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAl1zhMdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg edXLDw/+PP1sT5dO9+Uema+wBqXrRvCUsEUBq1IthhC7bJt3Kso3yNaBN+Il+MqA dwDynU8LNHlOoIn8PAmi3JVe/2cvrGjnEl8R0k9VDKiZYZt+0nnfE2kLf4c1OX94 SGuvhfnUNngTQFiHGIcIo5VC1mxe3lpqf25sYrqcHMmObzyvyd0VBnrRFvyZJDjy s3MZfRAX43aWYfutogbU8eEYYDuaGls9FaJyeYjHkbjxM3f+ncQqn1zILD1X+AWd dlcs6MaQYKeB2FlQi9o6sBrN9uzaRLnLcwMsqwGPeg4oz1zYhS2HzrA2FfC2NOBx PYOt+X4hnvXLGPcbVZJFgfA8FAQlvGvawHyXhf4zm/nWnXHTkBwx+MTEFyKsNXxT IoVUJMPOwynESLdnKo6EHA07ySKJtpfrf11LN4KpYj2smoZ5WsVdhZLFwDcikfJf VaCnyQmHAB9rT0pL2IA+pYCXiWu2xskcVZj7PmxKNcqoJ/0OMx3UFGcvbjA1G6Su +ljFPHUKnFZqyY4QRmBMhrFdOchbHhOPNbaoHU1KWFMiMB6Kb3y2KPOfq7qL2Yqa yS4SAb3djRD4Pkh+nRWYAnC7LUVlhOnNLGLn+TuFS762H0/jxvYC4gYqpaoMuPi3 BGW8tZV//ZwgD2/SeJU64ZDCfSZg2WZBJd0usn7aBHfcL2as8F4= =eGSA -----END PGP SIGNATURE----- --b2mes7njnx4ehrd2-- From unknown Sat Aug 16 23:44:57 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Wiktor =?UTF-8?Q?=C5=BBelazny?= Subject: bug#37332: closed (Re: bug#37332: opam->guix-package test fails) Message-ID: References: <67BBCB85-953E-4BF5-B4A9-11858438961F@lepiller.eu> <20190907102159.uhjnhfhxormkfk4o@wz.localdomain> X-Gnu-PR-Message: they-closed 37332 X-Gnu-PR-Package: guix Reply-To: 37332@debbugs.gnu.org Date: Sat, 07 Sep 2019 20:29:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1567888142-31776-1" This is a multi-part message in MIME format... ------------=_1567888142-31776-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #37332: opam->guix-package test fails which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 37332@debbugs.gnu.org. --=20 37332: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D37332 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1567888142-31776-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 37332-done) by debbugs.gnu.org; 7 Sep 2019 20:28:33 +0000 Received: from localhost ([127.0.0.1]:38114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i6hJw-0008Fb-KE for submit@debbugs.gnu.org; Sat, 07 Sep 2019 16:28:32 -0400 Received: from lepiller.eu ([89.234.186.109]:36632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i6hJt-0008FL-5R for 37332-done@debbugs.gnu.org; Sat, 07 Sep 2019 16:28:31 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 1d9ab80f; Sat, 7 Sep 2019 20:28:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=fQeVOlOW+p69zSM7wYAp8hn00sM=; b=JJLCHCgPRkJO3UQbTqLI27xi8v+p lr/VZz76UCnYa03Tmvh1VYMz2VIgzcNK2b0YDxnPhYNVaO8XgAsgmkW4SpY8RizX hXlbe3vkv//K+3K6kvXzvg+DhQ/cxN100xRfPnlMm7b4zCYVaEd+q4tWEfOYWFLT qrKtoIhlyCx+L8XqD6XL+SUdHIeVz5FFi6kcrHlN4SBxFPap3IFDVO2NA5tnpSBl i7XcV2c79olH+lGcvTJIslcKik+KHKnVmUBj+TUb+q4YAY4CUwBo2AUBHQ0nsNad iTPeBvipbtUlSOVj63v55+QfOfrbR48zgxCxCz3XiJ6SWZIF9OtvEEFIkQ== DomainKey-Signature: a=rsa-sha1; c=nofws; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; q=dns; s= dkim; b=G3pj+vIeZlR9dLyAnP4jC+1+0qurohiATgB+2efjVjYSkIeAhQHvAyD/ Km5CE9y6QdpUG248TQblq8vgbw0fRyM2wP9iIYsZVHQBJPt7PHx7iL/v3gvlumoh a2YtaTqwoUwjWHXv3GX0KCHCKOO2naOggaxXUPhEMTWSXo8CwhVHCPSfKB//mUxG wIHF3LalSGa/zdL3IBxgmMyIMD2Yi0tJomfHcFuv+JY7iC56bZpJP3j3lyXFe862 0goFfiOSvRjMO8nujVoQOAmyzgSqgGEvz6WymZiVBCElBIc3qAc3PYAVqFYMF63z ccmyEewK0BR0v4lh8ELXG0DDBHNXIQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 74d35329 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 7 Sep 2019 20:28:23 +0000 (UTC) Date: Sat, 07 Sep 2019 22:28:24 +0200 User-Agent: K-9 Mail for Android In-Reply-To: <20190907102159.uhjnhfhxormkfk4o@wz.localdomain> References: <20190907102159.uhjnhfhxormkfk4o@wz.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: bug#37332: opam->guix-package test fails To: =?UTF-8?Q?Wiktor_=C5=BBelazny?= , 37332-done@debbugs.gnu.org From: Julien Lepiller Message-ID: <67BBCB85-953E-4BF5-B4A9-11858438961F@lepiller.eu> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37332-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Le 7 septembre 2019 12:22:00 GMT+02:00, "Wiktor =C5=BBelazny" a =C3=A9crit : >My first post here=2E I=E2=80=99m assuming the bug number is going to be = added >automatically=2E My apologies in advance, if it=E2=80=99s not=2E > >I=E2=80=99m under GNU Guix SD (a new user), preparing to contribute my fi= rst >package=2E While following [1], I=E2=80=99m getting FAIL for opam->guix-p= ackage >after invoking `make check` in the Guix source tree=2E > >The relevant part of the test log: > > FAIL: tests/opam > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > test-name: opam->guix-package > location: /home/w/vurv/guix-git/tests/opam=2Escm:71 > source: > + (test-assert > + "opam->guix-package" > + (mock ((guix import utils) > + url-fetch > + (lambda (url file-name) > + (match url > + ("https://example=2Eorg/foo-1=2E0=2E0=2Etar=2Egz" > + (begin > + (mkdir-p "foo-1=2E0=2E0") > + (system* "tar" "czvf" file-name "foo-1=2E0=2E0/= ") > + (delete-file-recursively "foo-1=2E0=2E0") > + (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=2E1=2E0=2E0"))) > + (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=2E0=2E0") > + ('source > + ('origin > + ('method 'url-fetch) >+ ('uri >"https://example=2Eorg/foo-1=2E0=2E0=2Etar=2Egz") > + ('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=2Eorg/") > + ('synopsis "Some example package") >+ ('description "This package is just an >example=2E") > + ('license #f)) > + (string=3D? >+ (bytevector->nix-base32-string >test-source-hash) > + hash)) > + (x (pk 'fail x #f)))))) > foo-1=2E0=2E0/ > >;;; (fail (package (name "ocaml-foo") (version "1=2E0=2E0") (source (orig= in >(method url-fetch) (uri "https://example=2Eorg/foo-1=2E0=2E0=2Etar=2Egz")= (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=2Eorg/") (synopsis "Some >example package") (description "This package is just an example=2E") >(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=2E2=2E4 > Guile-Gcrypt: 0=2E1=2E0 > GnuTLS: 3=2E6=2E5 > Guile-SQLite3: 0=2E1=2E0 > Guile-Git: 0=2E2=2E0 > Guile-JSON: 1=2E2=2E0 > zlib: 1=2E2=2E11 > GNU Make: 4=2E2=2E1 > >In the mailing list archives, I can see some recurring opam/ocaml >issues, but I=E2=80=99m not familiar with any of those, so I cannot judge= what >the problem could be=2E I will appreciate any hints=2E > >W=C5=BB > >[1]: https://guix=2Egnu=2Eorg/manual/en/html_node/Building-from-Git=2Ehtm= l Thanks for the report! I recently changed the importer to use propagated i= nputs instead of inputs and forgot about the test=2E I just pushed 1d03a91 = which fixes the test=2E ------------=_1567888142-31776-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Sep 2019 16:17:41 +0000 Received: from localhost ([127.0.0.1]:38042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i6dP8-0004rx-7c for submit@debbugs.gnu.org; Sat, 07 Sep 2019 12:17:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:50242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i6XtE-0002e2-Gs for submit@debbugs.gnu.org; Sat, 07 Sep 2019 06:24:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47805) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6XtC-0000z8-WB for bug-guix@gnu.org; Sat, 07 Sep 2019 06:24:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50, T_FILL_THIS_FORM_SHORT,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i6XtB-0004vf-M2 for bug-guix@gnu.org; Sat, 07 Sep 2019 06:24:18 -0400 Received: from freeshell.de ([2a01:360:106::2]:43621) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i6XtB-0004nm-6q for bug-guix@gnu.org; Sat, 07 Sep 2019 06:24:17 -0400 Date: Sat, 7 Sep 2019 12:22:00 +0200 DKIM-Filter: OpenDKIM Filter v2.9.2 freeshell.de 0B35F35C3E42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freeshell.de; s=mail; t=1567851849; bh=JPxguaR9RfsQj7v1bM3DjS3byrfbY/QjyPsCkAyZKIE=; h=Date:From:To:Subject; b=dw1f0iGeSvv1RIhyoUQo/S8/v5vNBCeJBLmYv25KwbMMcpmV5UD3UncwPXI31ABEu KQigbaZMFliofkSF0cAazTWOqcQF11pRAQc4rbUgkCUm0PBPlqdUbsjYOCymLLNmtq Y3ZcQm1zDBmCaFnOpvcxElGgcm82IzoNAhjoDYj8= From: Wiktor =?utf-8?Q?=C5=BBelazny?= To: bug-guix@gnu.org Subject: opam->guix-package test fails Message-ID: <20190907102159.uhjnhfhxormkfk4o@wz.localdomain> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="b2mes7njnx4ehrd2" Content-Disposition: inline X-PGP-Key: https://freeshell.de/~wz/pubkey.asc X-PGP-Fingerprint: BDC9 74CD D9C9 BA7D 761A 573D C735 A8C6 AB60 79D5 User-Agent: NeoMutt/20180716 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:360:106::2 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 07 Sep 2019 12:17:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --b2mes7njnx4ehrd2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable My first post here. I=E2=80=99m assuming the bug number is going to be added automatically. My apologies in advance, if it=E2=80=99s not. I=E2=80=99m under GNU Guix SD (a new user), preparing to contribute my first package. While following [1], I=E2=80=99m getting FAIL for opam->guix-packa= ge after invoking `make check` in the Guix source tree. The relevant part of the test log: FAIL: tests/opam =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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=3D? + (bytevector->nix-base32-string test-source-has= h) + 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 (ba= se32 "1krpnm4j5f8xi2h6jaq3v97alv9dz7v2mdw53a8sycw4i97qxkaq")))) (build-syst= em ocaml-build-system) (propagated-inputs (quasiquote (("ocaml-zarith" (unq= uote ocaml-zarith))))) (native-inputs (quasiquote (("ocaml-alcotest" (unquo= te ocaml-alcotest)) ("ocamlbuild" (unquote ocamlbuild))))) (home-page "http= s://example.org/") (synopsis "Some example package") (description "This pac= kage 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=E2=80=99m not familiar with any of those, so I cannot judge w= hat the problem could be. I will appreciate any hints. W=C5=BB [1]: https://guix.gnu.org/manual/en/html_node/Building-from-Git.html --b2mes7njnx4ehrd2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAl1zhMdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg edXLDw/+PP1sT5dO9+Uema+wBqXrRvCUsEUBq1IthhC7bJt3Kso3yNaBN+Il+MqA dwDynU8LNHlOoIn8PAmi3JVe/2cvrGjnEl8R0k9VDKiZYZt+0nnfE2kLf4c1OX94 SGuvhfnUNngTQFiHGIcIo5VC1mxe3lpqf25sYrqcHMmObzyvyd0VBnrRFvyZJDjy s3MZfRAX43aWYfutogbU8eEYYDuaGls9FaJyeYjHkbjxM3f+ncQqn1zILD1X+AWd dlcs6MaQYKeB2FlQi9o6sBrN9uzaRLnLcwMsqwGPeg4oz1zYhS2HzrA2FfC2NOBx PYOt+X4hnvXLGPcbVZJFgfA8FAQlvGvawHyXhf4zm/nWnXHTkBwx+MTEFyKsNXxT IoVUJMPOwynESLdnKo6EHA07ySKJtpfrf11LN4KpYj2smoZ5WsVdhZLFwDcikfJf VaCnyQmHAB9rT0pL2IA+pYCXiWu2xskcVZj7PmxKNcqoJ/0OMx3UFGcvbjA1G6Su +ljFPHUKnFZqyY4QRmBMhrFdOchbHhOPNbaoHU1KWFMiMB6Kb3y2KPOfq7qL2Yqa yS4SAb3djRD4Pkh+nRWYAnC7LUVlhOnNLGLn+TuFS762H0/jxvYC4gYqpaoMuPi3 BGW8tZV//ZwgD2/SeJU64ZDCfSZg2WZBJd0usn7aBHfcL2as8F4= =eGSA -----END PGP SIGNATURE----- --b2mes7njnx4ehrd2-- ------------=_1567888142-31776-1--