diff options
author | Andreas Enge <andreas@enge.fr> | 2025-07-15 12:07:01 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-07-17 22:21:16 +0200 |
commit | ca3bfde151283b83172fbaaae3f9d7b76e6a66c7 (patch) | |
tree | e36aa524d15d9b4bb0dc0742492bd9b5b26dcb24 | |
parent | 8f9df3fbfd190c8d2a438c1ecf43a1dcba5bcfcb (diff) |
gnu: xournal: Fix build with gcc@14.
* gnu/packages/pdf.scm (xournal)[arguments]
<#:make-flags>: Turn errors into warnings.
<#:phases>: New phase 'fix-includes to include a header file.
Change-Id: Ie5ffa4e9edf1332480d99dadc73ad97818399068
-rw-r--r-- | gnu/packages/pdf.scm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index c88cb650c8..c142dee46e 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -1144,6 +1144,23 @@ enhance the quality of scanned pages before performing (base32 "09i88v3wacmx7f96dmq0l3afpyv95lh6jrx16xzm0jd1szdrhn5j")))) (build-system gnu-build-system) + (arguments + (list + #:make-flags + #~(list (string-append "CFLAGS=-g -O2 " + ;; Placate gcc@14 strictness. + "-Wno-error=deprecated-declarations " + "-Wno-error=implicit-function-declaration")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-includes + ;; Inclusion of unistd.h is conditional on HAVE_UNISTD_H being + ;; defined, but this comes from config.h. + (lambda _ + (with-fluids ((%default-port-encoding "ISO-8859-1")) + (substitute* "src/ttsubset/sft.h" + (("#include <sys/types.h>") + "#include \"config.h\"\n#include <sys/types.h>")))))))) (inputs (list gtk+-2 pango poppler glib libgnomecanvas)) (native-inputs |