GNU bug report logs - #48701
cabal import parser doesn't support common stanzas

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: "Philip Munksgaard" <philip@HIDDEN>; merged with #48700; dated Thu, 27 May 2021 14:47:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Merged 48700 48701. Request was from Tobias Geerinckx-Rice <me@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 May 2021 14:46:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 27 10:46:53 2021
Received: from localhost ([127.0.0.1]:52556 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lmHHg-0007Id-F9
	for submit <at> debbugs.gnu.org; Thu, 27 May 2021 10:46:53 -0400
Received: from lists.gnu.org ([209.51.188.17]:53054)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <philip@HIDDEN>) id 1lmFxs-00014s-Uz
 for submit <at> debbugs.gnu.org; Thu, 27 May 2021 09:22:21 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44134)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <philip@HIDDEN>)
 id 1lmFxo-0001ZT-Rh
 for bug-guix@HIDDEN; Thu, 27 May 2021 09:22:20 -0400
Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:48385)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <philip@HIDDEN>)
 id 1lmFxj-0002vk-1f
 for bug-guix@HIDDEN; Thu, 27 May 2021 09:22:16 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id 1B4E3BA1
 for <bug-guix@HIDDEN>; Thu, 27 May 2021 09:22:04 -0400 (EDT)
Received: from imap11 ([10.202.2.61])
 by compute5.internal (MEProxy); Thu, 27 May 2021 09:22:04 -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=yDVvSMSRnKs/MrqB1C1K5IZD7CJStzB8gOIiDaeyzZs=; b=HsLY/I2p
 1JlqL+4r+8D/fuLhEWakPa/ZF4qcaFBCCO356g+KQ7CFm2R4XX0debf3Tf99p6V9
 Jsjlf6u1HVySsr6ouZX5FlX34TZ0Rex0Zq8vBQbolwrMpct30eS19lumKkVdvRLr
 1WThhkKDUm1rK2hXDm2ayyYNvt+oPMvKAwwcnQ4H0AtllwbvTJ98UcNlrld/Nlt7
 /oEBfptD1G/AjQ97KVo/dRfDllmHUthc7b3A01iccUqJgEn2CkPyNXaHMB7q1WMT
 sqX+Iw3I4i5typ2vElhq/4NfK1pt0aPSEvhbM5q3/Jm263uDAfcNw7Zv/mMVt6Uz
 GkGtngxM6rbZAA==
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=fm2; bh=yDVvSMSRnKs/MrqB1C1K5IZD7CJSt
 zB8gOIiDaeyzZs=; b=f5aKwF9kzwq94oeneV5CjvXrFzDxyogFKrIcozHL52Syk
 Sisa4BIzTt65gETHlzy1ipkhEQnCwAtSr57SJiWCRSGt7Jw39x6ZCEsJfgalDtbP
 MEmvT7Aztaj3sLFyTHDS1hngX4ZaBWUsDUqMmYV7ADNoV1s8VQRW6NmtbJedk7vO
 bzS/jgGDHH/2miVS2Wu7xJh7dJqFoA2g7KsLmRyXFqG6OlHmE9SswXVZmEeRAsko
 8qDvWjBLddN7V2lerkVpUJvfpZdIzI6d2O0zdKzsK+uaDERW36UtJFGvbUIywzia
 wxo0XutQn+2Q+gHzSkFUz2UJY2lnkzXfnF4xDAJSg==
X-ME-Sender: <xms:-5yvYJEBiEZOaP5RTxd8D73tRdmCin1yEPiFU4VJy69dZlgYtYicAA>
 <xme:-5yvYOUM87BEOa1htC1wnphPkLBScAZB1m9z78QVekczTlu1y5cMBtsYRaJYSVgLG
 doRcNBd-bGq-bdoV7Y>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdekhedgieegucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd
 erredtnecuhfhrohhmpedfrfhhihhlihhpucfouhhnkhhsghgrrghrugdfuceophhhihhl
 ihhpsehmuhhnkhhsghgrrghrugdrmhgvqeenucggtffrrghtthgvrhhnpeelueevheefte
 eiffekudeuueekjefftedtudekheeikeevudegkefgudevfeevteenucffohhmrghinhep
 ghhnuhdrohhrghdprhgvrgguthhhvgguohgtshdrihhopdhhrghskhgvlhhlrdhorhhgne
 cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhhihhl
 ihhpsehmuhhnkhhsghgrrghrugdrmhgv
X-ME-Proxy: <xmx:-5yvYLKTjiUBWESZCHc6maR97UfI9rFyvjxgoZOZTrZNa_I7aCgyVQ>
 <xmx:-5yvYPE6Yt8mc4HQXbygb-1sV1vHAYTan5EKTo2_t5CPQGWnPaKhvg>
 <xmx:-5yvYPViN-6C1u0eWLLL4PzWlA6c56tIOoUspeGOtW-uQq-AvDaDlw>
 <xmx:-5yvYHitxmXoD83hxsPnqr8017VR0SzuRlERNt482sIAWB2ulHKlVw>
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id 582D024005D; Thu, 27 May 2021 09:22:03 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.5.0-alpha0-468-gdb53729b73-fm-20210517.001-gdb53729b
Mime-Version: 1.0
Message-Id: <6f94e4a1-fc27-479e-8c9f-f1cd7542d6f5@HIDDEN>
Date: Thu, 27 May 2021 15:21:43 +0200
From: "Philip Munksgaard" <philip@HIDDEN>
To: bug-guix@HIDDEN
Subject: cabal import parser doesn't support common stanzas
Content-Type: text/plain
Received-SPF: pass client-ip=64.147.123.19; envelope-from=philip@HIDDEN;
 helo=wout3-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_H4=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-Mailman-Approved-At: Thu, 27 May 2021 10:46:51 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

As far as I can tell, the cabal parser for the `guix import` command (https://git.savannah.gnu.org/cgit/guix.git/tree/guix/import/cabal.scm) does not support common stanzas, as specified in the cabal specification (https://cabal.readthedocs.io/en/3.4/cabal-package.html#common-stanzas).

This means that some packages, like "versions" (https://hackage.haskell.org/package/versions-5.0.0/src/versions.cabal) and all depending packages cannot be imported using `guix import hackage versions`:

```
$ guix import hackage versions
Syntax error: unexpected token : common (at line 36, column 0)
Syntax error: unexpected end of input
guix import: error: failed to download cabal file for package 'versions'
```




Acknowledgement sent to "Philip Munksgaard" <philip@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#48701; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 30 May 2021 17:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.