iyzsong pushed a commit to branch core-updates
in repository guix.

commit 7cfd681ed5a49567daeae19ff5d541bdaa1d51ae
Author: 宋文武 <iyzs...@member.fsf.org>
AuthorDate: Wed Jun 19 08:49:09 2024 +0800

    gnu: blobwars: Fix build.
    
    * gnu/packages/games.scm (blobwars)[arguments]<#:phases>: Get rid of
    custom 'strlcat' and 'strlcpy' implementations.
    
    Change-Id: I657d316a4846eda6ae817bc76a6070bcc70adb2e
---
 gnu/packages/games.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 8a01387d2c..6e3414ff93 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -786,10 +786,13 @@ terminal.")
                "RELEASE=1"))
        #:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'werror-begone
+         (add-after 'unpack 'patch-sources
            (lambda _
              (substitute* "Makefile" (("-Werror") ""))
-             #t))
+             ;; glibc 2.38 includes strlcpy and strlcat.
+             (substitute* "src/headers.h"
+               (("static inline void strlcat.*") "")
+               (("static inline void strlcpy.*") ""))))
          (delete 'configure))))         ;no configure script
     (native-inputs
      `(("gettext" ,gettext-minimal)

Reply via email to