~ruther/guix-local

72b50476e589ba6da8f0f16bfc955d157c24615a — Andreas Enge 1 year, 2 months ago 14e77e9
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
1 files changed, 11 insertions(+), 1 deletions(-)

M gnu/packages/mail.scm
M gnu/packages/mail.scm => gnu/packages/mail.scm +11 -1
@@ 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.")