From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#21829: guix import hackage failures Date: Wed, 11 Nov 2015 12:18:47 +0100 Message-ID: <87d1vghjhk.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwTRf-00016P-LG for bug-guix@gnu.org; Wed, 11 Nov 2015 06:20:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwTRc-0007qR-D6 for bug-guix@gnu.org; Wed, 11 Nov 2015 06:20:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:42126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwTRc-0007qJ-Ai for bug-guix@gnu.org; Wed, 11 Nov 2015 06:20:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZwTRb-00066W-Dd for bug-guix@gnu.org; Wed, 11 Nov 2015 06:20:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Federico Beffa's message of "Tue, 10 Nov 2015 17:40:40 +0100") 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: Federico Beffa Cc: 21829@debbugs.gnu.org Federico Beffa skribis: > * I do not get backtraces, but the following error: The backtrace thing was fixed in 5453de3d. > * The following packages fail because the file has DOS line endings: > > happy, base-compat, base-orphans, fast-logger, generic-deriving, Object= Name, > 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? Could you explain how if fails exactly? Not really =E2=80=9Ceasily=E2=80=9D unfortunately. It depends on the APIs = you use. There=E2=80=99s the R6RS API from (rnrs io ports), which is supposed to magically do line ending conversion but doesn=E2=80=99t seem to work: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (make-transcoder (utf-8-codec) (eol-style crlf)) $13 =3D # scheme@(guile-user)> (transcoded-port (open-string-input-port "foo\n\rbar\n= \r") $13) $14 =3D # scheme@(guile-user)> (get-line $14) $15 =3D "foo" scheme@(guile-user)> (get-line $14) $16 =3D "\rbar" scheme@(guile-user)> (get-line $14) $17 =3D "\r" --8<---------------cut here---------------end--------------->8--- But then there are things like =E2=80=98string-tokenize=E2=80=99 that do th= e right thing: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (string-tokenize "foo\n\rbar\n\rbaz") $18 =3D ("foo" "bar" "baz") --8<---------------cut here---------------end--------------->8--- Thanks, Ludo=E2=80=99.