From fedce7b2b474251a7b7e0e4fb7cc80d89a2939bd Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Mon, 3 Feb 2020 09:24:34 +0100 Subject: [PATCH] gnu: libfaketime: Fix build with glibc 2.31. * gnu/packages/check.scm (libfaketime)[arguments]: Disable "deprecated-declarations" warnings before running the test suite. --- gnu/packages/check.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 6c809c7d7c..e819ca72cd 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -2437,6 +2437,10 @@ portable to just about any platform.") (lambda _ (substitute* "test/functests/test_exclude_mono.sh" (("/bin/bash") (which "bash"))) + + ;; Do not fail due to use of 'ftime', which was deprecated in + ;; glibc 2.31. Remove this for later versions of libfaketime. + (setenv "FAKETIME_COMPILE_CFLAGS" "-Wno-deprecated-declarations") #t))) #:test-target "test")) (native-inputs