From: Marius Bakke <mbakke@fastmail.com>
To: guix-devel@gnu.org
Subject: How to deal with UTF-8 filenames?
Date: Sun, 04 Dec 2016 20:56:07 +0100 [thread overview]
Message-ID: <8760mzbh9k.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2295 bytes --]
Hello Guix,
I'm trying to package the Norwegian Bokmål Aspell dictionary, which
contains a 'bokmål.alias' in the source archive. This causes 'readdir'
to throw a decoding-error. Here is the backtrace:
phase `unpack' succeeded after 0.1 seconds
starting phase `patch-usr-bin-file'
Backtrace:
In ice-9/boot-9.scm:
160: 15 [catch #t #<catch-closure 8cac40> ...]
In unknown file:
?: 14 [apply-smob/1 #<catch-closure 8cac40>]
In ice-9/boot-9.scm:
66: 13 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 12 [eval # #]
In ice-9/boot-9.scm:
2404: 11 [save-module-excursion #<procedure 8eb840 at ice-9/boot-9.scm:4051:3 ()>]
4056: 10 [#<procedure 8eb840 at ice-9/boot-9.scm:4051:3 ()>]
1727: 9 [%start-stack load-stack #<procedure 8fdcc0 at ice-9/boot-9.scm:4047:10 ()>]
1732: 8 [#<procedure 8fe990 ()>]
In unknown file:
?: 7 [primitive-load "/gnu/store/2f1ikq718l8q0lz7y771m503vdwjf2q9-aspell-dict-nb-0.50.1-0-guile-builder"]
In ice-9/eval.scm:
387: 6 [eval # ()]
In srfi/srfi-1.scm:
827: 5 [every1 #<procedure d661e0 at /gnu/store/ciqw5z470c8ihl1kfswj1j3ix6hs092d-module-import/guix/build/gnu-build-system.scm:623:9 (expr)> ...]
In /gnu/store/ciqw5z470c8ihl1kfswj1j3ix6hs092d-module-import/guix/build/gnu-build-system.scm:
627: 4 [#<procedure d661e0 at /gnu/store/ciqw5z470c8ihl1kfswj1j3ix6hs092d-module-import/guix/build/gnu-build-system.scm:623:9 (expr)> #]
166: 3 [patch-usr-bin-file #:native-inputs #f ...]
In /gnu/store/ciqw5z470c8ihl1kfswj1j3ix6hs092d-module-import/guix/build/utils.scm:
336: 2 [find-files "." "^configure$" ...]
In ice-9/ftw.scm:
481: 1 [loop "." "" ...]
In unknown file:
?: 0 [readdir #<directory stream e34a60>]
ERROR: In procedure readdir:
ERROR: Throw to key `decoding-error' with args `("scm_from_stringn" "input locale conversion error" 84 #vu8(98 111 107 109 229 108 46 97 108 105 97 115))'.
builder for `/gnu/store/fnhnrmshycf6qgfv6b9xsil3ppvracad-aspell-dict-nb-0.50.1-0.drv' failed with exit code 1
cannot build derivation `/gnu/store/419306s2mf3300906ikk39vjy0bqqs64-profile.drv': 1 dependencies couldn't be built
This also happens in the 'patch-source-shebangs' phase which is
necessary for the 'configure' script to work.
Any suggestions for how to deal with this?
Patch attached.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
[-- Attachment #2: 0001-gnu-Add-Norwegian-Bokm-l-Aspell-dictionary.patch --]
[-- Type: text/x-patch, Size: 1583 bytes --]
From 6e6dd7144eecf9c04ba47c4a49207f17181259be Mon Sep 17 00:00:00 2001
From: Marius Bakke <mbakke@fastmail.com>
Date: Sun, 4 Dec 2016 19:56:20 +0100
Subject: [PATCH] =?UTF-8?q?gnu:=20Add=20Norwegian=20Bokm=C3=A5l=20Aspell?=
=?UTF-8?q?=20dictionary.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* gnu/packages/aspell.scm (aspell-dict-nb): New variable.
---
gnu/packages/aspell.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/aspell.scm b/gnu/packages/aspell.scm
index d27e8090b..396e89b2c 100644
--- a/gnu/packages/aspell.scm
+++ b/gnu/packages/aspell.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Christopher Andersson <christopher@8bits.nu>
+;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -150,6 +151,14 @@ dictionaries, including personal ones.")
(base32
"1gdf7bc1a0kmxsmphdqq8pl01h667mjsj6hihy6kqy14k5qdq69v")))
+(define-public aspell-dict-nb
+ (aspell-dictionary "nb" "Norwegian Bokmål"
+ #:version "0.50.1-0"
+ #:prefix "aspell-"
+ #:sha256
+ (base32
+ "12i2bmgdnlkzfinb20j2a0j4a20q91a9j8qpq5vgabbvc65nwx77")))
+
(define-public aspell-dict-nl
(aspell-dictionary "nl" "Dutch"
#:version "0.50-2"
--
2.11.0
next reply other threads:[~2016-12-04 19:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-04 19:56 Marius Bakke [this message]
2016-12-05 8:01 ` How to deal with Latin1 filenames? Marius Bakke
2016-12-05 21:07 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760mzbh9k.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me \
--to=mbakke@fastmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.