[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/51: gnu: fontforge: Fix build with Python 3.8.
From: |
guix-commits |
Subject: |
04/51: gnu: fontforge: Fix build with Python 3.8. |
Date: |
Fri, 24 Jan 2020 14:48:07 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 6e3cbafb60dd55c41dd5cab1f2ccf4077c7cc27a
Author: Marius Bakke <address@hidden>
AuthorDate: Thu Jan 16 08:11:08 2020 +0100
gnu: fontforge: Fix build with Python 3.8.
* gnu/packages/fontutils.scm (fontforge)[native-inputs]: Add AUTOCONF,
AUTOMAKE, and LIBTOOL.
[arguments]: Add phase 'fix-linking-with-python-3.8'.
---
gnu/packages/fontutils.scm | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 34e17fd..1e5ebea 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -9,7 +9,7 @@
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2018 Ricardo Wurmus <address@hidden>
;;; Copyright © 2018, 2019 Ludovic Courtès <address@hidden>
-;;; Copyright © 2019 Marius Bakke <address@hidden>
+;;; Copyright © 2019, 2020 Marius Bakke <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -585,7 +585,13 @@ definitions.")
(base32 "0lh8yx01asbzxm6car5cfi64njh5p4lxc7iv8dldr5rwg357a86r"))))
(build-system gnu-build-system)
(native-inputs
- `(("pkg-config" ,pkg-config)))
+ `(("pkg-config" ,pkg-config)
+
+ ;; TODO: Remove these inputs and the 'fix-linking-with-python-3.8' phase
+ ;; below when updating fontforge.
+ ("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)))
(inputs `(("cairo" ,cairo)
("fontconfig" ,fontconfig) ;dlopen'd
("freetype" ,freetype)
@@ -610,6 +616,17 @@ definitions.")
(arguments
'(#:phases
(modify-phases %standard-phases
+ (add-before 'bootstrap 'fix-linking-with-python-3.8
+ (lambda _
+ ;; Applications that embed the Python interpreter are supposed to
+ ;; use the new "python-3.8-embed.pc" pkg-config file starting with
+ ;; Python 3.8. Adjust the build system accordingly.
+ (substitute* "m4/fontforge_arg_enable.m4"
+ (("python-\"\\$\\{PYTHON_VERSION\\}\"" all)
+ (string-append all "-embed")))
+ ;; Delete the configure script in order to force autoreconf.
+ (delete-file "configure")
+ #t))
(add-after 'install 'set-library-path
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
- branch core-updates updated (3440fec -> 8c81210), guix-commits, 2020/01/24
- 01/51: gnu: gobject-introspection: Update to 1.62.0., guix-commits, 2020/01/24
- 06/51: gnu: python-coverage: Update to 5.0.3., guix-commits, 2020/01/24
- 04/51: gnu: fontforge: Fix build with Python 3.8.,
guix-commits <=
- 17/51: gnu: python-sortedcontainers: Add python2 variant., guix-commits, 2020/01/24
- 13/51: gnu: python-flake8: Update to 3.7.9., guix-commits, 2020/01/24
- 10/51: gnu: python-configparser: Update to 4.0.2., guix-commits, 2020/01/24
- 12/51: gnu: python2-pathlib2: Update to 2.3.5., guix-commits, 2020/01/24
- 28/51: gnu: python-pytest-cov: Update to 2.8.1., guix-commits, 2020/01/24
- 03/51: gnu: boost: Fix build with Python 3.8., guix-commits, 2020/01/24
- 11/51: gnu: python-six: Update to 1.13.0., guix-commits, 2020/01/24
- 07/51: gnu: python-setuptools-scm: Update to 3.3.3., guix-commits, 2020/01/24
- 05/51: gnu: python-scandir: Update to 1.10.0., guix-commits, 2020/01/24
- 09/51: gnu: python-typing: Update to 3.7.4.1., guix-commits, 2020/01/24