From e05f0e9832326703fa90a02559f1a4b44e4401ad Mon Sep 17 00:00:00 2001 From: John Kehayias Date: Sat, 31 Aug 2024 22:26:48 -0400 Subject: gnu: tomlplusplus: Fix build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/cpp.scm (tomlplusplus)[arguments]<#:phases>: Move the "C" locale to part of the utf8 locale list. [native-inputs]: Add ‘libc-utf8-locales-for-target’. Change-Id: I1e6362dd27e88d22e1c40aea1ccf1767c93fbeac --- gnu/packages/cpp.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 93ffef3989..4951fdbc44 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -75,6 +75,7 @@ (define-module (gnu packages cpp) #:use-module (gnu packages) #:use-module (gnu packages assembly) #:use-module (gnu packages autotools) + #:use-module (gnu packages base) #:use-module (gnu packages bdw-gc) #:use-module (gnu packages benchmark) #:use-module (gnu packages boost) @@ -914,11 +915,12 @@ (define-public tomlplusplus (lambda _ (substitute* "tests/meson.build" (("foreach locale : test_locales" all) - (format #f "test_locales = ['C', ~{'~a.utf8', ~}]~%~a" + (format #f "test_locales = [~{'~a.utf8', ~}]~%~a" ;; %default-utf8-locales in (gnu packages base). - '("de_DE" "el_GR" "en_US" "fr_FR" "tr_TR") + '("C" "de_DE" "el_GR" "en_US" "fr_FR" "tr_TR") all)))))))) - (native-inputs (list cmake-minimal)) + ;; Tests require locales. + (native-inputs (list cmake-minimal (libc-utf8-locales-for-target))) (home-page "https://marzer.github.io/tomlplusplus/") (synopsis "Header-only TOML config file parser and serializer for C++17") (description -- cgit v1.2.3