~ruther/guix-local

e422aad214a6f90162c52569ac318df852149525 — Ludovic Courtès a month ago da849a9
gnu: ttf2pt1: Fix compilation with glibc 2.41.

* gnu/packages/fontutils.scm (ttf2pt1)[source]: Patch ‘t1asm.c’.

Change-Id: I2e91a15177d349dcf64aea571debc4ce6bf0e996
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
1 files changed, 7 insertions(+), 1 deletions(-)

M gnu/packages/fontutils.scm
M gnu/packages/fontutils.scm => gnu/packages/fontutils.scm +7 -1
@@ 8,7 8,7 @@
;;; Copyright © 2017 Nikita <nikita@n0.is>
;;; Copyright © 2017, 2018, 2020–2022 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018, 2024 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2018, 2019, 2020, 2021, 2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2018-2021, 2023, 2026 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2019, 2020, 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2020 Roel Janssen <roel@gnu.org>
;;; Copyright © 2020, 2021, 2024 Nicolas Goaziou <mail@nicolasgoaziou.fr>


@@ 1317,6 1317,12 @@ TTF (TrueType/OpenType Font) files.")
              (modules '((guix build utils)))
              (snippet
               '(begin
                  ;; Include <unistd.h> for the 'getopt' declaration.
                  (substitute* "t1asm.c"
                    (("#include <stdio.h>" all)
                     (string-append all "\n"
                                    "#include <unistd.h>\n")))

                  ;; Remove trailing backslashes in the sed expression of the
                  ;; 'install' rule since sed would otherwise fail.
                  (substitute* "Makefile"