From unknown Wed Jun 18 00:26:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#49418 <49418@debbugs.gnu.org> To: bug#49418 <49418@debbugs.gnu.org> Subject: Status: Importing haskell packages from hackage doesn't apply metadata revisions Reply-To: bug#49418 <49418@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:26:40 +0000 retitle 49418 Importing haskell packages from hackage doesn't apply metadat= a revisions reassign 49418 guix submitter 49418 "Philip Munksgaard" severity 49418 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 05 10:10:04 2021 Received: (at submit) by debbugs.gnu.org; 5 Jul 2021 14:10:04 +0000 Received: from localhost ([127.0.0.1]:46328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0PIR-0003lc-BW for submit@debbugs.gnu.org; Mon, 05 Jul 2021 10:10:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:34222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0PIP-0003lT-Tv for submit@debbugs.gnu.org; Mon, 05 Jul 2021 10:10:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0PIP-0002LI-Kl for bug-guix@gnu.org; Mon, 05 Jul 2021 10:10:01 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:57715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0PIM-0002Pk-5y for bug-guix@gnu.org; Mon, 05 Jul 2021 10:10:01 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id C38375C0094 for ; Mon, 5 Jul 2021 10:09:51 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute2.internal (MEProxy); Mon, 05 Jul 2021 10:09:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=munksgaard.me; h=mime-version:message-id:date:from:to:subject:content-type; s= fm1; bh=j1ynmIJgtpNTB1JYEu6hJeuHun4d3b8Rza/ZZ6G9oPc=; b=RanXUTxZ j+ts991N57/As4apcKOZNDeaeN4dHgXAfZQVUhJkObkJI0M5wVbqR8tpxxA9+ey0 uvaNZ5NA3KWtiaAaxjarw3XT18m6zhyIdHh9lNpoOUUGt43RW9wxQDqUFzEOE7cX FqnWTamWbB1b95JB2hbBzqs9A3ysjkANpc3NQwSUMhm3sFiKPaDaz1d5sIjPtVZc yIGOWy3thFaOXtXJZIMjDW9hnkfQ6il3fvuxFFJ1Jq2B11PpQVr1PFCXTZIJRDM5 zj3jd3qcIqETSoOxfDk5C7u5gFIPgOjBBgJjX47GLKNX8Al19cLr+nqLr9tTc7vo HQzlVm56xaseiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=j1ynmIJgtpNTB1JYEu6hJeuHun4d3 b8Rza/ZZ6G9oPc=; b=VlTfILG8PCrsgzoIowdkHZExiIwQpPWfMu4CAT9lRGkSF rLf3x/UwZyPhw34YIF89/plw9w5uwDOJ++1d4imikBxANXeHUmGxKOVTBisI1CPQ mvzTU7SFzXdALkwcrFc0luJUqJz2K3Yl2CUZL7AYT9eV8dDwSL6CNjBJVy/0VBqJ nd18a0R4QfJWZA42EKtrFQak3M4nwhmC7dvNAxoX823+QfrHpuh2uanUQ+7ubfPM HjHGt8Jwp84AMKvg9s3qcLI33UY/FtUIN5A6TYvzrlnkR8JW3RxxPUbnhSARBfxP OyljtPOnjWqKD15VoW9sHTZRxPolOtl+pWhdo6xKA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeejgedgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehmtderre erreejnecuhfhrohhmpedfrfhhihhlihhpucfouhhnkhhsghgrrghrugdfuceophhhihhl ihhpsehmuhhnkhhsghgrrghrugdrmhgvqeenucggtffrrghtthgvrhhnpeeiuddvleeghe etffehvdeuudeukefgvdfhfeeilefgvefftedthedvvdektedutdenucffohhmrghinhep hhgrshhkvghllhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehphhhilhhiphesmhhunhhkshhgrggrrhgurdhmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 89F4FAC007C; Mon, 5 Jul 2021 10:09:51 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-530-gd0c265785f-fm-20210616.002-gd0c26578 Mime-Version: 1.0 Message-Id: Date: Mon, 05 Jul 2021 16:09:31 +0200 From: "Philip Munksgaard" To: bug-guix@gnu.org Subject: =?UTF-8?Q?Importing_haskell_packages_from_hackage_doesn't_apply_metadata?= =?UTF-8?Q?_revisions?= Content-Type: multipart/mixed; boundary=da29dc08397d4ad589c03d89ca9b0970 Received-SPF: pass client-ip=66.111.4.28; envelope-from=philip@munksgaard.me; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit 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.6 (--) --da29dc08397d4ad589c03d89ca9b0970 Content-Type: text/plain The hackage store of haskell packages allows maintainers to update package metadata directly on hackage without updating the associated archive of a package. For instance, the cabal file of the integer-logarithms package version 1.0.3 [0] has been updated since 1.0.3 was published, relaxing the constraints on some dependencies[1]. This means that, if I try to build the attached integer-logarithms.scm (created from guix import hackage integer-logarithms and modified to use ghc-8.8) I get the following error: ``` Setup.hs: Encountered missing or private dependencies: base >=4.3 && <4.13 command "runhaskell" "Setup.hs" "configure" "--prefix=/gnu/store/lssajarfg1vr6xbhi5dfvnn3xs01v3bz-ghc-integer-logarithms-bootstrap-1.0.3" "--libdir=/gnu/store/lssajarfg1vr6xbhi5dfvnn3xs01v3bz-ghc-integer-logarithms-bootstrap-1.0.3/lib" "--docdir=/gnu/store/lssajarfg1vr6xbhi5dfvnn3xs01v3bz-ghc-integer-logarithms-bootstrap-1.0.3/share/doc/ghc-integer-logarithms-bootstrap-1.0.3" "--libsubdir=$compiler/$pkg-$version" "--package-db=/tmp/guix-build-ghc-integer-logarithms-bootstrap-1.0.3.drv-0/package.conf.d" "--global" "--enable-shared" "--enable-executable-dynamic" "--ghc-option=-fPIC" "--ghc-option=-optl=-Wl,-rpath=/gnu/store/lssajarfg1vr6xbhi5dfvnn3xs01v3bz-ghc-integer-logarithms-bootstrap-1.0.3/lib/$compiler/$pkg-$version" failed with status 1 builder for `/gnu/store/pwdhhwp6d6b5g5pgik9y6ml5g1d8fxf5-ghc-integer-logarithms-bootstrap-1.0.3.drv' failed with exit code 1 build of /gnu/store/pwdhhwp6d6b5g5pgik9y6ml5g1d8fxf5-ghc-integer-logarithms-bootstrap-1.0.3.drv failed ``` In ghc 8.8 the base version is 4.13, and the updated cabal file for integer-logarithms amends the constrants to allow that version. The solution might be to use `cabal get` to download the archive instead of downloading the .tar.gz directly, or manually amending the cabal file after downloading. 0: https://hackage.haskell.org/package/integer-logarithms-1.0.3 1: https://hackage.haskell.org/package/integer-logarithms-1.0.3/revisions/ --da29dc08397d4ad589c03d89ca9b0970 Content-Disposition: attachment;filename="integer-logarithms.scm" Content-Type: text/x-scheme; name="integer-logarithms.scm" Content-Transfer-Encoding: BASE64 KGRlZmluZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBmdXRoYXJrKQogICM6dXNlLW1vZHVsZSAo Z3VpeCBwYWNrYWdlcykKICAjOnVzZS1tb2R1bGUgKGd1aXggZG93bmxvYWQpCiAgIzp1c2Ut bW9kdWxlIChndWl4IGJ1aWxkLXN5c3RlbSBoYXNrZWxsKQogICM6dXNlLW1vZHVsZSAoZ3Vp eCBsaWNlbnNlcykKICAjOnVzZS1tb2R1bGUgKGd1aXggZ2l0LWRvd25sb2FkKQogICM6dXNl LW1vZHVsZSAoKGd1aXggbGljZW5zZXMpICM6cHJlZml4IGxpY2Vuc2U6KQogICM6dXNlLW1v ZHVsZSAoZ251IHBhY2thZ2VzKQogICM6dXNlLW1vZHVsZSAoZ251IHBhY2thZ2VzIGhhc2tl bGwpCiAgIzp1c2UtbW9kdWxlIChnbnUgcGFja2FnZXMgaGFza2VsbCkKICAjOnVzZS1tb2R1 bGUgKGdudSBwYWNrYWdlcyBoYXNrZWxsLXdlYikKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNr YWdlcyBoYXNrZWxsLXh5eikKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBoYXNrZWxs LWNoZWNrKQogICM6dXNlLW1vZHVsZSAoZ251IHBhY2thZ2VzIGhhc2tlbGwtY3J5cHRvKSkK CihkZWZpbmUtcHVibGljIGdoYy1pbnRlZ2VyLWxvZ2FyaXRobXMKICAocGFja2FnZQogICAg KG5hbWUgImdoYy1pbnRlZ2VyLWxvZ2FyaXRobXMiKQogICAgKHZlcnNpb24gIjEuMC4zIikK ICAgIChzb3VyY2UKICAgICAob3JpZ2luCiAgICAgICAobWV0aG9kIHVybC1mZXRjaCkKICAg ICAgICh1cmkgKHN0cmluZy1hcHBlbmQgImh0dHBzOi8vaGFja2FnZS5oYXNrZWxsLm9yZy9w YWNrYWdlLyIKICAgICAgICAgICAgICAgICAgICAgICAgICAgImludGVnZXItbG9nYXJpdGht cy9pbnRlZ2VyLWxvZ2FyaXRobXMtIgogICAgICAgICAgICAgICAgICAgICAgICAgICB2ZXJz aW9uICIudGFyLmd6IikpCiAgICAgICAoc2hhMjU2CiAgICAgICAgKGJhc2UzMgogICAgICAg ICAiMDVwYzVod3M2NmNzdmN2ZnN3bHdjcjJmcGx3bjFsYnNzdndpZmp4a2Jid3FocTBuNXFq cyIpKSkpCiAgICAoYnVpbGQtc3lzdGVtIGhhc2tlbGwtYnVpbGQtc3lzdGVtKQogICAgKGFy Z3VtZW50cwogICAgIGAoIzpwaGFzZXMKICAgICAgIChtb2RpZnktcGhhc2VzICVzdGFuZGFy ZC1waGFzZXMKICAgICAgICAgKGFkZC1iZWZvcmUgJ2NvbmZpZ3VyZSAndXBkYXRlLWNvbnN0 cmFpbnRzCiAgICAgICAgICAgKGxhbWJkYSBfCiAgICAgICAgICAgICAoc3Vic3RpdHV0ZSog ImludGVnZXItbG9nYXJpdGhtcy5jYWJhbCIKICAgICAgICAgICAgICAgKCgidGFzdHkgPj0g MFxcLjEwICYmIDwgMVxcLjEiKQogICAgICAgICAgICAgICAgInRhc3R5ID49IDAuMTAgJiYg PCAxLjIiKSkpKSkpKQogICAgKG5hdGl2ZS1pbnB1dHMKICAgICBgKCgiZ2hjLXF1aWNrY2hl Y2siICxnaGMtcXVpY2tjaGVjaykKICAgICAgICgiZ2hjLXNtYWxsY2hlY2siICxnaGMtc21h bGxjaGVjaykKICAgICAgICgiZ2hjLXRhc3R5IiAsZ2hjLXRhc3R5KQogICAgICAgKCJnaGMt dGFzdHktaHVuaXQiICxnaGMtdGFzdHktaHVuaXQpCiAgICAgICAoImdoYy10YXN0eS1xdWlj a2NoZWNrIiAsZ2hjLXRhc3R5LXF1aWNrY2hlY2spCiAgICAgICAoImdoYy10YXN0eS1zbWFs bGNoZWNrIiAsZ2hjLXRhc3R5LXNtYWxsY2hlY2spKSkKICAgIChob21lLXBhZ2UgImh0dHBz Oi8vZ2l0aHViLmNvbS9Cb2RpZ3JpbS9pbnRlZ2VyLWxvZ2FyaXRobXMiKQogICAgKHN5bm9w c2lzICJJbnRlZ2VyIGxvZ2FyaXRobXMiKQogICAgKGRlc2NyaXB0aW9uCiAgICAgIlRoaXMg cGFja2FnZSBwcm92aWRlcyB0aGUgZm9sbG93aW5nIG1vZHVsZXM6CkBjb2Rle01hdGguTnVt YmVyVGhlb3J5LkxvZ2FyaXRobXN9IGFuZApAY29kZXtNYXRoLk51bWJlclRoZW9yeS5Qb3dl cnMuSW50ZWdlcn0gZnJvbSB0aGUgQGNvZGV7YXJpdGhtb2l9IHBhY2thZ2UsCkBjb2Rle0dI Qy5JbnRlZ2VyLkxvZ2FyaXRobXMuQ29tcGF0fSBhbmQKQGNvZGV7TWF0aC5OdW1iZXJUaGVv cnkuUG93ZXIuTmF0dXJhbH0sIGFzIHdlbGwgYXMgc29tZSBhZGRpdGlvbmFsIGZ1bmN0aW9u cwppbiBtaWdyYXRlZCBtb2R1bGVzLiIpCiAgICAobGljZW5zZSBsaWNlbnNlOmV4cGF0KSkp CgooZGVmaW5lLXB1YmxpYyBnaGMtaW50ZWdlci1sb2dhcml0aG1zLWJvb3RzdHJhcAogIChw YWNrYWdlCiAgICAoaW5oZXJpdCBnaGMtaW50ZWdlci1sb2dhcml0aG1zKQogICAgKG5hbWUg ImdoYy1pbnRlZ2VyLWxvZ2FyaXRobXMtYm9vdHN0cmFwIikKICAgIChhcmd1bWVudHMgYCgj OnRlc3RzPyAjZgogICAgICAgICAgICAgICAgICM6aGFza2VsbCAsZ2hjLTguOCkpCiAgICAo bmF0aXZlLWlucHV0cyAnKCkpCiAgICAocHJvcGVydGllcyAnKChoaWRkZW4/ICN0KSkpKSkK CmdoYy1pbnRlZ2VyLWxvZ2FyaXRobXMtYm9vdHN0cmFwCg== --da29dc08397d4ad589c03d89ca9b0970-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 05 11:32:59 2021 Received: (at 49418) by debbugs.gnu.org; 5 Jul 2021 15:32:59 +0000 Received: from localhost ([127.0.0.1]:46489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Qah-0006WH-NN for submit@debbugs.gnu.org; Mon, 05 Jul 2021 11:32:59 -0400 Received: from mail-4323.protonmail.ch ([185.70.43.23]:63417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Qag-0006W2-84 for 49418@debbugs.gnu.org; Mon, 05 Jul 2021 11:32:59 -0400 Date: Mon, 05 Jul 2021 15:32:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1625499171; bh=wSjbSfy5O0SsRExKsZqT6cOaaCiQZfHqb6dd0cRSz9k=; h=Date:To:From:Reply-To:Subject:From; b=UTWdtoeaYwDX9MWI7E0YkzW2KabXMryM0W+sXASWs3b+5FqDTCPu3Ez6BJ2K+OWlz Okqyf4wb1z643gesAfneJokIsrk854g7uso2XhisTST9Gq5R328L4fTfm4Pn7P97hK 45vsbZ0oie/8Nl1iesTY7dnsmRCjydCgEdejtfrA= To: "49418@debbugs.gnu.org" <49418@debbugs.gnu.org> From: John Kehayias Subject: Importing haskell packages from hackage doesn't apply metadata revisions Message-ID: <7gQWTFf7eWu8oWGdLqBx5AQvigc0jqMCf4z5tgknt2x-IWXD70-mrdBaj6hxbi5JxysNrdlu5wArAbQv8_EU3kG4opMzoRYepCwkoOpAOjY=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49418 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: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I've run into the same problem, seems like fetching the revised cabal file = would be the best bet. (In the meantime I've modified package definitions t= o make the metadata changes, but that is manual and certainly should be aut= omated by import.) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 06 23:26:32 2021 Received: (at 49418) by debbugs.gnu.org; 7 Jul 2021 03:26:32 +0000 Received: from localhost ([127.0.0.1]:50519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0yCm-0003Xg-4N for submit@debbugs.gnu.org; Tue, 06 Jul 2021 23:26:32 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:10735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0yCj-0003XR-VI for 49418@debbugs.gnu.org; Tue, 06 Jul 2021 23:26:31 -0400 Date: Wed, 07 Jul 2021 03:26:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1625628383; bh=90Qbvo9lMdcS9D3qNi2/nAiSjExb8ETYW0zNGy7sgmM=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=idcLELDjNbUmw63kg4LS0PWVV4jUHCSEE9B+3tKcWn8bhFcRPw9zvsY4F7SYZ3Dcw 4JwjoMCwkp2h1SIEIbD17tBFdHO62gfEMfDL8gqsXZTgM1cse2mWwnRktC2I09bP32 80tDIDyZ2Ry16sVAD1Cya8vKXlMuhyCH41fFJjF4= To: "49418@debbugs.gnu.org" <49418@debbugs.gnu.org> From: John Kehayias Subject: Re: Importing haskell packages from hackage doesn't apply metadata revisions Message-ID: In-Reply-To: <7gQWTFf7eWu8oWGdLqBx5AQvigc0jqMCf4z5tgknt2x-IWXD70-mrdBaj6hxbi5JxysNrdlu5wArAbQv8_EU3kG4opMzoRYepCwkoOpAOjY=@protonmail.com> References: <7gQWTFf7eWu8oWGdLqBx5AQvigc0jqMCf4z5tgknt2x-IWXD70-mrdBaj6hxbi5JxysNrdlu5wArAbQv8_EU3kG4opMzoRYepCwkoOpAOjY=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49418 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: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Actually, this does exist in the Haskell build system in Guix, but seems to= be undocumented and not used by the importer. You can add the following to= the arguments (in the bootstrap package in this case) to use a metadata re= vision: #:cabal-revision ("2" "0a6j3313vz7n7dn8abddyib4jggblaq89f87ib4imdwjxjajbm33= ") The hash is from running guix hash file (where file =3D 2.cabal in this cas= e, downloaded from Hackage). This should be part of the importer, to specif= y a revision or by default grab the latest, I would say. (and I'm guessing you know this is packaged in guix as integer-logarithms, = without the "ghc-" prefix for some reason; not the only package like that I= 've noticed) From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 07 01:59:24 2021 Received: (at 49418) by debbugs.gnu.org; 7 Jul 2021 05:59:24 +0000 Received: from localhost ([127.0.0.1]:50613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m10ai-0007jr-E3 for submit@debbugs.gnu.org; Wed, 07 Jul 2021 01:59:24 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:39583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m10ag-0007jf-VD for 49418@debbugs.gnu.org; Wed, 07 Jul 2021 01:59:23 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id CEA72320096D; Wed, 7 Jul 2021 01:59:16 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute2.internal (MEProxy); Wed, 07 Jul 2021 01:59:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=munksgaard.me; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=G77NJGkd9WXiFJS7OjgOMQGZdNIko14 Ay5uydrlIFlQ=; b=fzA1+M4u4gR26Deq3JzEwFwsDaHzUOfDMCaAP60CjfOFVHg AdDQzxGhY/EDCN7iAh4vgxXayi1vIIqy3l/QHLIHpfUxO2BgmYc18VJLM5OiDWeb Z0d4M+yQUTW08XrkIVBg6Ho04Tp4f0H5Ge8t0nC3qiMP6hiR0nObnKnoIWbwt0ZQ 1zK0jvEqgRlws4z3NZKjmAIwx20FdG2bHdC0ODM6ESH0YDrW+CH+07NPRdyonLWl nYrjpWZKwUZVAosNWpLct2+Wbsml2qygcAq/SixjuLaD8asJQdHcQfUqA42vaiKT BQKWVzC7s3vO8y3LJw6nO/+1zIY1DMt6AeGRqZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=G77NJG kd9WXiFJS7OjgOMQGZdNIko14Ay5uydrlIFlQ=; b=r1i2DrJXZAj6xLUFO9pzvh lzT4xmEBRgT/PmF88woAxgObjtibSJrN15YJ21KvIXe2Z0OWjEJUPbtlwetQO/6P +Eugr34NjkmnRNivz1R1ikumLbmpStuIfhg8qdHzgQ1aDd92DZFf/oiAuqeqJ6sm u37XKVweO9vhY1nEbxN3YW/qUFTaQHQJIUT9Ax2XhDCAp3AH7wR3Op4KF2Qv5Mkk 67MmRJCewl/yZctJDTCiy9p3etUGpmZByt5f9lOz61mqbPJQ6jDi8Id6E04oUTJV k21Z0rT3uy/qI2ZAYdF34eZ9GXLZE8DZYrIl+5LHWP8jQFbQcV7gmcubShYuw9eQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrtddugdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpedfrfhhihhl ihhpucfouhhnkhhsghgrrghrugdfuceophhhihhlihhpsehmuhhnkhhsghgrrghrugdrmh gvqeenucggtffrrghtthgvrhhnpeeivedvkeduieevkedvudffheeuffeuhfeutdejudeu teegjeduveduueffjedtffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehphhhilhhiphesmhhunhhkshhgrggrrhgurdhmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 34AC3AC0073; Wed, 7 Jul 2021 01:59:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-531-g1160beca77-fm-20210705.001-g1160beca Mime-Version: 1.0 Message-Id: <1d5f0af1-ed89-4b03-b845-207fd8731a62@www.fastmail.com> In-Reply-To: References: <7gQWTFf7eWu8oWGdLqBx5AQvigc0jqMCf4z5tgknt2x-IWXD70-mrdBaj6hxbi5JxysNrdlu5wArAbQv8_EU3kG4opMzoRYepCwkoOpAOjY=@protonmail.com> Date: Wed, 07 Jul 2021 07:58:55 +0200 From: "Philip Munksgaard" To: "John Kehayias" , "49418@debbugs.gnu.org" <49418@debbugs.gnu.org> Subject: =?UTF-8?Q?Re:_bug#49418:_Importing_haskell_packages_from_hackage_doesn't?= =?UTF-8?Q?_apply_metadata_revisions?= Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49418 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.7 (-) On Wed, 7 Jul 2021, at 05:26, John Kehayias via Bug reports for GNU Guix wrote: > Actually, this does exist in the Haskell build system in Guix, but > seems to be undocumented and not used by the importer. You can add the > following to the arguments (in the bootstrap package in this case) to > use a metadata revision: > > #:cabal-revision ("2" "0a6j3313vz7n7dn8abddyib4jggblaq89f87ib4imdwjxjajbm33") > > The hash is from running guix hash file (where file = 2.cabal in this > case, downloaded from Hackage). This should be part of the importer, to > specify a revision or by default grab the latest, I would say. > > (and I'm guessing you know this is packaged in guix as > integer-logarithms, without the "ghc-" prefix for some reason; not the > only package like that I've noticed) > Ah yes, good catch! I agree that the fix should be to amend the importer, such that it finds out about these revisions and automatically uses the latest one. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 07 05:52:33 2021 Received: (at 49418-done) by debbugs.gnu.org; 7 Jul 2021 09:52:33 +0000 Received: from localhost ([127.0.0.1]:50936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m14EL-0007HS-Cp for submit@debbugs.gnu.org; Wed, 07 Jul 2021 05:52:33 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:46243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m14EJ-0007HD-C9 for 49418-done@debbugs.gnu.org; Wed, 07 Jul 2021 05:52:31 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id CB8235C0049; Wed, 7 Jul 2021 05:52:25 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute2.internal (MEProxy); Wed, 07 Jul 2021 05:52:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=munksgaard.me; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=l5Sq+5ID9QX4ELdgLzKZi92vn+DFEsF ilG3MGGn5Za4=; b=lXk1PWBjwbAabzdK+cAgn5tdROMwBOSsvrMU5r0ZhPRPU2q xSikORCUJfVv8PZjPD0l6ECGCxfkVQG5NyUFHe4hngvKXI17GvhOqyByeaY1ePLl l2HTDEnn2Z3hvyuKuuIeg+TjbSUhiH/hqIhDEEQpNLz7XEuiXg+aXdDQ8k/3zW4F IBTM4lr5adW7vXEbNwVKKar84W325D5ciIU8ipbVpmn/8PL/E5hOtCyGFeLwAPSC o7LoirYfhfpo0gabp+Pa/x6NPXB/vmhMVyd4tleXNjETYeelApa/kCK5rhv97/3I Vhn4nP4UF6zuufEzehF6ohMopp4ZsL7sdLs+vOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=l5Sq+5 ID9QX4ELdgLzKZi92vn+DFEsFilG3MGGn5Za4=; b=S/D7VgsvBz2LrWqJrlnKU6 lHI2LZO5j141yYSrFja8dlEhRCSpdFlrwvsbMZerB15CvSYuR7IVLL3y/uNC3IW6 HSyI3eMC9aSAGeCdhcelwggef2XxmBpBkx9+9GWzExIZ7Ba8miLxj9mwymJ9JmwP yGZxhn2mbz4dDhLUg3I45/BFxH0cD237SD+uTVByBtl7iSezpz9ynQ4ZRLPgxBJM nOSUyhRjuM3j+EzoXQg3xbzsaFBJ+3KwLGZBh2UtYLQBO3V8nzkn4/VQK0TBNaY1 nRd1yfq6n9tyN8g+0U38mnnrKgH/gwJkSXtGLDRBEhm1V8WgMeXAcqHDmcf+caXQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrtddvgddvtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpedfrfhhihhl ihhpucfouhhnkhhsghgrrghrugdfuceophhhihhlihhpsehmuhhnkhhsghgrrghrugdrmh gvqeenucggtffrrghtthgvrhhnpeeivedvkeduieevkedvudffheeuffeuhfeutdejudeu teegjeduveduueffjedtffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehphhhilhhiphesmhhunhhkshhgrggrrhgurdhmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 98BD3AC0076; Wed, 7 Jul 2021 05:52:25 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-531-g1160beca77-fm-20210705.001-g1160beca Mime-Version: 1.0 Message-Id: In-Reply-To: <1d5f0af1-ed89-4b03-b845-207fd8731a62@www.fastmail.com> References: <7gQWTFf7eWu8oWGdLqBx5AQvigc0jqMCf4z5tgknt2x-IWXD70-mrdBaj6hxbi5JxysNrdlu5wArAbQv8_EU3kG4opMzoRYepCwkoOpAOjY=@protonmail.com> <1d5f0af1-ed89-4b03-b845-207fd8731a62@www.fastmail.com> Date: Wed, 07 Jul 2021 11:52:05 +0200 From: "Philip Munksgaard" To: "John Kehayias" , "49418-done@debbugs.gnu.org" <49418-done@debbugs.gnu.org> Subject: =?UTF-8?Q?Re:_bug#49418:_Importing_haskell_packages_from_hackage_doesn't?= =?UTF-8?Q?_apply_metadata_revisions?= Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49418-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.7 (-) On Wed, 7 Jul 2021, at 07:58, Philip Munksgaard wrote: > On Wed, 7 Jul 2021, at 05:26, John Kehayias via Bug reports for GNU Guix wrote: > > Actually, this does exist in the Haskell build system in Guix, but > > seems to be undocumented and not used by the importer. You can add the > > following to the arguments (in the bootstrap package in this case) to > > use a metadata revision: > > > > #:cabal-revision ("2" "0a6j3313vz7n7dn8abddyib4jggblaq89f87ib4imdwjxjajbm33") > > > > The hash is from running guix hash file (where file = 2.cabal in this > > case, downloaded from Hackage). This should be part of the importer, to > > specify a revision or by default grab the latest, I would say. > > > > (and I'm guessing you know this is packaged in guix as > > integer-logarithms, without the "ghc-" prefix for some reason; not the > > only package like that I've noticed) > > > > Ah yes, good catch! I agree that the fix should be to amend the > importer, such that it finds out about these revisions and > automatically uses the latest one. Actually, upon closer inspection, that's exactly what it does! Instead of actually using the importer in my original example (as I claimed), I had actually just modified the code from gnu/packages/haskell-xyz.scm. Doing a fresh import correctly picks up that there is a new revision of the cabal file and produces the right derivation. I'll close this issue. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 07 10:37:53 2021 Received: (at 49418-done) by debbugs.gnu.org; 7 Jul 2021 14:37:53 +0000 Received: from localhost ([127.0.0.1]:53204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m18gT-0000hC-3f for submit@debbugs.gnu.org; Wed, 07 Jul 2021 10:37:53 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:48667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m18gQ-0000gy-Mg for 49418-done@debbugs.gnu.org; Wed, 07 Jul 2021 10:37:52 -0400 Date: Wed, 07 Jul 2021 14:37:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1625668664; bh=Y8++D4Fz1lOwwmNWUO9YGuLRpUoqcMt0B6lF56NXyyo=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=COCBTuYiBoYXPE7jt1QK/7ydthG5kjoF1vvDW27uo6f9SW6gmw2L9Gh/PFMkTWVdo UBRC8j2Ldi+M8A2V5QBhadaED8I4oPQG71hV6VlgQuqrSOkJjV1674aZUw4tx2jOEt 6UO9fjtBgEcruptVVk0vz8aohxQ0ge1CZOy+HOec= To: Philip Munksgaard From: John Kehayias Subject: Re: bug#49418: Importing haskell packages from hackage doesn't apply metadata revisions Message-ID: In-Reply-To: References: <7gQWTFf7eWu8oWGdLqBx5AQvigc0jqMCf4z5tgknt2x-IWXD70-mrdBaj6hxbi5JxysNrdlu5wArAbQv8_EU3kG4opMzoRYepCwkoOpAOjY=@protonmail.com> <1d5f0af1-ed89-4b03-b845-207fd8731a62@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49418-done Cc: "49418-done@debbugs.gnu.org" <49418-done@debbugs.gnu.org> 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: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Yes, I noticed that later too on some packages I'm working on. Glad you got= it sorted out. Still should be documented somewhere, I guess under the build systems. From unknown Wed Jun 18 00:26:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Aug 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator