diff --git a/dev-db/kyotocabinet/files/kyotocabinet-1.2.79-configure-clang16.patch b/dev-db/kyotocabinet/files/kyotocabinet-1.2.79-configure-clang16.patch new file mode 100644 index 0000000000000..f066cd59bb3e0 --- /dev/null +++ b/dev-db/kyotocabinet/files/kyotocabinet-1.2.79-configure-clang16.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/879653 +--- a/configure.in ++++ b/configure.in +@@ -194,7 +194,7 @@ test -n "$LDFLAGS" && MYLDFLAGS="$LDFLAGS $MYLDFLAGS" + AC_C_BIGENDIAN(MYCPPFLAGS="$MYCPPFLAGS -D_MYBIGEND") + + printf 'checking for useless warnings... ' +-if printf 'main() {}' | $CC -xc \ ++if printf 'int main(void) {}' | $CC -xc \ + -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -o config.tmp - >config.tmp 2>&1 + then + MYCFLAGS="$MYCFLAGS -Wno-unused-but-set-variable -Wno-unused-but-set-parameter" diff --git a/dev-db/kyotocabinet/kyotocabinet-1.2.79.ebuild b/dev-db/kyotocabinet/kyotocabinet-1.2.79-r1.ebuild similarity index 96% rename from dev-db/kyotocabinet/kyotocabinet-1.2.79.ebuild rename to dev-db/kyotocabinet/kyotocabinet-1.2.79-r1.ebuild index 4d737ac5ad0b6..4f78f7efd8c4a 100644 --- a/dev-db/kyotocabinet/kyotocabinet-1.2.79.ebuild +++ b/dev-db/kyotocabinet/kyotocabinet-1.2.79-r1.ebuild @@ -23,6 +23,7 @@ PATCHES=( "${FILESDIR}"/fix_configure-1.2.62.patch "${FILESDIR}"/${PN}-1.2.76-configure-8-byte-atomics.patch "${FILESDIR}"/${PN}-1.2.76-flags.patch + "${FILESDIR}"/${PN}-1.2.79-configure-clang16.patch ) src_prepare() {