GNU bug report logs - #35863
`guix import hackage random` fails due to mysterious CRLF-related trouble

Previous Next

Package: guix;

Reported by: Robert Vollmert <rob <at> vllmrt.net>

Date: Thu, 23 May 2019 09:45:01 UTC

Severity: normal

Done: Robert Vollmert <rob <at> vllmrt.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Robert Vollmert <rob <at> vllmrt.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#35863: closed (`guix import hackage random` fails due to
 mysterious CRLF-related trouble)
Date: Sun, 30 Jun 2019 21:13:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 30 Jun 2019 23:12:43 +0200
with message-id <4C9ACADA-3794-48B0-BDE3-DF8542B2766A <at> vllmrt.net>
and subject line fixed by patch
has caused the debbugs.gnu.org bug report #35863,
regarding `guix import hackage random` fails due to mysterious CRLF-related trouble
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
35863: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35863
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Robert Vollmert <rob <at> vllmrt.net>
To: bug-guix <at> gnu.org
Subject: `guix import hackage random` fails due to mysterious CRLF-related
 trouble
Date: Thu, 23 May 2019 11:44:01 +0200
$ curl http://hackage.haskell.org/package/random-1.1/random.cabal > random.cabal
$ guix import hackage -s < random.cabal
 (at line 49, column 0)d token : 
Syntax error: unexpected end of input
guix import: error: failed to import cabal file from standard input
$ tr -d '\r'  < random.cabal | guix import hackage -s
(package …)

There’s nothing obviously wrong in the cabal file around line 49. The file seems
to have consistent CRLF line endings and doesn’t seem to have any non-ASCII
characters. (I can see that `canonical-newline-port` might well be buggy around
UTF8.)



[Message part 3 (message/rfc822, inline)]
From: Robert Vollmert <rob <at> vllmrt.net>
To: 35863-done <at> debbugs.gnu.org
Subject: fixed by patch
Date: Sun, 30 Jun 2019 23:12:43 +0200
This was fixed by

commit 3149c002644b927e0245d237cdda3a6aeca00e4a
Author: Robert Vollmert <rob <at> vllmrt.net>
Date:   Sun Jun 16 16:18:29 2019 +0200

    utils: canonical-newline-port: Fix handling of carriage return at buffer end.



This bug report was last modified 5 years and 321 days ago.

Previous Next


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