gnu: compface: Fix build with gcc-14.

* gnu/packages/mail.scm (compface)[arguments]<#:configure-flags>: New field.
<#:phases>: Add new phase 'fix-includes.

Change-Id: I875b8709b0c09aa06f96a9a1db0760773c5dccd2
This commit is contained in:
Andreas Enge 2025-08-17 16:31:17 +02:00
parent 14e77e9db3
commit 72b50476e5
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -1895,7 +1895,17 @@ MailCore 2.")
"09b89wg63hg502hsz592cd2h87wdprb1dq1k1y07n89hym2q56d6"))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f))
(list
#:tests? #f
#:configure-flags
#~(list "CFLAGS=-g -O2 -DSTDC_HEADERS")
#:phases
#~(modify-phases %standard-phases
(add-before 'configure 'fix-includes
(lambda _
(substitute* "config.h"
(("#include <stdlib.h>" all)
(string-append all "\n#include <unistd.h>"))))))))
(synopsis "Portrait image compressor")
(description "This package takes your 48x48x1 portrait image and
compresses it.")