gnu: blobwars: Fix build.

* gnu/packages/games.scm (blobwars)[arguments]<#:phases>: Get rid of
custom 'strlcat' and 'strlcpy' implementations.

Change-Id: I657d316a4846eda6ae817bc76a6070bcc70adb2e
This commit is contained in:
宋文武 2024-06-19 08:49:09 +08:00 committed by Ludovic Courtès
parent 3266dbd3f0
commit 14093b79fd
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -786,10 +786,13 @@ (define-public blobwars
"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)