unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#35863: `guix import hackage random` fails due to mysterious CRLF-related trouble
@ 2019-05-23  9:44 Robert Vollmert
  2019-06-30 21:12 ` bug#35863: fixed by patch Robert Vollmert
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Vollmert @ 2019-05-23  9:44 UTC (permalink / raw)
  To: 35863

$ 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.)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#35863: fixed by patch
  2019-05-23  9:44 bug#35863: `guix import hackage random` fails due to mysterious CRLF-related trouble Robert Vollmert
@ 2019-06-30 21:12 ` Robert Vollmert
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Vollmert @ 2019-06-30 21:12 UTC (permalink / raw)
  To: 35863-done

This was fixed by

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-30 21:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23  9:44 bug#35863: `guix import hackage random` fails due to mysterious CRLF-related trouble Robert Vollmert
2019-06-30 21:12 ` bug#35863: fixed by patch Robert Vollmert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).