From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: bug#21829: guix import hackage failures Date: Tue, 10 Nov 2015 17:40:40 +0100 Message-ID: References: <87twp16c8l.fsf@denknerd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwByk-0005Oa-US for bug-guix@gnu.org; Tue, 10 Nov 2015 11:41:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwByg-0008E4-Q1 for bug-guix@gnu.org; Tue, 10 Nov 2015 11:41:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:41534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwByg-0008Dz-MS for bug-guix@gnu.org; Tue, 10 Nov 2015 11:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZwByg-0001Hu-E1 for bug-guix@gnu.org; Tue, 10 Nov 2015 11:41:02 -0500 In-Reply-To: <87twp16c8l.fsf@denknerd.org> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 21829@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= , Paul van der Walt Hi, I have checked the errors and have found the following: * I do not get backtraces, but the following error: ------------------------------ $ ./pre-inst-env guix import hackage xmonad-contrib Starting download of /tmp/guix-file.yf7Cor >From http://hackage.haskell.org/package/xmonad-contrib/xmonad-contrib.cabal... xmonad-contrib.cabal 761KiB/s 00:00 | 13KiB transferred Syntax error: unexpected token : true (at line 75, column 7) Syntax error: unexpected end of input guix import: error: failed to download cabal file for package 'xmonad-contrib' ------------------------------ not sure what's different. * The following packages fail because the file has DOS line endings: happy, base-compat, base-orphans, fast-logger, generic-deriving, ObjectName, SDL, setenv, split, StateVar, syb, transformers-base, wai, xmonad (+ 1 more problem), zlib (+ 1 more problem). Changing the encoding to UNIX line endings fixes the problem. This is the number 1 problem. Is there a Guile way to easily fix this? * nats gets imported correctly here?! * The rest are genuine parsing errors. A brief summary of them and how to fix them follows: - xmonad-contrib, xmonad, xmonad-extras:: + "if true" not handled. + "impl (ghc == 6.10.1) && arch (x86_64)" --> "impl(ghc == 6.10.1) && arch(x86_64)" OK - clock, hscolour, QuickCheck:: + "default : Ture" --> "default: True" OK + "impl (ghc < 7.6)" --> "impl(ghc < 7.6)" - fgl:: "description: { An .... }" -> No braces OK. Braces not handled outside of groups. - old-locale:: "Cabal-Version:>=1.10" --> "Cabal-Version: >=1.10" OK - streaming-common:: same group indentation level changes from 4 to 2 spaces! This file is buggy! - tagged:: "if impl(ghc>=7.2 && <7.5)". Probably not handled correctly by parser - zlib:: no final "\n" on last line I will look into fixing them, but not immediately because of other priorities. If somebody else is interested in diving into this, please let me know, so that we don't duplicate efforts. Regards, Fede