commit:     c69a91ab2f6cb239c07e3c441d8a1adcb8514773
Author:     Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Thu Sep 25 07:08:36 2025 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Thu Sep 25 10:30:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c69a91ab

dev-db/redis: fix build w/ clang

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 <zhixu.liu <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43934
Closes: https://github.com/gentoo/gentoo/pull/43934
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 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 c414d2061bf1..81d1d9abcd16 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 f387e6f78b0b..7ed2bb4869c5 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() {

Reply via email to