From: Brendan Tildesley <mail@brendan.scot>
To: Maxime Devos <maximedevos@telenet.be>,
"53204@debbugs.gnu.org" <53204@debbugs.gnu.org>
Subject: bug#53204: [patch] font-cns11643: ... unzip error
Date: Tue, 1 Feb 2022 02:23:50 +0100 (CET) [thread overview]
Message-ID: <1142880891.227439.1643678630203@office.mailbox.org> (raw)
In-Reply-To: <4e25e509335d3794271767594ba2988f9ab82cab.camel@telenet.be>
[-- Attachment #1: Type: text/plain, Size: 847 bytes --]
> On 01/31/2022 1:35 PM Maxime Devos <maximedevos@telenet.be> wrote:
>
>
> Brendan Tildesley schreef op ma 31-01-2022 om 12:23 [+0100]:
> > I just noticed there is also this:
> >
> > starting phase `install-locale'
> > warning: failed to install 'en_US.utf8' locale: Invalid argument
> >
> >
> > It occurs for other font-build-system fonts too. Adding glibc-utf8-locales or glibc-locales didn't fix it.
> > I don't understand it because its just based off gnu-build-system which doesn't have that issue.
> >
> > It doesn't GUIX_LOCPATH either
>
> Perhaps the cause is that font-build-system doesn't have glibc among
> its (implicit) native-inputs, and hence there's no GUIX_LOCPATH search
> path (see <https://issues.guix.gnu.org/22138>)?
>
> Adding glibc to the native-inputs might work.
>
> Greetings,
> Maxime.
Fixed it (attached).
[-- Attachment #2: 0001-gnu-font-cns11643-Update-to-98.1.20220104.patch --]
[-- Type: text/x-patch, Size: 2788 bytes --]
From 7af44a6109dae1c056abb10d18e8eecb7113e836 Mon Sep 17 00:00:00 2001
From: Brendan Tildesley <mail@brendan.scot>
Date: Mon, 31 Jan 2022 12:55:23 +1100
Subject: [PATCH] gnu: font-cns11643: Update to 98.1.20220104.
* gnu/packages/fonts.scm (font-cns11643): Update to 98.1.20220104.
Use stable archive.org link.
Only extract the files we need, and fix an error caused by unzip
"missmatch local filename" warnings.
---
gnu/packages/fonts.scm | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 8afb453970..e3a974b6b0 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -18,7 +18,7 @@
;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.com>
;;; Copyright © 2017 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
-;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot>
+;;; Copyright © 2017, 2022 Brendan Tildesley <mail@brendan.scot>
;;; Copyright © 2017, 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2017 Mohammed Sadiq <sadiq@sadiqpk.org>
;;; Copyright © 2018 Charlie Ritter <chewzerita@posteo.net>
@@ -530,17 +530,26 @@ (define-public font-adobe-source-han-sans
(define-public font-cns11643
;; Since upstream doesn't provide any version numbers, the date of the last
;; edit is used, taken from https://data.gov.tw/dataset/5961
- ;; XXX: The source is also updated in-place, so it may be desirable to mirror
- ;; it elsewhere to avoid suddenly losing the current source file.
+ ;; Use the archive.org mirror since the source is updated in place.
(package
(name "font-cns11643")
- (version "98.1.20180605")
+ (version "98.1.20220104")
(source (origin
(method url-fetch)
- (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
+ (uri (string-append
+ "https://web.archive.org/web/20220119072046/"
+ "http://www.cns11643.gov.tw/AIDB/Open_Data.zip"))
(sha256
(base32
- "000a9whrjr1cd4pjc23pbl60zwkq3wcb5g61p9qi7fn3hwkp0kyw"))))
+ "0ygq7a0gb0nah74wlvf84kss68k514dml1wkcihv2s5v5j9rys0y"))))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'unpack
+ (lambda* (#:key source #:allow-other-keys)
+ ;; Prevent filename warnings from causing an error, and only
+ ;; extract the .ttf files we need.
+ (invoke "unzip" "-j" source "Open_Data/Fonts/*ttf"))))))
(build-system font-build-system)
(home-page "http://www.cns11643.gov.tw/AIDB/welcome.do")
(synopsis "CJK TrueType fonts, TW-Kai and TW-Sung")
--
2.34.0
next prev parent reply other threads:[~2022-02-01 1:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-12 8:54 bug#53204: [patch] font-cns11643: Open_Data hash changed Dr. Arne Babenhauserheide
2022-01-12 10:45 ` Maxime Devos
2022-01-12 11:13 ` Maxime Devos
2022-01-12 11:41 ` Dr. Arne Babenhauserheide
2022-01-12 12:18 ` Maxime Devos
2022-01-31 1:59 ` bug#53204: [patch] font-cns11643: ... unzip error Brendan Tildesley
2022-01-31 9:18 ` Maxime Devos
2022-01-31 11:23 ` Brendan Tildesley
2022-01-31 12:35 ` Maxime Devos
2022-02-01 1:23 ` Brendan Tildesley [this message]
2022-10-09 6:38 ` bug#53204: [patch] font-cns11643: Open_Data hash changed Brendan Tildesley
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1142880891.227439.1643678630203@office.mailbox.org \
--to=mail@brendan.scot \
--cc=53204@debbugs.gnu.org \
--cc=maximedevos@telenet.be \
/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 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).