From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Vollmert Subject: help with a confusing error: url-fetch, hash, invalid keyword #vu8 Date: Mon, 18 Nov 2019 16:28:37 +0100 Message-ID: <1D116338-4D20-4935-9F33-1E3987EDB17F@vllmrt.net> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37609) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWixM-00034R-GC for guix-devel@gnu.org; Mon, 18 Nov 2019 10:28:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWixK-0002c3-Jd for guix-devel@gnu.org; Mon, 18 Nov 2019 10:28:47 -0500 Received: from mout-u-204.mailbox.org ([91.198.250.253]:51616) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iWixK-0002aH-9d for guix-devel@gnu.org; Mon, 18 Nov 2019 10:28:46 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 47GtCG3VTnzQlD2 for ; Mon, 18 Nov 2019 16:28:42 +0100 (CET) Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id IYlyyJEaWhjv for ; Mon, 18 Nov 2019 16:28:38 +0100 (CET) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hi, I=E2=80=99m in writing up some notes on my Guix packaging work earlier = this year, and am running into an unexpected problem that I=E2=80=99m lost with. A = concrete example: $ guix import hackage ormolu > ormolu.scm add missing imports at the top of ormolu.scm: (use-modules (guix packages)) (use-modules (guix build download)) (use-modules (guix build-system haskell)) (use-modules (guix licenses)) (use-modules (gnu packages haskell-xyz)) (use-modules (gnu packages haskell-check)) $ guix build -f ormolu.scm Backtrace: In guix/ui.scm: 415:6 19 (_) In guix/scripts/build.scm: 879:5 18 (_) In srfi/srfi-1.scm: 679:15 17 (append-map _ _ . _) 592:17 16 (map1 ("x86_64-linux")) 679:15 15 (append-map _ _ . _) 592:17 14 (map1 (#)) In guix/scripts/build.scm: 840:18 13 (_ _) In guix/packages.scm: 936:16 12 (cache! # # =E2=80=A6) 1255:22 11 (thunk) 1188:25 10 (bag->derivation # #<=E2=80=A6= > =E2=80=A6) In srfi/srfi-1.scm: 592:29 9 (map1 _) 592:29 8 (map1 (("ghc-hspec" #)= =E2=80=A6)) 592:29 7 (map1 (("ghc-path" #)= =E2=80=A6)) 592:29 6 (map1 (("ghc-path-io" #)= =E2=80=A6)) 592:17 5 (map1 (("source" #)= =E2=80=A6)) In ice-9/boot-9.scm: 829:9 4 (catch srfi-34 # =E2=80=A6) In guix/packages.scm: 1003:18 3 (_) In guix/store.scm: 1803:24 2 (run-with-store # _ # _ = =E2=80=A6) 1673:13 1 (_ _) In guix/build/download.scm: 741:0 0 (url-fetch _ _ #:timeout _ #:verify-certificate? _ # _ # = =E2=80=A6) guix/build/download.scm:741:0: In procedure url-fetch: Invalid keyword: #vu8(96 84 134 13 223 219 170 200 61 134 246 111 6 115 = 201 118 102 154 109 187 101 185 64 146 131 54 199 173 34 76 149 220) This is with my guix install from roughly July, which has some = modifications, so it=E2=80=99s not impossible that that=E2=80=99s involved, but I = don=E2=80=99t see any relevant changes. And generally the install still works fine, including building some = local custom packages that don=E2=80=99t do anything differently that=E2=80=99s = obvious to me. I suspect I made some simple mistake with imports or my guix package = invocation =E2=80=94 hoping someone can provide a hint? The full contents of ormolu.scm: (use-modules (guix packages)) (use-modules (guix build download)) (use-modules (guix build-system haskell)) (use-modules (guix licenses)) (use-modules (gnu packages haskell-xyz)) (use-modules (gnu packages haskell-check)) (package (name "ghc-ormolu") (version "0.0.1.0") (source (origin (method url-fetch) (uri (string-append "https://hackage.haskell.org/package/ormolu/ormolu-" version ".tar.gz")) (sha256 (base32 "1p4m9hiavirnhf941fb5pdnrlrknr5rhcvznhqywianvvw6qcm30")))) (build-system haskell-build-system) (inputs `(("ghc-dlist" ,ghc-dlist) ("ghc-exceptions" ,ghc-exceptions) ("ghc-paths" ,ghc-paths) ("ghc-syb" ,ghc-syb) ("ghc-gitrev" ,ghc-gitrev) ("ghc-optparse-applicative" ,ghc-optparse-applicative))) (native-inputs `(("ghc-hspec" ,ghc-hspec) ("ghc-path" ,ghc-path) ("ghc-path-io" ,ghc-path-io))) (home-page "https://github.com/tweag/ormolu") (synopsis "A formatter for Haskell source code") (description "A formatter for Haskell source code.") (license bsd-3)) Cheers Robert