diff options
author | Andreas Enge <andreas@enge.fr> | 2025-07-15 12:07:01 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-07-18 20:17:53 +0200 |
commit | 390bec78722b59ccae86d629a92619a7f09b7434 (patch) | |
tree | a5ba7bc05c04e0fe6d484a54bf3347741d55c472 | |
parent | 55777833aef3df8aca919d9b4f20ec37f6cb3950 (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 |