unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27123: fonts: more changes to font-build-system, one follow up commit
@ 2017-05-28 20:57 ng0
  2017-05-29 17:47 ` Arun Isaac
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: ng0 @ 2017-05-28 20:57 UTC (permalink / raw)
  To: 27123

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

Patch number two in this series is a recommendation. The code should stand for itself.

The previous patch series forgot to remove one line in dejavu. This fixes it.

[-- Attachment #2: 0001-gnu-font-awesome-Use-font-build-system.patch --]
[-- Type: text/plain, Size: 2665 bytes --]

From 974f0f7357aeea1300634606631603948cc9dd85 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@no-reply.pragmatique.xyz>
Date: Sun, 28 May 2017 19:33:09 +0000
Subject: [PATCH 1/4] gnu: font-awesome: Use 'font-build-system'.

* gnu/packages/fonts.scm (font-awesome): Switch to 'font-build-system'.
(source)[sha256sum]: The package was updated in place, hash sum changed.
---
 gnu/packages/fonts.scm | 24 +++---------------------
 1 file changed, 3 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 954c58818..21326ce1b 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -7,7 +7,7 @@
 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
 ;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name>
-;;; Copyright © 2016, 2017 ng0 <ng0@libertad.pw>
+;;; Copyright © 2016, 2017 ng0 <ng0@no-reply.pragmatique.xyz>
 ;;; Copyright © 2016 Jookia <166291@gmail.com>
 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
 ;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
@@ -1073,26 +1073,8 @@ designed to work well in user interface environments.")
                                 name "-" version ".zip"))
             (sha256
              (base32
-              "1frhmw41lnnm9rda2zs202pvfi5vzlrsw4xfp4mswl0qgws61mcd"))))
-   (build-system trivial-build-system)
-   (native-inputs
-    `(("unzip" ,unzip)))
-   (arguments
-    `(#:modules ((guix build utils))
-      #:builder (begin
-                  (use-modules (guix build utils))
-                  (let* ((font-dir (string-append %output
-                                                  "/share/fonts/opentype"))
-                         (source (assoc-ref %build-inputs "source"))
-                         (src-otf-file (string-append "font-awesome-"
-                                                      ,version
-                                                      "/fonts/FontAwesome.otf"))
-                         (dest-otf-file (string-append font-dir "/FontAwesome.otf"))
-                         (unzip (assoc-ref %build-inputs "unzip")))
-                    (setenv "PATH" (string-append unzip "/bin"))
-                    (mkdir-p font-dir)
-                    (system* "unzip" source "-d" ".")
-                    (copy-file src-otf-file dest-otf-file)))))
+              "1m1rfwm4sjkv10j3xd2dhwk286a5912b2zgvc692cmxi5gxs68jf"))))
+   (build-system font-build-system)
    (home-page "http://fontawesome.io")
    (synopsis "Font that contains a rich iconset")
    (description
-- 
2.13.0


[-- Attachment #3: 0002-gnu-font-awesome-Use-github-source.patch --]
[-- Type: text/plain, Size: 1468 bytes --]

From 72635f3ca0130ec72414da8c2bcae74bb11f0ed2 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@no-reply.pragmatique.xyz>
Date: Sun, 28 May 2017 19:33:11 +0000
Subject: [PATCH 2/4] gnu: font-awesome: Use github source.

* gnu/packages/fonts.scm (font-awesome)[source]: Switch to the source on github as the previous zip file
is updated in place, resulting in a changed hash sum.
---
 gnu/packages/fonts.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 21326ce1b..3806e5054 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -1069,11 +1069,12 @@ designed to work well in user interface environments.")
    (version "4.7.0")
    (source (origin
             (method url-fetch)
-            (uri (string-append "http://fontawesome.io/assets/"
-                                name "-" version ".zip"))
+            (uri (string-append "https://github.com/FortAwesome/Font-Awesome/"
+                                "archive/v" version ".tar.gz"))
+            (file-name (string-append name "-" version ".tar.gz"))
             (sha256
              (base32
-              "1m1rfwm4sjkv10j3xd2dhwk286a5912b2zgvc692cmxi5gxs68jf"))))
+              "0hsxn06kycz9brizpzvnv1qqkwdkfkg2qdyfpwmkibfyw6h2nlfy"))))
    (build-system font-build-system)
    (home-page "http://fontawesome.io")
    (synopsis "Font that contains a rich iconset")
-- 
2.13.0


[-- Attachment #4: 0003-gnu-font-dejavu-Fix-the-switch-to-font-build-system.patch --]
[-- Type: text/plain, Size: 912 bytes --]

From a87d914dec0fe6206efb259fc13c4d2a6101c43a Mon Sep 17 00:00:00 2001
From: ng0 <ng0@no-reply.pragmatique.xyz>
Date: Sun, 28 May 2017 19:33:12 +0000
Subject: [PATCH 3/4] gnu: font-dejavu: Fix the switch to 'font-build-system'.

This is a follow-up to commit 2e8840194121be6042502f363f143a4faeceb00e.

* gnu/packages/fonts.scm (font-dejavu): Remove 'trivial-build-system' line.
---
 gnu/packages/fonts.scm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 3806e5054..310613c89 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -107,7 +107,6 @@ TrueType (TTF) files.")
              (sha256
               (base32
                "1mqpds24wfs5cmfhj57fsfs07mji2z8812i5c4pi5pbi738s977s"))))
-    (build-system trivial-build-system)
     (build-system font-build-system)
     (arguments
      `(#:phases
-- 
2.13.0


[-- Attachment #5: 0004-gnu-font-liberation-Use-font-build-system.patch --]
[-- Type: text/plain, Size: 2222 bytes --]

From 4c755af01c83db5fba9a243d9f5f6a328ad2a3d3 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@no-reply.pragmatique.xyz>
Date: Sun, 28 May 2017 19:33:13 +0000
Subject: [PATCH 4/4] gnu: font-liberation: Use 'font-build-system'.

* gnu/packages/fonts.scm (font-liberation): Switch to 'font-build-system'.
---
 gnu/packages/fonts.scm | 29 +----------------------------
 1 file changed, 1 insertion(+), 28 deletions(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 310613c89..2f7c7cf9f 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -231,34 +231,7 @@ sans-serif designed for on-screen reading.  It is used by GNOME@tie{}3.")
               (sha256
                (base32
                 "010m4zfqan4w04b6bs9pm3gapn9hsb18bmwwgp2p6y6idj52g43q"))))
-    (build-system trivial-build-system)
-    (arguments
-     `(#:modules ((guix build utils))
-       #:builder
-       (begin
-         (use-modules (guix build utils))
-
-         (let ((tar      (string-append (assoc-ref %build-inputs "tar")
-                                        "/bin/tar"))
-               (PATH     (string-append (assoc-ref %build-inputs "gzip")
-                                        "/bin"))
-               (font-dir (string-append %output "/share/fonts/truetype"))
-               (doc-dir  (string-append %output "/share/doc/" ,name)))
-           (setenv "PATH" PATH)
-           (system* tar "xvf" (assoc-ref %build-inputs "source"))
-           (mkdir-p font-dir)
-           (mkdir-p doc-dir)
-           (chdir (string-append "liberation-fonts-ttf-" ,version))
-           (for-each (lambda (ttf)
-                       (install-file ttf font-dir))
-                     (find-files "." "\\.ttf$"))
-           (for-each (lambda (doc)
-                       (install-file doc doc-dir))
-                     '("AUTHORS" "ChangeLog" "LICENSE" "README" "TODO"))))))
-    (native-inputs
-     `(("source" ,source)
-       ("tar" ,tar)
-       ("gzip" ,gzip)))
+    (build-system font-build-system)
     (home-page "https://pagure.io/liberation-fonts/")
     (synopsis
      "Fonts compatible with Arial, Times New Roman, and Courier New")
-- 
2.13.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#27123: fonts: more changes to font-build-system, one follow up commit
  2017-05-28 20:57 bug#27123: fonts: more changes to font-build-system, one follow up commit ng0
@ 2017-05-29 17:47 ` Arun Isaac
       [not found] ` <07bb4605.AEEALIAeSwcAAAAAAAAAAAPFwUoAAAACwQwAAAAAAAW9WABZLF7L@mailjet.com>
  2017-06-01  9:51 ` Arun Isaac
  2 siblings, 0 replies; 5+ messages in thread
From: Arun Isaac @ 2017-05-29 17:47 UTC (permalink / raw)
  To: ng0; +Cc: 27123


Thanks for the patches! Patches 1, 3 and 4 LGTM.

Patch 2...

> * gnu/packages/fonts.scm (font-awesome)[source]: Switch to the source on github as the previous zip file
> is updated in place, resulting in a changed hash sum.

This commit message line is too long. On emacs, you can wrap it to the
next line with `fill-paragraph'.

The contents of the zip archive are updated in place without changing
the version number? Is that what you mean by "in place"?

Should we treat this as a one-time accident by upstream? Or have they
made a habit out of this?

IMO, we should forgive them this one time, and if they do this again,
then we can move to their github release archive. WDYT?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#27123: fonts: more changes to font-build-system, one follow up commit
       [not found] ` <07bb4605.AEEALIAeSwcAAAAAAAAAAAPFwUoAAAACwQwAAAAAAAW9WABZLF7L@mailjet.com>
@ 2017-05-29 18:28   ` ng0
  2017-05-29 18:54     ` Arun Isaac
  0 siblings, 1 reply; 5+ messages in thread
From: ng0 @ 2017-05-29 18:28 UTC (permalink / raw)
  To: 27123

Arun Isaac transcribed 0.7K bytes:
> 
> Thanks for the patches! Patches 1, 3 and 4 LGTM.

Ok.

> Patch 2...
> 
> > * gnu/packages/fonts.scm (font-awesome)[source]: Switch to the source on github as the previous zip file
> > is updated in place, resulting in a changed hash sum.
> 
> This commit message line is too long. On emacs, you can wrap it to the
> next line with `fill-paragraph'.

Yeah, git commit message has no limit, otherwise I wrap at 70.

> The contents of the zip archive are updated in place without changing
> the version number? Is that what you mean by "in place"?
> 
> Should we treat this as a one-time accident by upstream? Or have they
> made a habit out of this?
> 
> IMO, we should forgive them this one time, and if they do this again,
> then we can move to their github release archive. WDYT?
> 

It looks like this is done regulary, at least from their setup.

The 'assets' directory on the website where the zip file is
contained in comes from the tar.gz source.
I don't really think this patch should be applied, but we
should monitor the situation.
-- 
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#27123: fonts: more changes to font-build-system, one follow up commit
  2017-05-29 18:28   ` ng0
@ 2017-05-29 18:54     ` Arun Isaac
  0 siblings, 0 replies; 5+ messages in thread
From: Arun Isaac @ 2017-05-29 18:54 UTC (permalink / raw)
  To: ng0; +Cc: 27123


> It looks like this is done regulary, at least from their setup.

Ok.

> The 'assets' directory on the website where the zip file is
> contained in comes from the tar.gz source.

> I don't really think this patch should be applied, but we
> should monitor the situation.

Sure!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#27123: fonts: more changes to font-build-system, one follow up commit
  2017-05-28 20:57 bug#27123: fonts: more changes to font-build-system, one follow up commit ng0
  2017-05-29 17:47 ` Arun Isaac
       [not found] ` <07bb4605.AEEALIAeSwcAAAAAAAAAAAPFwUoAAAACwQwAAAAAAAW9WABZLF7L@mailjet.com>
@ 2017-06-01  9:51 ` Arun Isaac
  2 siblings, 0 replies; 5+ messages in thread
From: Arun Isaac @ 2017-06-01  9:51 UTC (permalink / raw)
  To: ng0; +Cc: 27123-done


Pushed!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-01  9:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-28 20:57 bug#27123: fonts: more changes to font-build-system, one follow up commit ng0
2017-05-29 17:47 ` Arun Isaac
     [not found] ` <07bb4605.AEEALIAeSwcAAAAAAAAAAAPFwUoAAAACwQwAAAAAAAW9WABZLF7L@mailjet.com>
2017-05-29 18:28   ` ng0
2017-05-29 18:54     ` Arun Isaac
2017-06-01  9:51 ` Arun Isaac

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).