From c69a91ab2f6cb239c07e3c441d8a1adcb8514773 Mon Sep 17 00:00:00 2001 From: "Z. Liu" Date: Thu, 25 Sep 2025 07:08:36 +0000 Subject: [PATCH] dev-db/redis: fix build w/ clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using "-std=c99" while compiling C++, g++ only issues a warning: > cc1plus: warning: command-line option '-std=c99' is valid for C/ObjC but not for C++ However, clang++ reports an error: > error: invalid argument '-std=c99' not allowed with 'C++ Therefore, remove "-std=c99" for deps/fast_float/Makefile as well, otherwise the build fails with: > clang: error: no such file or directory: '../deps/fast_float/libfast_float.a Signed-off-by: Z. Liu Part-of: https://github.com/gentoo/gentoo/pull/43934 Closes: https://github.com/gentoo/gentoo/pull/43934 Signed-off-by: Petr Vaněk --- dev-db/redis/redis-8.2.0.ebuild | 2 +- dev-db/redis/redis-8.2.1.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-db/redis/redis-8.2.0.ebuild b/dev-db/redis/redis-8.2.0.ebuild index c414d2061bf1e..81d1d9abcd161 100644 --- a/dev-db/redis/redis-8.2.0.ebuild +++ b/dev-db/redis/redis-8.2.0.ebuild @@ -94,7 +94,7 @@ src_configure() { # Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164 # also, don't define ANSI/c99 for lua twice - sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die + sed -i -e "s:-std=c99::g" deps{,/fast_float,/linenoise}/Makefile || die } src_compile() { diff --git a/dev-db/redis/redis-8.2.1.ebuild b/dev-db/redis/redis-8.2.1.ebuild index f387e6f78b0b4..7ed2bb4869c5a 100644 --- a/dev-db/redis/redis-8.2.1.ebuild +++ b/dev-db/redis/redis-8.2.1.ebuild @@ -94,7 +94,7 @@ src_configure() { # Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164 # also, don't define ANSI/c99 for lua twice - sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die + sed -i -e "s:-std=c99::g" deps{,/fast_float,/linenoise}/Makefile || die } src_compile() {