* bug#26702: [PATCH 1/2] gnu: Add font-cns11643
@ 2017-04-28 18:53 Brendan Tildesley
2017-04-30 15:10 ` Marius Bakke
0 siblings, 1 reply; 10+ messages in thread
From: Brendan Tildesley @ 2017-04-28 18:53 UTC (permalink / raw)
To: 26702
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-font-cns11643.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-font-cns11643.patch", Size: 3918 bytes --]
From 69bd2f347a516bc978406f9810a5355812c58491 Mon Sep 17 00:00:00 2001
From: Brendan Tildesley <brendan.tildesley@openmailbox.org>
Date: Sat, 29 Apr 2017 04:30:48 +1000
Subject: [PATCH 1/2] gnu: Add font-cns11643
* gnu/packages/fonts.scm (font-cns11643): New variable.
---
gnu/packages/fonts.scm | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 2452a1c81..821fce69a 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -17,6 +17,7 @@
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.com>
;;; Copyright © 2017 Alex Griffin <a@ajgrf.com>
+;;; Copyrihgt © 2017 Brendan Tildesley <brendan.tildesley@openmailbox.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -518,6 +519,64 @@ fonts are intended to support the characters necessary to render or display
text in Simplified Chinese, Traditional Chinese, Japanese, and Korean.")
(license license:silofl1.1)))
+(define-public font-cns11643
+ (package
+ (name "font-cns11643")
+ (version "98.1.20170405")
+ (source (origin
+ (method url-fetch)
+ (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
+ (sha256
+ (base32
+ "1kyfrwamr8zpdp4qw3z9j3cimhsvr4xd05dmxmfphiknlbr6d455"))))
+ (outputs '("out" "tw-kai" "tw-sung"))
+ (build-system trivial-build-system)
+ (native-inputs
+ `(("unzip" ,unzip)))
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((font-dir "/share/fonts/truetype/cns11643")
+ (out (string-append %output font-dir))
+ (unzip (string-append
+ (assoc-ref %build-inputs "unzip") "/bin/unzip"))
+ (tw-kai (string-append
+ (assoc-ref %outputs "tw-kai") font-dir))
+ (tw-sung (string-append
+ (assoc-ref %outputs "tw-sung") font-dir)))
+ (system* unzip (assoc-ref %build-inputs "source"))
+ (chdir "Open_Data/Fonts/")
+ (install-file "TW-Kai-98_1.ttf" tw-kai)
+ (install-file "TW-Sung-98_1.ttf" tw-sung)
+ (install-file "TW-Kai-98_1.ttf" out)
+ (install-file "TW-Kai-Ext-B-98_1.ttf" out)
+ (install-file "TW-Kai-Plus-98_1.ttf" out)
+ (install-file "TW-Sung-98_1.ttf" out)
+ (install-file "TW-Sung-Ext-B-98_1.ttf" out)
+ (install-file "TW-Sung-Plus-98_1.ttf" out)))))
+ (home-page "http://www.cns11643.gov.tw/AIDB/welcome.do")
+ (synopsis "CJK TrueType fonts, TW-Kai and TW-Sung")
+ (description
+ "@code{CNS 11643} character set (Chinese National Standard, or Chinese
+Standard Interchange Code) is the standard character set of the Republic of
+China (Taiwan) for Chinese Characters and other Unicode symbols. Contained
+are six TrueType fonts based on two script styles, Regular Script (Kai), and
+Sung/Ming Script, each with three variants:
+
+@itemize
+@item @code{CNS 11643} (@code{TW-Kai} and @code{TW-Sung}): Tens of thousands
+of CJK characters from frequency tables published by the Taiwanese
+Ministry of Education. ISO 10646 and Unicode compatible code encoding.
+@item @code{Big-5 Plus}: Several thousand frequently used CJK characters
+encoded in the user defined area of the Big-5 code.
+@item @code{Big-5 Extended}: A Big-5 character set based on the
+@code{Big-5 Plus} and @code{CNS 11643} character sets.
+@end itemize\n")
+ (license (license:non-copyleft
+ "http://data.gov.tw/license"))))
+
(define-public font-wqy-zenhei
(package
(name "font-wqy-zenhei")
--
2.12.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* bug#26702: [PATCH 1/2] gnu: Add font-cns11643
2017-04-28 18:53 bug#26702: [PATCH 1/2] gnu: Add font-cns11643 Brendan Tildesley
@ 2017-04-30 15:10 ` Marius Bakke
2017-04-30 18:07 ` Kei Kebreau
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Marius Bakke @ 2017-04-30 15:10 UTC (permalink / raw)
To: Brendan Tildesley, 26702
[-- Attachment #1: Type: text/plain, Size: 3900 bytes --]
Hi Brendan, thanks for this!
Brendan Tildesley <brendan.tildesley@openmailbox.org> writes:
> * gnu/packages/fonts.scm (font-cns11643): New variable.
[...]
> +(define-public font-cns11643
> + (package
> + (name "font-cns11643")
> + (version "98.1.20170405")
> + (source (origin
> + (method url-fetch)
> + (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
> + (sha256
> + (base32
> + "1kyfrwamr8zpdp4qw3z9j3cimhsvr4xd05dmxmfphiknlbr6d455"))))
I'm getting a different hash when downloading this:
@ build-failed /gnu/store/b4s6pjp7pvwn5028zxm7dn7hxb7akhxn-Open_Data.zip.drv - 1 output path `/gnu/store/kv2291fl8p8r3ic15pp68751qncrv830-Open_Data.zip' should have sha256 hash `1kyfrwamr8zpdp4qw3z9j3cimhsvr4xd05dmxmfphiknlbr6d455', instead has `02kb3bwjrra0k2hlr2p8xswd2y0xs6j8d9vm6yrby734h02a40qf'
Maybe I'm getting a newer version? If this is updated in-place upstream
very frequently, it would be good to have a way to access older
downloads. Any ideas?
Minor nit-picks follow, but I've corrected this in my local branch:
> + (outputs '("out" "tw-kai" "tw-sung"))
> + (build-system trivial-build-system)
> + (native-inputs
> + `(("unzip" ,unzip)))
> + (arguments
> + `(#:modules ((guix build utils))
> + #:builder
> + (begin
> + (use-modules (guix build utils))
> + (let* ((font-dir "/share/fonts/truetype/cns11643")
> + (out (string-append %output font-dir))
I've changes this to use (assoc-ref outputs "out") instead of the
magical %output.
> + (unzip (string-append
> + (assoc-ref %build-inputs "unzip") "/bin/unzip"))
> + (tw-kai (string-append
> + (assoc-ref %outputs "tw-kai") font-dir))
> + (tw-sung (string-append
> + (assoc-ref %outputs "tw-sung") font-dir)))
> + (system* unzip (assoc-ref %build-inputs "source"))
> + (chdir "Open_Data/Fonts/")
> + (install-file "TW-Kai-98_1.ttf" tw-kai)
> + (install-file "TW-Sung-98_1.ttf" tw-sung)
> + (install-file "TW-Kai-98_1.ttf" out)
> + (install-file "TW-Kai-Ext-B-98_1.ttf" out)
> + (install-file "TW-Kai-Plus-98_1.ttf" out)
> + (install-file "TW-Sung-98_1.ttf" out)
> + (install-file "TW-Sung-Ext-B-98_1.ttf" out)
> + (install-file "TW-Sung-Plus-98_1.ttf" out)))))
And added a #t at the end here, since the return value of "install-file"
is unspecified.
> + (home-page "http://www.cns11643.gov.tw/AIDB/welcome.do")
> + (synopsis "CJK TrueType fonts, TW-Kai and TW-Sung")
> + (description
> + "@code{CNS 11643} character set (Chinese National Standard, or Chinese
> +Standard Interchange Code) is the standard character set of the Republic of
> +China (Taiwan) for Chinese Characters and other Unicode symbols. Contained
> +are six TrueType fonts based on two script styles, Regular Script (Kai), and
> +Sung/Ming Script, each with three variants:
> +
> +@itemize
> +@item @code{CNS 11643} (@code{TW-Kai} and @code{TW-Sung}): Tens of thousands
> +of CJK characters from frequency tables published by the Taiwanese
> +Ministry of Education. ISO 10646 and Unicode compatible code encoding.
> +@item @code{Big-5 Plus}: Several thousand frequently used CJK characters
> +encoded in the user defined area of the Big-5 code.
> +@item @code{Big-5 Extended}: A Big-5 character set based on the
> +@code{Big-5 Plus} and @code{CNS 11643} character sets.
> +@end itemize\n")
> + (license (license:non-copyleft
> + "http://data.gov.tw/license"))))
...and added a comment about this license being compatible with CC-BY
4.0 here.
Thanks a lot for packaging these!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#26702: [PATCH 1/2] gnu: Add font-cns11643
2017-04-30 15:10 ` Marius Bakke
@ 2017-04-30 18:07 ` Kei Kebreau
2017-05-01 14:43 ` Brendan Tildesley
2017-05-04 20:03 ` Alex Kost
2 siblings, 0 replies; 10+ messages in thread
From: Kei Kebreau @ 2017-04-30 18:07 UTC (permalink / raw)
To: Marius Bakke; +Cc: 26702
[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]
Marius Bakke <mbakke@fastmail.com> writes:
> Hi Brendan, thanks for this!
>
> Brendan Tildesley <brendan.tildesley@openmailbox.org> writes:
>
>> * gnu/packages/fonts.scm (font-cns11643): New variable.
>
> [...]
>
>> +(define-public font-cns11643
>> + (package
>> + (name "font-cns11643")
>> + (version "98.1.20170405")
>> + (source (origin
>> + (method url-fetch)
>> + (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
>> + (sha256
>> + (base32
>> + "1kyfrwamr8zpdp4qw3z9j3cimhsvr4xd05dmxmfphiknlbr6d455"))))
>
> I'm getting a different hash when downloading this:
>
> @ build-failed
> /gnu/store/b4s6pjp7pvwn5028zxm7dn7hxb7akhxn-Open_Data.zip.drv - 1
> output path
> `/gnu/store/kv2291fl8p8r3ic15pp68751qncrv830-Open_Data.zip' should
> have sha256 hash
> `1kyfrwamr8zpdp4qw3z9j3cimhsvr4xd05dmxmfphiknlbr6d455', instead has
> `02kb3bwjrra0k2hlr2p8xswd2y0xs6j8d9vm6yrby734h02a40qf'
>
I just wanted to say that I get the same incorrect hash when downloading
the source.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#26702: [PATCH 1/2] gnu: Add font-cns11643
2017-04-30 15:10 ` Marius Bakke
2017-04-30 18:07 ` Kei Kebreau
@ 2017-05-01 14:43 ` Brendan Tildesley
2017-05-01 22:34 ` Marius Bakke
2017-05-04 20:12 ` Alex Kost
2017-05-04 20:03 ` Alex Kost
2 siblings, 2 replies; 10+ messages in thread
From: Brendan Tildesley @ 2017-05-01 14:43 UTC (permalink / raw)
To: 26702
[-- Attachment #1: Type: text/plain, Size: 3512 bytes --]
Marius Bakke 於 2017-05-01 01:10 寫道:
> Hi Brendan, thanks for this!
>
> Brendan Tildesley <brendan.tildesley@openmailbox.org> writes:
>
>> * gnu/packages/fonts.scm (font-cns11643): New variable.
> [...]
>
>> +(define-public font-cns11643
>> + (package
>> + (name "font-cns11643")
>> + (version "98.1.20170405")
>> + (source (origin
>> + (method url-fetch)
>> + (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
>> + (sha256
>> + (base32
>> + "1kyfrwamr8zpdp4qw3z9j3cimhsvr4xd05dmxmfphiknlbr6d455"))))
> I'm getting a different hash when downloading this:
>
> @ build-failed /gnu/store/b4s6pjp7pvwn5028zxm7dn7hxb7akhxn-Open_Data.zip.drv - 1 output path `/gnu/store/kv2291fl8p8r3ic15pp68751qncrv830-Open_Data.zip' should have sha256 hash `1kyfrwamr8zpdp4qw3z9j3cimhsvr4xd05dmxmfphiknlbr6d455', instead has `02kb3bwjrra0k2hlr2p8xswd2y0xs6j8d9vm6yrby734h02a40qf'
>
> Maybe I'm getting a newer version? If this is updated in-place upstream
> very frequently, it would be good to have a way to access older
> downloads. Any ideas?
>
> Minor nit-picks follow, but I've corrected this in my local branch:
I have confirmed that the new hash represents an update to the font. I
have thought about hosting this file, but I'm not sure where I can host
~300MiB. Also, It means I have to bother updating that file frequently.
On the other hand if we use upstream, a failing hash typically means
there is an update. There is unlikely any other Guix user interested in
these fonts at the present. So I'm not sure what to do.
>> + (outputs '("out" "tw-kai" "tw-sung"))
>> + (build-system trivial-build-system)
>> + (native-inputs
>> + `(("unzip" ,unzip)))
>> + (arguments
>> + `(#:modules ((guix build utils))
>> + #:builder
>> + (begin
>> + (use-modules (guix build utils))
>> + (let* ((font-dir "/share/fonts/truetype/cns11643")
>> + (out (string-append %output font-dir))
> I've changes this to use (assoc-ref outputs "out") instead of the
> magical %output.
Ok, I don't understand much about those. Are the uses of %outputs (with
the 's') below also problematic?
>> + (unzip (string-append
>> + (assoc-ref %build-inputs "unzip") "/bin/unzip"))
>> + (tw-kai (string-append
>> + (assoc-ref %outputs "tw-kai") font-dir))
>> + (tw-sung (string-append
>> + (assoc-ref %outputs "tw-sung") font-dir)))
>> + (system* unzip (assoc-ref %build-inputs "source"))
>> + (chdir "Open_Data/Fonts/")
>> + (install-file "TW-Kai-98_1.ttf" tw-kai)
>> + (install-file "TW-Sung-98_1.ttf" tw-sung)
>> + (install-file "TW-Kai-98_1.ttf" out)
>> + (install-file "TW-Kai-Ext-B-98_1.ttf" out)
>> + (install-file "TW-Kai-Plus-98_1.ttf" out)
>> + (install-file "TW-Sung-98_1.ttf" out)
>> + (install-file "TW-Sung-Ext-B-98_1.ttf" out)
>> + (install-file "TW-Sung-Plus-98_1.ttf" out)))))
> And added a #t at the end here, since the return value of "install-file"
> is unspecified.
>
>> [...]
>> + (license (license:non-copyleft
>> + "http://data.gov.tw/license"))))
> ...and added a comment about this license being compatible with CC-BY
> 4.0 here.
>
> Thanks a lot for packaging these!
I have attached an updated patch file, and will follow up a with [PATCH
2/2] update
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-font-cns11643.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-font-cns11643.patch", Size: 3902 bytes --]
From 88afaaa9307ccb62fbfa9a4809c5a6b27a69dc30 Mon Sep 17 00:00:00 2001
From: Brendan Tildesley <brendan.tildesley@openmailbox.org>
Date: Sat, 29 Apr 2017 04:30:48 +1000
Subject: [PATCH 1/2] gnu: Add font-cns11643
* gnu/packages/fonts.scm (font-cns11643): New variable.
---
gnu/packages/fonts.scm | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 2452a1c81..83ac27c6c 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -17,6 +17,7 @@
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.com>
;;; Copyright © 2017 Alex Griffin <a@ajgrf.com>
+;;; Copyright © 2017 Brendan Tildesley <brendan.tildesley@openmailbox.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -518,6 +519,66 @@ fonts are intended to support the characters necessary to render or display
text in Simplified Chinese, Traditional Chinese, Japanese, and Korean.")
(license license:silofl1.1)))
+(define-public font-cns11643
+ (package
+ (name "font-cns11643")
+ (version "98.1.20170405")
+ (source (origin
+ (method url-fetch)
+ (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
+ (sha256
+ (base32
+ "02kb3bwjrra0k2hlr2p8xswd2y0xs6j8d9vm6yrby734h02a40qf"))))
+ (outputs '("out" "tw-kai" "tw-sung"))
+ (build-system trivial-build-system)
+ (native-inputs
+ `(("unzip" ,unzip)))
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((font-dir "/share/fonts/truetype/cns11643")
+ (out (string-append
+ (assoc-ref %outputs "out") font-dir))
+ (tw-kai (string-append
+ (assoc-ref %outputs "tw-kai") font-dir))
+ (tw-sung (string-append
+ (assoc-ref %outputs "tw-sung") font-dir))
+ (unzip (string-append
+ (assoc-ref %build-inputs "unzip") "/bin/unzip")))
+ (system* unzip (assoc-ref %build-inputs "source"))
+ (chdir "Open_Data/Fonts/")
+ (install-file "TW-Kai-98_1.ttf" tw-kai)
+ (install-file "TW-Sung-98_1.ttf" tw-sung)
+ (install-file "TW-Kai-98_1.ttf" out)
+ (install-file "TW-Kai-Ext-B-98_1.ttf" out)
+ (install-file "TW-Kai-Plus-98_1.ttf" out)
+ (install-file "TW-Sung-98_1.ttf" out)
+ (install-file "TW-Sung-Ext-B-98_1.ttf" out)
+ (install-file "TW-Sung-Plus-98_1.ttf" out)
+ #t))))
+ (home-page "http://www.cns11643.gov.tw/AIDB/welcome.do")
+ (synopsis "CJK TrueType fonts, TW-Kai and TW-Sung")
+ (description
+ "@code{CNS 11643} character set (Chinese National Standard, or Chinese
+Standard Interchange Code) is the standard character set of the Republic of
+China (Taiwan) for Chinese Characters and other Unicode symbols. Contained
+are six TrueType fonts based on two script styles, Regular script (Kai), and
+Sung/Ming script, each with three variants:
+
+@itemize
+@item @code{CNS 11643} (@code{TW-Kai} and @code{TW-Sung}): Tens of thousands
+of CJK characters from frequency tables published by the Taiwanese
+Ministry of Education. ISO 10646 and Unicode compatible encoding.
+@item @code{Big-5 Plus}: Several thousand frequently used CJK characters
+encoded in the user defined area of the Big-5 code.
+@item @code{Big-5 Extended}: A Big-5 character set based on the
+@code{Big-5 Plus} and @code{CNS 11643} character sets.
+@end itemize\n")
+ (license (license:non-copyleft
+ "http://data.gov.tw/license")))) ; CC-BY 4.0 compatible
+
(define-public font-wqy-zenhei
(package
(name "font-wqy-zenhei")
--
2.12.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* bug#26702: [PATCH 1/2] gnu: Add font-cns11643
2017-05-01 14:43 ` Brendan Tildesley
@ 2017-05-01 22:34 ` Marius Bakke
2017-05-04 20:15 ` Alex Kost
2017-05-04 20:12 ` Alex Kost
1 sibling, 1 reply; 10+ messages in thread
From: Marius Bakke @ 2017-05-01 22:34 UTC (permalink / raw)
To: Brendan Tildesley, 26702
[-- Attachment #1: Type: text/plain, Size: 2158 bytes --]
Brendan Tildesley <brendan.tildesley@openmailbox.org> writes:
> Marius Bakke 於 2017-05-01 01:10 寫道:
>> Hi Brendan, thanks for this!
>>
>> Brendan Tildesley <brendan.tildesley@openmailbox.org> writes:
>>
>>> * gnu/packages/fonts.scm (font-cns11643): New variable.
>> [...]
>>
>>> +(define-public font-cns11643
>>> + (package
>>> + (name "font-cns11643")
>>> + (version "98.1.20170405")
>>> + (source (origin
>>> + (method url-fetch)
>>> + (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip")
>>> + (sha256
>>> + (base32
>>> + "1kyfrwamr8zpdp4qw3z9j3cimhsvr4xd05dmxmfphiknlbr6d455"))))
>> I'm getting a different hash when downloading this:
>>
>> @ build-failed /gnu/store/b4s6pjp7pvwn5028zxm7dn7hxb7akhxn-Open_Data.zip.drv - 1 output path `/gnu/store/kv2291fl8p8r3ic15pp68751qncrv830-Open_Data.zip' should have sha256 hash `1kyfrwamr8zpdp4qw3z9j3cimhsvr4xd05dmxmfphiknlbr6d455', instead has `02kb3bwjrra0k2hlr2p8xswd2y0xs6j8d9vm6yrby734h02a40qf'
>>
>> Maybe I'm getting a newer version? If this is updated in-place upstream
>> very frequently, it would be good to have a way to access older
>> downloads. Any ideas?
>>
>> Minor nit-picks follow, but I've corrected this in my local branch:
> I have confirmed that the new hash represents an update to the font. I
> have thought about hosting this file, but I'm not sure where I can host
> ~300MiB. Also, It means I have to bother updating that file frequently.
> On the other hand if we use upstream, a failing hash typically means
> there is an update. There is unlikely any other Guix user interested in
> these fonts at the present. So I'm not sure what to do.
Thanks for checking! Where did you take the version number and datestamp
from? Are you willing to help maintain this package?
The current situation is suboptimal, but I think it's fine if we can
ping you about any problems. What do you think?
I've committed this for now, let's see how long it holds. I may be able
to provide a fallback mirror in a not-too-distant future, but immediate
suggestions welcome.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#26702: [PATCH 1/2] gnu: Add font-cns11643
2017-05-01 22:34 ` Marius Bakke
@ 2017-05-04 20:15 ` Alex Kost
2017-05-05 14:51 ` Marius Bakke
0 siblings, 1 reply; 10+ messages in thread
From: Alex Kost @ 2017-05-04 20:15 UTC (permalink / raw)
To: Marius Bakke; +Cc: 26702
Marius Bakke (2017-05-02 00:34 +0200) wrote:
> Brendan Tildesley <brendan.tildesley@openmailbox.org> writes:
[...]
>> I have confirmed that the new hash represents an update to the font. I
>> have thought about hosting this file, but I'm not sure where I can host
>> ~300MiB. Also, It means I have to bother updating that file frequently.
>> On the other hand if we use upstream, a failing hash typically means
>> there is an update. There is unlikely any other Guix user interested in
>> these fonts at the present. So I'm not sure what to do.
>
> Thanks for checking! Where did you take the version number and datestamp
> from? Are you willing to help maintain this package?
>
> The current situation is suboptimal, but I think it's fine if we can
> ping you about any problems. What do you think?
>
> I've committed this for now, let's see how long it holds. I may be able
> to provide a fallback mirror in a not-too-distant future, but immediate
> suggestions welcome.
Hi Marius, I've just found that you pushed this patch but didn't close
this "bug thread" (or whatever it should be called). Was it intentional?
--
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#26702: [PATCH 1/2] gnu: Add font-cns11643
2017-05-04 20:15 ` Alex Kost
@ 2017-05-05 14:51 ` Marius Bakke
0 siblings, 0 replies; 10+ messages in thread
From: Marius Bakke @ 2017-05-05 14:51 UTC (permalink / raw)
To: Alex Kost; +Cc: 26702-done
[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]
Alex Kost <alezost@gmail.com> writes:
> Marius Bakke (2017-05-02 00:34 +0200) wrote:
>
>> Brendan Tildesley <brendan.tildesley@openmailbox.org> writes:
> [...]
>>> I have confirmed that the new hash represents an update to the font. I
>>> have thought about hosting this file, but I'm not sure where I can host
>>> ~300MiB. Also, It means I have to bother updating that file frequently.
>>> On the other hand if we use upstream, a failing hash typically means
>>> there is an update. There is unlikely any other Guix user interested in
>>> these fonts at the present. So I'm not sure what to do.
>>
>> Thanks for checking! Where did you take the version number and datestamp
>> from? Are you willing to help maintain this package?
>>
>> The current situation is suboptimal, but I think it's fine if we can
>> ping you about any problems. What do you think?
>>
>> I've committed this for now, let's see how long it holds. I may be able
>> to provide a fallback mirror in a not-too-distant future, but immediate
>> suggestions welcome.
>
> Hi Marius, I've just found that you pushed this patch but didn't close
> this "bug thread" (or whatever it should be called). Was it intentional?
Oops, didn't realize the two patches were in separate bugs. Closing this
one too.
Still waiting for feedback about extracting version information, though.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#26702: [PATCH 1/2] gnu: Add font-cns11643
2017-05-01 14:43 ` Brendan Tildesley
2017-05-01 22:34 ` Marius Bakke
@ 2017-05-04 20:12 ` Alex Kost
1 sibling, 0 replies; 10+ messages in thread
From: Alex Kost @ 2017-05-04 20:12 UTC (permalink / raw)
To: Brendan Tildesley; +Cc: 26702-done
Brendan Tildesley (2017-05-02 00:43 +1000) wrote:
> Marius Bakke 於 2017-05-01 01:10 寫道:
[...]
>>> + (outputs '("out" "tw-kai" "tw-sung"))
>>> + (build-system trivial-build-system)
>>> + (native-inputs
>>> + `(("unzip" ,unzip)))
>>> + (arguments
>>> + `(#:modules ((guix build utils))
>>> + #:builder
>>> + (begin
>>> + (use-modules (guix build utils))
>>> + (let* ((font-dir "/share/fonts/truetype/cns11643")
>>> + (out (string-append %output font-dir))
>> I've changes this to use (assoc-ref outputs "out") instead of the
>> magical %output.
> Ok, I don't understand much about those. Are the uses of %outputs (with
> the 's') below also problematic?
No they are OK, moreover this is the only way to access the outputs.
--
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#26702: [PATCH 1/2] gnu: Add font-cns11643
2017-04-30 15:10 ` Marius Bakke
2017-04-30 18:07 ` Kei Kebreau
2017-05-01 14:43 ` Brendan Tildesley
@ 2017-05-04 20:03 ` Alex Kost
2017-05-05 7:55 ` Ludovic Courtès
2 siblings, 1 reply; 10+ messages in thread
From: Alex Kost @ 2017-05-04 20:03 UTC (permalink / raw)
To: Marius Bakke; +Cc: 26702
Marius Bakke (2017-04-30 17:10 +0200) wrote:
>> + (outputs '("out" "tw-kai" "tw-sung"))
>> + (build-system trivial-build-system)
>> + (native-inputs
>> + `(("unzip" ,unzip)))
>> + (arguments
>> + `(#:modules ((guix build utils))
>> + #:builder
>> + (begin
>> + (use-modules (guix build utils))
>> + (let* ((font-dir "/share/fonts/truetype/cns11643")
>> + (out (string-append %output font-dir))
>
> I've changes this to use (assoc-ref outputs "out") instead of the
> magical %output.
I would leave the magical %output :-) Besides (assoc-ref outputs "out")
wouldn't work here; you probably meant (assoc-ref %outputs "out").
Regarding “%output” vs “(assoc-ref %outputs "out")”: I always prefer the
former (Ludovic prefers the latter). Why does “%output” exist anyway,
if not for using it?
--
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#26702: [PATCH 1/2] gnu: Add font-cns11643
2017-05-04 20:03 ` Alex Kost
@ 2017-05-05 7:55 ` Ludovic Courtès
0 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2017-05-05 7:55 UTC (permalink / raw)
To: Alex Kost; +Cc: 26702
Alex Kost <alezost@gmail.com> skribis:
> Marius Bakke (2017-04-30 17:10 +0200) wrote:
>
>>> + (outputs '("out" "tw-kai" "tw-sung"))
>>> + (build-system trivial-build-system)
>>> + (native-inputs
>>> + `(("unzip" ,unzip)))
>>> + (arguments
>>> + `(#:modules ((guix build utils))
>>> + #:builder
>>> + (begin
>>> + (use-modules (guix build utils))
>>> + (let* ((font-dir "/share/fonts/truetype/cns11643")
>>> + (out (string-append %output font-dir))
>>
>> I've changes this to use (assoc-ref outputs "out") instead of the
>> magical %output.
>
> I would leave the magical %output :-) Besides (assoc-ref outputs "out")
> wouldn't work here; you probably meant (assoc-ref %outputs "out").
>
> Regarding “%output” vs “(assoc-ref %outputs "out")”: I always prefer the
> former (Ludovic prefers the latter). Why does “%output” exist anyway,
> if not for using it?
Both are meant to disappear with the advent of gexps anyway. :-)
Ludo’.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2017-05-05 14:52 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-28 18:53 bug#26702: [PATCH 1/2] gnu: Add font-cns11643 Brendan Tildesley
2017-04-30 15:10 ` Marius Bakke
2017-04-30 18:07 ` Kei Kebreau
2017-05-01 14:43 ` Brendan Tildesley
2017-05-01 22:34 ` Marius Bakke
2017-05-04 20:15 ` Alex Kost
2017-05-05 14:51 ` Marius Bakke
2017-05-04 20:12 ` Alex Kost
2017-05-04 20:03 ` Alex Kost
2017-05-05 7:55 ` Ludovic Courtès
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.