gnu: man2html: Fix build with gcc-14.

* gnu/packages/man.scm (man2html)[arguments]<#:phases>{fix-includes}:
New phase.

Change-Id: I2a162468b4fe5c7d6c662dbe5f8e3b620b6c825a
This commit is contained in:
Andreas Enge 2025-07-30 12:58:25 +02:00
parent 0bfa32fcd2
commit 4ec561b1c2
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -225,6 +225,11 @@ the traditional flat-text whatis databases.")
#:make-flags #~(list (string-append "bindir=" #$output "/bin")
"manhtml")
#:phases #~(modify-phases %standard-phases
(add-before 'configure 'fix-includes
(lambda _
(substitute* "src/makemsg.c"
(("#include <unistd.h>" all)
(string-append all "\n#include <string.h>")))))
(replace 'configure
(lambda _
(setenv "CC" #$(cc-for-target))