GNU bug report logs - #25138
guix import hackage darcs: fails due to flag executable

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: Dave Love <fx@HIDDEN>; dated Thu, 8 Dec 2016 13:57:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug title to 'guix import hackage darcs: fails due to flag executable' from 'failing hackage import' Request was from Robert Vollmert <rob@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 25138) by debbugs.gnu.org; 22 May 2019 15:40:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 22 11:40:20 2019
Received: from localhost ([127.0.0.1]:42728 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hTTLn-0007KY-TB
	for submit <at> debbugs.gnu.org; Wed, 22 May 2019 11:40:20 -0400
Received: from mx1.mailbox.org ([80.241.60.212]:64880)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rob@HIDDEN>) id 1hTTLl-0007KB-8w
 for 25138 <at> debbugs.gnu.org; Wed, 22 May 2019 11:40:18 -0400
Received: from smtp1.mailbox.org (smtp1.mailbox.org
 [IPv6:2001:67c:2050:105:465:1:1:0])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mx1.mailbox.org (Postfix) with ESMTPS id 0A06B51ECF
 for <25138 <at> debbugs.gnu.org>; Wed, 22 May 2019 17:40:09 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp1.mailbox.org ([80.241.60.240])
 by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de
 [80.241.56.117]) (amavisd-new, port 10030)
 with ESMTP id ScTOHSYgeAks for <25138 <at> debbugs.gnu.org>;
 Wed, 22 May 2019 17:39:41 +0200 (CEST)
From: Robert Vollmert <rob@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Subject: updated import error
Message-Id: <67BF587B-5E28-406D-AB86-9D6A8432CD10@HIDDEN>
Date: Wed, 22 May 2019 17:39:40 +0200
To: 25138 <at> debbugs.gnu.org
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 25138
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: -1.7 (-)

These days it=E2=80=99s:

Syntax error: unexpected token : (buildable (False)) (at line 471, =
column 4)
Syntax error: unexpected end of input

Relevant cabal extract:

   469  Executable          darcs
   470    if !flag(executable)
   471      buildable: False
   472    else
   473      buildable: True
   474 =20





Information forwarded to bug-guix@HIDDEN:
bug#25138; Package guix. Full text available.

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


Received: (at 25138) by debbugs.gnu.org; 12 Dec 2016 13:41:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 12 08:41:07 2016
Received: from localhost ([127.0.0.1]:38898 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cGQqo-0005nN-So
	for submit <at> debbugs.gnu.org; Mon, 12 Dec 2016 08:41:07 -0500
Received: from chsophx.liv.ac.uk ([138.253.100.117]:34968)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <D.Love@HIDDEN>) id 1cGQqn-0005md-OG
 for 25138 <at> debbugs.gnu.org; Mon, 12 Dec 2016 08:41:06 -0500
Received: from chsophx.liv.ac.uk (localhost [127.0.0.1])
 by localhost (Postfix) with SMTP id 2CCAB3E0451
 for <25138 <at> debbugs.gnu.org>; Mon, 12 Dec 2016 13:41:00 +0000 (GMT)
Received: from mxf.liv.ac.uk (mxf.liv.ac.uk [138.253.100.60])
 by chsophx.liv.ac.uk (Postfix) with ESMTP id 269E03E0437
 for <25138 <at> debbugs.gnu.org>; Mon, 12 Dec 2016 13:41:00 +0000 (GMT)
Received: from mailhubd.liv.ac.uk ([138.253.100.81])
 by mxf.liv.ac.uk with esmtp (Exim 4.80.1)
 (envelope-from <D.Love@HIDDEN>) id 1cGQqi-0007vR-3t
 for 25138 <at> debbugs.gnu.org; Mon, 12 Dec 2016 13:41:00 +0000
