mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
0bfa32fcd2
commit
4ec561b1c2
1 changed files with 5 additions and 0 deletions
|
@ -225,6 +225,11 @@ the traditional flat-text whatis databases.")
|
||||||
#:make-flags #~(list (string-append "bindir=" #$output "/bin")
|
#:make-flags #~(list (string-append "bindir=" #$output "/bin")
|
||||||
"manhtml")
|
"manhtml")
|
||||||
#:phases #~(modify-phases %standard-phases
|
#: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
|
(replace 'configure
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "CC" #$(cc-for-target))
|
(setenv "CC" #$(cc-for-target))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue