From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cBSuLJF55WCetQAAgWs5BA (envelope-from ) for ; Wed, 07 Jul 2021 11:53:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GLdTKJF55WDWcAAAbx9fmQ (envelope-from ) for ; Wed, 07 Jul 2021 09:53:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EB5171D014 for ; Wed, 7 Jul 2021 11:53:20 +0200 (CEST) Received: from localhost ([::1]:36016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m14F6-0004OQ-0U for larch@yhetil.org; Wed, 07 Jul 2021 05:53:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m14Eo-00048w-FW for bug-guix@gnu.org; Wed, 07 Jul 2021 05:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39390) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m14Eo-0004yd-7Y for bug-guix@gnu.org; Wed, 07 Jul 2021 05:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m14Eo-0007IF-89 for bug-guix@gnu.org; Wed, 07 Jul 2021 05:53:02 -0400 Subject: bug#49418: Importing haskell packages from hackage doesn't apply metadata revisions Resent-From: "Philip Munksgaard" Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Wed, 07 Jul 2021 09:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 49418 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "John Kehayias" , "49418-done@debbugs.gnu.org" <49418-done@debbugs.gnu.org> Mail-Followup-To: 49418@debbugs.gnu.org, philip@munksgaard.me, philip@munksgaard.me Received: via spool by 49418-done@debbugs.gnu.org id=D49418.162565155327995 (code D ref 49418); Wed, 07 Jul 2021 09:53:02 +0000 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" Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625651601; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=l5Sq+5ID9QX4ELdgLzKZi92vn+DFEsFilG3MGGn5Za4=; b=XqdgpJoVpBBS7x5q20eZatJyLD1+QddNwwK7k+HDewHH55tDF4P/fQ1/h9I/EQUCn2WMPw 18SUY59iKz3BWbdY+/n6qVIhLnLYfA0AYPMdgbVR87ci0xtLNXmMtkQl3IMOUe0Q2OsfJ2 MqQ4eJSkY9GBLTvl6P63FZ4JY6PJQ/DYFjfe/PjgSW8DQ270h76akeaH2PTFYxx60+eG1+ gKiB8da99cQTTQro2HF4w9LqNvv71P9JFsbtAbWlpKyAfN9sRFAYB2d/8PSjdnx1LiACC1 LgjThL3Ogb3W/0GjVaZUawaVZSmzexakHza9LFR0IYraMDkzs1Hx57WMViP6DA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625651601; a=rsa-sha256; cv=none; b=GnowLtgx1CrzL36lhajeqjLOKPgz7U5QvfOfO5OMt9SWTZBKjpABe+DQ3V98RTRJigYdAv 5H6O6SshHY7NDUpBBleTWLxErKqKqw1ryR5xDG8LpR8L5tS/BNKHrkK2/9g0yv6lrzZK9u NRuoscWyQr2CvfSITqGkQClz/W2qNnp4vMp9qe72ep8R4GLrH+d5dMKKGcSMH603DcgZHW N4wuYpnCLSbFLZRAFwxa8GDanm5LQy9VGUkhG8SZIB0TU3KUvmIm7phQhlD+gwiy7LKO7l Y65hgVuq/Z+5ipwF64L2L3SDwEMBA9CsRPgkNc3bGEp7T82Xcr9MpL+0nSmh4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=munksgaard.me header.s=fm1 header.b=lXk1PWBj; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b="S/D7Vgsv"; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=munksgaard.me header.s=fm1 header.b=lXk1PWBj; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b="S/D7Vgsv"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: EB5171D014 X-Spam-Score: -0.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: NfXEhgrJ4Uss 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.