Received: from localhost ([127.0.0.1] helo=mailhubd.liv.ac.uk)
 by mailhubd.liv.ac.uk with esmtp (Exim 4.80.1)
 (envelope-from <D.Love@HIDDEN>)
 id 1cGQqi-0005O1-2w; Mon, 12 Dec 2016 13:41:00 +0000
Received: from pc102091.liv.ac.uk ([138.253.102.91] helo=albion)
 by mailhubd.liv.ac.uk with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128)
 (Exim 4.84_2) (envelope-from <dlove@HIDDEN>)
 id 1cGQqh-0005NX-VS; Mon, 12 Dec 2016 13:40:59 +0000
Received: from dlove by albion with local (Exim 4.82)
 (envelope-from <dlove@HIDDEN>)
 id 1cGQqh-0001Rt-PS; Mon, 12 Dec 2016 13:40:59 +0000
From: Dave Love <fx@HIDDEN>
To: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@HIDDEN>
Subject: Re: bug#25138: failing hackage import
References: <87vauu7ceb.fsf@HIDDEN> <87inqs7rci.fsf@HIDDEN>
X-Draft-From: ("Misc" 20354)
Date: Mon, 12 Dec 2016 13:40:59 +0000
In-Reply-To: <87inqs7rci.fsf@HIDDEN> ("Ludovic =?iso-8859-1?Q?Court=E8s?=
 =?iso-8859-1?Q?=22's?= message of "Fri, 9
 Dec 2016 21:57:49 +0100")
Message-ID: <878trl5kpg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 25138
Cc: Federico Beffa <beffa@HIDDEN>, 25138 <at> debbugs.gnu.org
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.3 (--)

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> I=E2=80=99m seeing a different error:
>
> --8<---------------cut here---------------start------------->8---
> $ git describe
> v0.11.0-3322-gf80b4d2
> $ ./pre-inst-env guix import hackage -t darcs
> Syntax error: unexpected token : (buildable (False)) (at line 494, column=
 4)
> Syntax error: unexpected end of input
> guix import: error: failed to download cabal file for package 'darcs'
> --8<---------------cut here---------------end--------------->8---

That's what I saw with 0.11, but the new version with the backtrace
seemed a worthwhile improvement!  (I tried an update after looking for a
way to configure generating backtraces and not finding one for guix or
an environment variable for guile that might have done it.)




Information forwarded to bug-guix@HIDDEN:
bug#25138; Package guix. Full text available.

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


Received: (at 25138) by debbugs.gnu.org; 10 Dec 2016 00:37:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 09 19:37:15 2016
Received: from localhost ([127.0.0.1]:36416 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cFVf9-0004wv-C2
	for submit <at> debbugs.gnu.org; Fri, 09 Dec 2016 19:37:15 -0500
Received: from mail-ua0-f196.google.com ([209.85.217.196]:36159)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <federico.beffa@HIDDEN>) id 1cFVf7-0004wj-JO
 for 25138 <at> debbugs.gnu.org; Fri, 09 Dec 2016 19:37:13 -0500
Received: by mail-ua0-f196.google.com with SMTP id 12so3359251uas.3
 for <25138 <at> debbugs.gnu.org>; Fri, 09 Dec 2016 16:37:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:sender:in-reply-to:references:from:date:message-id
 :subject:to:cc:content-transfer-encoding;
 bh=tXxSp7KAFiHnHf/VmOpgm/DKaIzm6Y1IuWY0SAJnYrY=;
 b=zBvfyHOarLX2ofWeRGNJKYsNJ/AaPe4vsq47X81d6pmFmeHXR0GjbrFZzjvS/7zyNs
 jDz6oaOudu17R+DCe8ZyQ06h8JBhDr5yDpU3l7SnUpK1EhT2dM71oQ87lET21kq8kk1H
 acq4ExCUm/FzdfgReG9g+5t2HRuzlyw4TMoNigTJB+4E9nQi25GbgpWlK2tCEHnFpyfE
 0UUP7wg9F9T+O147JkOKaFe3g2ZJaepotab4n4jRy8tSb1Os9Cg7LouaMZ5MFWPsHpWj
 M4woQy51E2vCc8Aj/1eS2TJ3PQz+baIrV98jFuhenys9neHiyt3mAhRBSVxfoTqKcVqk
 Mzrg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
 :date:message-id:subject:to:cc:content-transfer-encoding;
 bh=tXxSp7KAFiHnHf/VmOpgm/DKaIzm6Y1IuWY0SAJnYrY=;
 b=fLNkqLmDQURI428IPfwr6YmKoUSNWysOOTFdBBpR0AYpguES7Y41QOUQFCdrKdTTtf
 4LF2LPaJ2XYbjmtFW/Bl3FDL1uGxb2GX5gpYoApt7yxwsCTFuJt0vlFMG8vsF71WBsvt
 +AXerkev5JffhJUoxrBPPmhDrP07HHIUUENGut6GfnojXwwuN6M2RSICjmZRXnhVcLg4
 OJ1/IlBJnKySnvbAI8nBUrKOiWEZIR1M5IH55a1ImwaAPOAWpQ3SrifGewGuzSlJq0LG
 /2H/7WzkAO/X8BTAcsByUF/XTav48RFeBirHdepBL/ekHhcXCb7rl5aTAhnaFNb+EdzA
 apVQ==
X-Gm-Message-State: AKaTC00N3f/ocKyi5v4XCBKvVPFzd22jIB1HaeFqCk32VPsGAwRLrkHK35j6/aGUKUJMr70mqyPGPYDh2EA8WA==
X-Received: by 10.176.81.178 with SMTP id g47mr65041656uaa.78.1481321377100;
 Fri, 09 Dec 2016 14:09:37 -0800 (PST)
MIME-Version: 1.0
Received: by 10.103.47.19 with HTTP; Fri, 9 Dec 2016 14:09:36 -0800 (PST)
In-Reply-To: <87inqs7rci.fsf@HIDDEN>
References: <87vauu7ceb.fsf@HIDDEN> <87inqs7rci.fsf@HIDDEN>
From: Federico Beffa <beffa@HIDDEN>
Date: Fri, 9 Dec 2016 23:09:36 +0100
X-Google-Sender-Auth: 9bAlEAkNqvo0WZFof_8_0HlmE3M
Message-ID: <CAKrPhPP0nKPwMmdtejLR1MPGKw_WF5TJUKDY9Zzezs_E_k+Jkg@HIDDEN>
Subject: Re: bug#25138: failing hackage import
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 25138
Cc: Dave Love <fx@HIDDEN>, 25138 <at> debbugs.gnu.org
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: 0.5 (/)

On Fri, Dec 9, 2016 at 9:57 PM, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
> I=E2=80=99m seeing a different error:
>
> --8<---------------cut here---------------start------------->8---
> $ git describe
> v0.11.0-3322-gf80b4d2
> $ ./pre-inst-env guix import hackage -t darcs
> Syntax error: unexpected token : (buildable (False)) (at line 494, column=
 4)
> Syntax error: unexpected end of input
> guix import: error: failed to download cabal file for package 'darcs'
> --8<---------------cut here---------------end--------------->8---
>
> The .cabal file is at
> <https://hackage.haskell.org/package/darcs/darcs.cabal> and the faulty
> line comes from:
>
> --8<---------------cut here---------------start------------->8---
> Executable          darcs
>   if !flag(executable)
>     buildable: False
>   else
>     buildable: True
> --8<---------------cut here---------------end--------------->8---
>
> In addition, this .cabal file has =E2=80=9CBuild-Type: Custom=E2=80=9D, w=
hich is
> currently not supported as noted in <https://bugs.gnu.org/23961>.
>
> Federico, WDYT?

The problem is that the name of the flag is 'executable' and the
string 'executable' is also a reserved keyword to define the start of
a cabal file section.  The cabal parser incorrectly dismissed this
keyword as a possible flag name (in the code it is referred to as a
test identifier).  See line 369 of the file 'guix/import/cabal.scm'.
The predicate 'is-id' should be smarter and recognize if the string
'executable' refers to the start of an 'executable section' or not
(and similarly for some other reserved keywords dismissed by the same
procedure).

The predicate 'is-id' dismisses some specific reserved keywords such
as 'executable' because this check is performed before the ones (based
on full lines) such as 'is-exec' which checks for the start of an
executable section.

HTH,
Fede




Information forwarded to bug-guix@HIDDEN:
bug#25138; Package guix. Full text available.

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


Received: (at 25138) by debbugs.gnu.org; 9 Dec 2016 23:25:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 09 18:25:16 2016
Received: from localhost ([127.0.0.1]:36359 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cFUXU-0006Wl-6P
	for submit <at> debbugs.gnu.org; Fri, 09 Dec 2016 18:25:16 -0500
Received: from eggs.gnu.org ([208.118.235.92]:59640)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1cFU8h-0004Ph-AU
 for 25138 <at> debbugs.gnu.org; Fri, 09 Dec 2016 17:59:39 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1cFSEw-0007tY-LR
 for 25138 <at> debbugs.gnu.org; Fri, 09 Dec 2016 15:57:59 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45780)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1cFSEq-0007s2-88; Fri, 09 Dec 2016 15:57:52 -0500
Received: from reverse-83.fdn.fr ([80.67.176.83]:36586 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1cFSEp-0005A7-BL; Fri, 09 Dec 2016 15:57:51 -0500
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Dave Love <fx@HIDDEN>
Subject: Re: bug#25138: failing hackage import
References: <87vauu7ceb.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 19 Frimaire an 225 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Fri, 09 Dec 2016 21:57:49 +0100
In-Reply-To: <87vauu7ceb.fsf@HIDDEN> (Dave Love's message of "Thu, 
 08 Dec 2016 13:56:12 +0000")
Message-ID: <87inqs7rci.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -8.0 (--------)
X-Debbugs-Envelope-To: 25138
Cc: Federico Beffa <beffa@HIDDEN>, 25138 <at> debbugs.gnu.org
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: -8.0 (--------)

Hi,

Dave Love <fx@HIDDEN> skribis:

> With guix 20161208.12 I see the following, which would probably take me
> a while to debug as I don't know my way around.  (With the 0.11.0
> version I got a different error without a backtrace.  I upgraded after
> seeing a bug fix for hackage in the tracker.)
>
>   $ guix import hackage -t darcs
>   Backtrace:
>   In ice-9/boot-9.scm:
>    160: 16 [catch #t #<catch-closure 11e6e40> ...]
>   In unknown file:
>      ?: 15 [apply-smob/1 #<catch-closure 11e6e40>]
>   In ice-9/boot-9.scm:
>     66: 14 [call-with-prompt prompt0 ...]
>   In ice-9/eval.scm:
>    432: 13 [eval # #]
>   In ice-9/boot-9.scm:
>   2404: 12 [save-module-excursion #<procedure 1206900 at ice-9/boot-9.scm=
:4051:3 ()>]
>   4056: 11 [#<procedure 1206900 at ice-9/boot-9.scm:4051:3 ()>]
>   1727: 10 [%start-stack load-stack ...]
>   1732: 9 [#<procedure 1219b70 ()>]
>   In unknown file:
>      ?: 8 [primitive-load "/gnu/store/hckw4cw3m6r55afrldhn9gf66wrznh7i-gu=
ix-0.11.0-8.8d12/bin/.guix-real"]
>   In guix/ui.scm:
>   1222: 7 [run-guix-command import "hackage" "-t" "darcs"]
>   In guix/scripts/import.scm:
>    110: 6 [guix-import "hackage" "-t" "darcs"]
>   In guix/scripts/import/hackage.scm:
>    110: 5 [guix-import-hackage "-t" "darcs"]
>   In guix/import/hackage.scm:
>    247: 4 [hackage->guix-package "darcs" #:include-test-dependencies? ...]
>    113: 3 [hackage-fetch "darcs"]
>   In guix/import/cabal.scm:
>    580: 2 [read-cabal #<input: r6rs-custom-binary-input-port 38ef8f0> #f]
>   In system/base/lalr.upstream.scm:
>   1956: 1 [___run]
>   1851: 0 [___push 1 6 ...]
>=20=20=20
>   system/base/lalr.upstream.scm:1851:2: In procedure ___push:
>   system/base/lalr.upstream.scm:1851:2: Wrong number of arguments to #<pr=
ocedure ___push (delta new-category lvalue tok)>

I=E2=80=99m seeing a different error:

--8<---------------cut here---------------start------------->8---
$ git describe
v0.11.0-3322-gf80b4d2
$ ./pre-inst-env guix import hackage -t darcs
Syntax error: unexpected token : (buildable (False)) (at line 494, column 4)
Syntax error: unexpected end of input
guix import: error: failed to download cabal file for package 'darcs'
--8<---------------cut here---------------end--------------->8---

The .cabal file is at
<https://hackage.haskell.org/package/darcs/darcs.cabal> and the faulty
line comes from:

--8<---------------cut here---------------start------------->8---
Executable          darcs
  if !flag(executable)
    buildable: False
  else
    buildable: True
--8<---------------cut here---------------end--------------->8---

In addition, this .cabal file has =E2=80=9CBuild-Type: Custom=E2=80=9D, whi=
ch is
currently not supported as noted in <https://bugs.gnu.org/23961>.

Federico, WDYT?

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#25138; Package guix. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 8 Dec 2016 13:56:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 08 08:56:28 2016
Received: from localhost ([127.0.0.1]:60893 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cEzBU-0006pm-Ig
	for submit <at> debbugs.gnu.org; Thu, 08 Dec 2016 08:56:28 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53757)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <D.Love@HIDDEN>) id 1cEzBS-0006pV-LX
 for submit <at> debbugs.gnu.org; Thu, 08 Dec 2016 08:56:26 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <D.Love@HIDDEN>) id 1cEzBM-00075m-EH
 for submit <at> debbugs.gnu.org; Thu, 08 Dec 2016 08:56:21 -0500
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 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:48727)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <D.Love@HIDDEN>)
 id 1cEzBM-00075i-Be
 for submit <at> debbugs.gnu.org; Thu, 08 Dec 2016 08:56:20 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44705)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <D.Love@HIDDEN>) id 1cEzBL-0002ID-2B
 for bug-guix@HIDDEN; Thu, 08 Dec 2016 08:56:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <D.Love@HIDDEN>) id 1cEzBH-00073Z-0V
 for bug-guix@HIDDEN; Thu, 08 Dec 2016 08:56:19 -0500
Received: from bhsophx.liv.ac.uk ([138.253.100.116]:45262)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <D.Love@HIDDEN>)
 id 1cEzBG-000737-Qi
 for bug-guix@HIDDEN; Thu, 08 Dec 2016 08:56:14 -0500
Received: from bhsophx.liv.ac.uk (localhost [127.0.0.1])
 by localhost (Postfix) with SMTP id BED72C0454
 for <bug-guix@HIDDEN>; Thu,  8 Dec 2016 13:56:12 +0000 (GMT)
Received: from mxg.liv.ac.uk (mxg.liv.ac.uk [138.253.100.62])
 by bhsophx.liv.ac.uk (Postfix) with ESMTP id B8E8BC0218
 for <bug-guix@HIDDEN>; Thu,  8 Dec 2016 13:56:12 +0000 (GMT)
Received: from mailhube.liv.ac.uk ([138.253.100.45])
 by mxg.liv.ac.uk with esmtp (Exim 4.80.1)
 (envelope-from <D.Love@HIDDEN>) id 1cEzBE-0001QQ-N0
 for bug-guix@HIDDEN; Thu, 08 Dec 2016 13:56:12 +0000
Received: from localhost ([127.0.0.1] helo=mailhube.liv.ac.uk)
 by mailhube.liv.ac.uk with esmtp (Exim 4.80.1)
 (envelope-from <D.Love@HIDDEN>) id 1cEzBE-0005uA-IX
 for bug-guix@HIDDEN; Thu, 08 Dec 2016 13:56:12 +0000
Received: from pc102091.liv.ac.uk ([138.253.102.91] helo=albion)
 by mailhube.liv.ac.uk with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128)
 (Exim 4.84_2) (envelope-from <dlove@HIDDEN>)
 id 1cEzBE-0005u4-FG
 for bug-guix@HIDDEN; Thu, 08 Dec 2016 13:56:12 +0000
Received: from dlove by albion with local (Exim 4.82)
 (envelope-from <dlove@HIDDEN>) id 1cEzBE-00076s-9L
 for bug-guix@HIDDEN; Thu, 08 Dec 2016 13:56:12 +0000
From: Dave Love <fx@HIDDEN>
To: bug-guix@HIDDEN
Subject: failing hackage import
Date: Thu, 08 Dec 2016 13:56:12 +0000
Message-ID: <87vauu7ceb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
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: -4.0 (----)

With guix 20161208.12 I see the following, which would probably take me
a while to debug as I don't know my way around.  (With the 0.11.0
version I got a different error without a backtrace.  I upgraded after
seeing a bug fix for hackage in the tracker.)

  $ guix import hackage -t darcs
  Backtrace:
  In ice-9/boot-9.scm:
   160: 16 [catch #t #<catch-closure 11e6e40> ...]
  In unknown file:
     ?: 15 [apply-smob/1 #<catch-closure 11e6e40>]
  In ice-9/boot-9.scm:
    66: 14 [call-with-prompt prompt0 ...]
  In ice-9/eval.scm:
   432: 13 [eval # #]
  In ice-9/boot-9.scm:
  2404: 12 [save-module-excursion #<procedure 1206900 at ice-9/boot-9.scm:4051:3 ()>]
  4056: 11 [#<procedure 1206900 at ice-9/boot-9.scm:4051:3 ()>]
  1727: 10 [%start-stack load-stack ...]
  1732: 9 [#<procedure 1219b70 ()>]
  In unknown file:
     ?: 8 [primitive-load "/gnu/store/hckw4cw3m6r55afrldhn9gf66wrznh7i-guix-0.11.0-8.8d12/bin/.guix-real"]
  In guix/ui.scm:
  1222: 7 [run-guix-command import "hackage" "-t" "darcs"]
  In guix/scripts/import.scm:
   110: 6 [guix-import "hackage" "-t" "darcs"]
  In guix/scripts/import/hackage.scm:
   110: 5 [guix-import-hackage "-t" "darcs"]
  In guix/import/hackage.scm:
   247: 4 [hackage->guix-package "darcs" #:include-test-dependencies? ...]
   113: 3 [hackage-fetch "darcs"]
  In guix/import/cabal.scm:
   580: 2 [read-cabal #<input: r6rs-custom-binary-input-port 38ef8f0> #f]
  In system/base/lalr.upstream.scm:
  1956: 1 [___run]
  1851: 0 [___push 1 6 ...]
  
  system/base/lalr.upstream.scm:1851:2: In procedure ___push:
  system/base/lalr.upstream.scm:1851:2: Wrong number of arguments to #<procedure ___push (delta new-category lvalue tok)>




Acknowledgement sent to Dave Love <fx@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#25138; 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: Mon, 25 Nov 2019 12:00:02 UTC

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