GNU bug report logs -
#54471
[PATCH core-updates 0/2] font-build-system: Install web fonts
Previous Next
Reported by: Arun Isaac <arunisaac <at> systemreboot.net>
Date: Sun, 20 Mar 2022 11:01:01 UTC
Severity: normal
Tags: patch
Done: Arun Isaac <arunisaac <at> systemreboot.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54471 in the body.
You can then email your comments to 54471 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Sun, 20 Mar 2022 11:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Arun Isaac <arunisaac <at> systemreboot.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 20 Mar 2022 11:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
Currently, we don't install the woff and woff2 web fonts in our font build
system. The first patch fixes that. The second patches removes the return of
#t from phases.
Regards,
Arun
Arun Isaac (2):
build: font-build-system: Install web fonts.
build: font-build-system: Do not return #t from phases.
guix/build/font-build-system.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Sun, 20 Mar 2022 11:03:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 54471 <at> debbugs.gnu.org (full text, mbox):
* guix/build/font-build-system.scm (install): Install woff and woff2 web font
files.
---
guix/build/font-build-system.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/guix/build/font-build-system.scm b/guix/build/font-build-system.scm
index 6726595fe1..9bd9524a7d 100644
--- a/guix/build/font-build-system.scm
+++ b/guix/build/font-build-system.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net>
+;;; Copyright © 2017, 2022 Arun Isaac <arunisaac <at> systemreboot.net>
;;; Copyright © 2017 Alex Griffin <a <at> ajgrf.com>
;;;
;;; This file is part of GNU Guix.
@@ -54,6 +54,8 @@ (define* (install #:key outputs #:allow-other-keys)
(find-files source "\\.(ttf|ttc)$"))
(for-each (cut install-file <> (string-append fonts "/opentype"))
(find-files source "\\.(otf|otc)$"))
+ (for-each (cut install-file <> (string-append fonts "/web"))
+ (find-files source "\\.(woff|woff2)$"))
#t))
(define %standard-phases
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Sun, 20 Mar 2022 11:03:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 54471 <at> debbugs.gnu.org (full text, mbox):
* guix/build/font-build-system.scm (unpack, install): Do not return #t from
phases.
---
guix/build/font-build-system.scm | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/guix/build/font-build-system.scm b/guix/build/font-build-system.scm
index 9bd9524a7d..e4784bc17d 100644
--- a/guix/build/font-build-system.scm
+++ b/guix/build/font-build-system.scm
@@ -41,8 +41,7 @@ (define* (unpack #:key source #:allow-other-keys)
(begin
(mkdir "source")
(chdir "source")
- (copy-file source (strip-store-file-name source))
- #t)
+ (copy-file source (strip-store-file-name source)))
(gnu:unpack #:source source)))
(define* (install #:key outputs #:allow-other-keys)
@@ -55,8 +54,7 @@ (define* (install #:key outputs #:allow-other-keys)
(for-each (cut install-file <> (string-append fonts "/opentype"))
(find-files source "\\.(otf|otc)$"))
(for-each (cut install-file <> (string-append fonts "/web"))
- (find-files source "\\.(woff|woff2)$"))
- #t))
+ (find-files source "\\.(woff|woff2)$"))))
(define %standard-phases
(modify-phases gnu:%standard-phases
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Sun, 20 Mar 2022 11:29:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 54471 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Arun Isaac schreef op zo 20-03-2022 om 16:30 [+0530]:
> Currently, we don't install the woff and woff2 web fonts in our font build
> system. The first patch fixes that. The second patches removes the return of
> #t from phases.
font-build-system currently puts "tar", "gzip", "bzip2", "unzip" (*),
and "xz" in 'host-inputs' (the build system equivalent of 'inputs')
instead of 'build-inputs' (the build system equivalent of 'native-
inputs'), which is wrong when cross-compiling.
For font-build-system, this does not truly matter, since #:target is
ignored for font-build-system. However, to avoid accidentally teaching
people to accidentally mess up the inputs/native-inputs difference and
instead give the right example, WDYT of moving "tar" and friends to
'build-inputs'?
It's technically a separate thing from your patches, but I think it
would be nice to bundle multiple core-updates changes together (in
separate patches, but in a same ‘push’).
(*) The location of 'source' does not matter since sources are
(currently) assumed to be architecture-independent in Guix.
Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Mon, 21 Mar 2022 12:18:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 54471 <at> debbugs.gnu.org (full text, mbox):
Hi Maxime,
Sure, sounds good! Patches follow in subsequent emails.
Regards,
Arun
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Mon, 21 Mar 2022 12:18:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 54471 <at> debbugs.gnu.org (full text, mbox):
* guix/build/font-build-system.scm (unpack, install): Do not return #t from
phases.
---
guix/build/font-build-system.scm | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/guix/build/font-build-system.scm b/guix/build/font-build-system.scm
index 9bd9524a7d..e4784bc17d 100644
--- a/guix/build/font-build-system.scm
+++ b/guix/build/font-build-system.scm
@@ -41,8 +41,7 @@ (define* (unpack #:key source #:allow-other-keys)
(begin
(mkdir "source")
(chdir "source")
- (copy-file source (strip-store-file-name source))
- #t)
+ (copy-file source (strip-store-file-name source)))
(gnu:unpack #:source source)))
(define* (install #:key outputs #:allow-other-keys)
@@ -55,8 +54,7 @@ (define* (install #:key outputs #:allow-other-keys)
(for-each (cut install-file <> (string-append fonts "/opentype"))
(find-files source "\\.(otf|otc)$"))
(for-each (cut install-file <> (string-append fonts "/web"))
- (find-files source "\\.(woff|woff2)$"))
- #t))
+ (find-files source "\\.(woff|woff2)$"))))
(define %standard-phases
(modify-phases gnu:%standard-phases
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Mon, 21 Mar 2022 12:18:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 54471 <at> debbugs.gnu.org (full text, mbox):
* guix/build/font-build-system.scm (install): Install woff and woff2 web font
files.
---
guix/build/font-build-system.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/guix/build/font-build-system.scm b/guix/build/font-build-system.scm
index 6726595fe1..9bd9524a7d 100644
--- a/guix/build/font-build-system.scm
+++ b/guix/build/font-build-system.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net>
+;;; Copyright © 2017, 2022 Arun Isaac <arunisaac <at> systemreboot.net>
;;; Copyright © 2017 Alex Griffin <a <at> ajgrf.com>
;;;
;;; This file is part of GNU Guix.
@@ -54,6 +54,8 @@ (define* (install #:key outputs #:allow-other-keys)
(find-files source "\\.(ttf|ttc)$"))
(for-each (cut install-file <> (string-append fonts "/opentype"))
(find-files source "\\.(otf|otc)$"))
+ (for-each (cut install-file <> (string-append fonts "/web"))
+ (find-files source "\\.(woff|woff2)$"))
#t))
(define %standard-phases
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Mon, 21 Mar 2022 12:18:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 54471 <at> debbugs.gnu.org (full text, mbox):
* guix/build-system/font.scm (lower): Move tar, gzip, bzip2, unzip and xz from
host-inputs to build-inputs.
---
guix/build-system/font.scm | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/guix/build-system/font.scm b/guix/build-system/font.scm
index 74dc80b5db..c43fb9a542 100644
--- a/guix/build-system/font.scm
+++ b/guix/build-system/font.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net>
+;;; Copyright © 2017, 2022 Arun Isaac <arunisaac <at> systemreboot.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -54,20 +54,20 @@ (define private-keywords
(bag
(name name)
(system system)
- (host-inputs `(,@(if source
- `(("source" ,source))
- '())
- ,@inputs
- ,(list "tar" (module-ref (resolve-interface '(gnu packages base)) 'tar))
- ,@(let ((compression (resolve-interface '(gnu packages compression))))
- (map (match-lambda
- ((name package)
- (list name (module-ref compression package))))
- `(("gzip" gzip)
- ("bzip2" bzip2)
- ("unzip" unzip)
- ("xz" xz))))))
- (build-inputs native-inputs)
+ (host-inputs inputs)
+ (build-inputs `(,@(if source
+ `(("source" ,source))
+ '())
+ ,@native-inputs
+ ,(list "tar" (module-ref (resolve-interface '(gnu packages base)) 'tar))
+ ,@(let ((compression (resolve-interface '(gnu packages compression))))
+ (map (match-lambda
+ ((name package)
+ (list name (module-ref compression package))))
+ `(("gzip" gzip)
+ ("bzip2" bzip2)
+ ("unzip" unzip)
+ ("xz" xz))))))
(outputs outputs)
(build font-build)
(arguments (strip-keyword-arguments private-keywords arguments))))
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Sat, 09 Apr 2022 15:57:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 54471 <at> debbugs.gnu.org (full text, mbox):
Hi Maxime,
May I push the v2 patchset to core-updates? Is it satisfactory?
Thanks!
Arun
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Sat, 09 Apr 2022 16:04:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 54471 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Arun Isaac schreef op za 09-04-2022 om 21:26 [+0530]:
> Hi Maxime,
>
> May I push the v2 patchset to core-updates? Is it satisfactory?
AFAICT, yes, and other people have had some time to chime in.
Greetings,
Maxime
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Sat, 09 Apr 2022 16:05:01 GMT)
Full text and
rfc822 format available.
Message #35 received at 54471 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Arun Isaac schreef op za 09-04-2022 om 21:26 [+0530]:
> May I push the v2 patchset to core-updates? Is it satisfactory?
(addition to previous e-mail)
though there seems to be a preference to batching multiple core-updates
changes together, to reduce build farm activity.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Sat, 09 Apr 2022 16:55:02 GMT)
Full text and
rfc822 format available.
Message #38 received at 54471 <at> debbugs.gnu.org (full text, mbox):
> though there seems to be a preference to batching multiple core-updates
> changes together, to reduce build farm activity.
Ah, ok. So, I'll wait until a core-updates batch starts up again.
Thanks!
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54471
; Package
guix-patches
.
(Sun, 15 May 2022 18:08:02 GMT)
Full text and
rfc822 format available.
Message #41 received at 54471 <at> debbugs.gnu.org (full text, mbox):
Hi Arun,
I think it can go to ‘core-updates’, yes.
Actually, how many package rebuilds does it trigger? Does that affect,
say:
./pre-inst-env guix build libreoffice -n
?
If not, you might as well push it to ‘master’. Otherwise, it might be
that ‘staging’ would be a good fit. You “just” need to estimate the
amount of rebuild.
Thanks,
Ludo’.
Reply sent
to
Arun Isaac <arunisaac <at> systemreboot.net>
:
You have taken responsibility.
(Mon, 16 May 2022 09:45:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Arun Isaac <arunisaac <at> systemreboot.net>
:
bug acknowledged by developer.
(Mon, 16 May 2022 09:45:03 GMT)
Full text and
rfc822 format available.
Message #46 received at 54471-done <at> debbugs.gnu.org (full text, mbox):
Hi Ludo,
I've pushed these patches to core-updates.
> Actually, how many package rebuilds does it trigger? Does that affect,
> say:
>
> ./pre-inst-env guix build libreoffice -n
>
> ?
font-dejavu is rebuilt by these changes, and a rebuild of font-dejavu
triggers a rebuild of the world (15596 packages!). So, definitely not
the master branch!
Regards,
Arun
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 13 Jun 2022 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 317 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.