From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 22 17:51:46 2020 Received: (at submit) by debbugs.gnu.org; 22 Apr 2020 21:51:46 +0000 Received: from localhost ([127.0.0.1]:53490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRNHQ-0001Av-N8 for submit@debbugs.gnu.org; Wed, 22 Apr 2020 17:51:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:35814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRNHP-0001Ao-2Z for submit@debbugs.gnu.org; Wed, 22 Apr 2020 17:51:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52790) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRNHO-0002pR-8O for bug-guix@gnu.org; Wed, 22 Apr 2020 17:51:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRNHM-0002kB-5Z for bug-guix@gnu.org; Wed, 22 Apr 2020 17:51:37 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:50217) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jRNHL-0002hf-Ci for bug-guix@gnu.org; Wed, 22 Apr 2020 17:51:35 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 2FD652F6; Wed, 22 Apr 2020 17:51:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 22 Apr 2020 17:51:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=mesmtp; bh=vhDxB9EVgmIO24y6zQP8jAc q0YFMVb9M0H3kPXj2AmA=; b=KC2eycRMVUZY2zzhjDS49vbyanUH4K4vmer72uh KUnOQfIImBG8RKbBJldsHbarVVDbNp6fobLQKrJzggcmawvXn+k2me3FB5xDjavk eFWnF3zNKVL7zFomOoWn0tS0A8REr92HEoLOlyOtCNHXWfBwjGDYL/kybt8/Spas 1Lv4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=vhDxB9 EVgmIO24y6zQP8jAcq0YFMVb9M0H3kPXj2AmA=; b=qvQi34UUdPm2yNZ18WG5H/ ogZ6gn8+EIEtUI+cjqv8KscZXz4HvEA+NJDHzmwwiI884e8iyqpOEHr0KXuFMg9r q4/tDxpYYg/Uf0F9lPvxpGG0MkWHWvEyyc5GSPrHfzmCBaUajzdilZahqlpWNuRR M9aP9fcPJGgr45Sx/1HKw8ZjMm5vFAyg1eUJcXINrn4ao18yr3o9saIIHdpxCx2/ Dry1IGTTHnUK3BNXDPNS+gyYPhuxw+MXfdPFcoo2GcnkmPEPyLnR1opzwx8dxwdp M7UpQixCWamU48OnY82Ud9fcIXnW3cuQswE+BEPbq3uvreRil3mFoE1I0RNTvupw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgeekgddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggugfesmhekreertd dtvdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhi rdhnrghmvgeqnecukfhppeejiedruddvgedrudefkedrieefnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhn rghmvg X-ME-Proxy: Received: from localhost (c-76-124-138-63.hsd1.pa.comcast.net [76.124.138.63]) by mail.messagingengine.com (Postfix) with ESMTPA id 8E9423065C91 for ; Wed, 22 Apr 2020 17:51:32 -0400 (EDT) Date: Wed, 22 Apr 2020 17:51:26 -0400 From: Leo Famulari To: bug-guix@gnu.org Subject: GNU FreeFont silent build failure Message-ID: <20200422215126.GA1669@jasmine.lan> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.147.123.24; envelope-from=leo@famulari.name; helo=wout1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/22 17:51:33 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.24 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The GNU FreeFont package is still using system* instead of invoke in its install phase, and this is failing silently: ------ mkdir /gnu/store/1nfp73g3s15dhpqjrbfsihk7jrcbbl1p-font-gnu-freefont-20120503/share/doc/font-gnu-freefont-20120503 cp -a README AUTHORS CREDITS COPYING ChangeLog INSTALL /gnu/store/1nfp73g3s15dhpqjrbfsihk7jrcbbl1p-font-gnu-freefont-20120503/share/doc/font-gnu-freefont-20120503 cp -a notes/usage.txt /gnu/store/1nfp73g3s15dhpqjrbfsihk7jrcbbl1p-font-gnu-freefont-20120503/share/doc/font-gnu-freefont-20120503/USAGE cp -a notes/troubleshooting.txt /gnu/store/1nfp73g3s15dhpqjrbfsihk7jrcbbl1p-font-gnu-freefont-20120503/share/doc/font-gnu-freefont-20120503/TROUBLESHOOTING tar czvf freefont-ttf-20200422.tar.gz freefont-20200422/ tar: freefont-20200422: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors make: *** [Makefile:64: ttftar] Error 2 phase `install' succeeded after 0.2 seconds ------ Notice that it is using the current date. It doesn't work to use the Unix epoch or the version of the package: 20120503 (see attached). We should figure out what this is trying to accomplish, fix it, and switch to invoke. The fonts are getting installed AFAICT. --0F1p//8PRICkK4MW Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="0001-gnu-GNU-FreeFont-Add-otf-and-woff-font-formats.patch" Content-Transfer-Encoding: 8bit >From a3c8951e2a8a1dc76aa184272fcb107c90246518 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 19 Apr 2020 00:51:54 -0400 Subject: [PATCH] gnu: GNU FreeFont: Add otf and woff font formats. * gnu/packages/fonts.scm (font-gnu-freefont)[arguments]: Add otf and woff font formats. * gnu/packages/genealogy.scm (gramps)[inputs]: Change input name of GNU Freefont. Signed-off-by: Leo Famulari --- gnu/packages/fonts.scm | 68 ++++++++++++++++++++++++++------------ gnu/packages/genealogy.scm | 2 +- 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 9ab5587b98..f1cabf9202 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -32,6 +32,7 @@ ;;; Copyright © 2020 Amin Bandali ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2020 John Soo +;;; Copyright © 2020 Raghav Gururajan ;;; ;;; This file is part of GNU Guix. ;;; @@ -232,9 +233,9 @@ The Lato 2.010 family supports more than 100 Latin-based languages, over 50 Cyrillic-based languages as well as Greek and IPA phonetics.") (license license:silofl1.1))) -(define-public font-gnu-freefont-ttf +(define-public font-gnu-freefont (package - (name "font-gnu-freefont-ttf") + (name "font-gnu-freefont") (version "20120503") (source (origin (method url-fetch) @@ -245,25 +246,50 @@ The Lato 2.010 family supports more than 100 Latin-based languages, over "0yk58blhcd4hm7nyincmqq4jrzjjk82wif2zmk1l3y2m4vif4qhd")))) (build-system gnu-build-system) (arguments - `(#:phases (modify-phases %standard-phases - (delete 'configure) - (replace 'install - (lambda _ - (let ((doc-dir (string-append %output "/share/doc/" - ,name "-" ,version)) - (font-dir (string-append %output - "/share/fonts/truetype"))) - (mkdir-p doc-dir) - (substitute* "Makefile" - (("\\$\\(TMPDIR\\)") doc-dir) - (("sfd/\\*.ttf") "")) - (system* "make" "ttftar") - (mkdir-p font-dir) - (for-each (lambda (file) - (install-file file font-dir)) - (filter - (lambda (file) (string-suffix? "ttf" file)) - (find-files "." ""))))))) + `(#:modules ((srfi srfi-19) ; make-time, et cetera + (guix build utils) + (guix build gnu-build-system)) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda _ + (let ((doc-dir (string-append %output "/share/doc/" + ,name "-" ,version)) + (ttf-font-dir (string-append %output + "/share/fonts/ttf")) + (otf-font-dir (string-append %output + "/share/fonts/otf")) + (woff-font-dir (string-append %output + "/share/fonts/woff"))) + (mkdir-p doc-dir) + (substitute* "Makefile" + (("\\$\\(TMPDIR\\)") doc-dir) + (("sfd/\\*.ttf") "") + (("sfd/\\*.otf") "") + (("sfd/\\*.woff") "")) + ;; XXX The FreeFont Makefile tries to use the current time and + ;; date as names for generated files, and fails silently. But the + ;; fonts are still installed, so don't use INVOKE for now. + (system* "make" "ttftar" "otftar" "wofftar") + (mkdir-p ttf-font-dir) + (mkdir-p otf-font-dir) + (mkdir-p woff-font-dir) + (for-each (lambda (file) + (install-file file ttf-font-dir)) + (filter + (lambda (file) (string-suffix? "ttf" file)) + (find-files "." ""))) + (for-each (lambda (file) + (install-file file otf-font-dir)) + (filter + (lambda (file) (string-suffix? "otf" file)) + (find-files "." ""))) + (for-each (lambda (file) + (install-file file woff-font-dir)) + (filter + (lambda (file) (string-suffix? "woff" file)) + (find-files "." ""))))))) #:test-target "tests")) ;; replace python 3 with python 2 ;; python 3 support commits aren't yet released in 20120503 diff --git a/gnu/packages/genealogy.scm b/gnu/packages/genealogy.scm index 869f69add8..79b24ed048 100644 --- a/gnu/packages/genealogy.scm +++ b/gnu/packages/genealogy.scm @@ -55,7 +55,7 @@ ("intltool" ,intltool))) (inputs `(("cairo" ,cairo) - ("font-gnu-freefont-ttf" ,font-gnu-freefont-ttf) + ("font-gnu-freefont" ,font-gnu-freefont) ("geocode-glib" ,geocode-glib) ("gexiv2" ,gexiv2) ("ghostscript" ,ghostscript) -- 2.26.2 --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=source-date-epoch-snippet `(#:modules ((srfi srfi-19) ; make-time, et cetera (guix build utils) (guix build gnu-build-system)) #:phases (modify-phases %standard-phases ;; The FreeFont build scripts try to use the current time and date as ;; names for generated files. (add-after 'unpack 'source-date-epoch (lambda _ (substitute* "Makefile" (("\\$\\(shell date \\+\\\"%Y%m%d\\\"\\)") (date->string (time-utc->date (make-time time-utc 0 (string->number (getenv "SOURCE_DATE_EPOCH")))) "~4"))) #t)) --0F1p//8PRICkK4MW--