commit: c9aa9aa6ed56f63c8b8593792fd76e5cf1c8f349 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Nov 4 01:37:32 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Nov 4 02:22:16 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9aa9aa6
dev-libs/uulib: fix configure w/ clang 16 Signed-off-by: Sam James <sam <AT> gentoo.org> ...Fix-Wimplicit-function-declaration-for-strerror.patch | 16 ++++++++++++++++ .../{uulib-0.5.20-r2.ebuild => uulib-0.5.20-r3.ebuild} | 1 + 2 files changed, 17 insertions(+) diff --git a/dev-libs/uulib/files/uulib-0.5.20-Fix-Wimplicit-function-declaration-for-strerror.patch b/dev-libs/uulib/files/uulib-0.5.20-Fix-Wimplicit-function-declaration-for-strerror.patch new file mode 100644 index 000000000000..3f1e7c75ec93 --- /dev/null +++ b/dev-libs/uulib/files/uulib-0.5.20-Fix-Wimplicit-function-declaration-for-strerror.patch @@ -0,0 +1,16 @@ +From 5679254b7b79e2f091fbb8658af910fe961f4d65 Mon Sep 17 00:00:00 2001 +From: Sam James <s...@gentoo.org> +Date: Fri, 4 Nov 2022 01:35:53 +0000 +Subject: [PATCH] Fix -Wimplicit-function-declaration for strerror + +Signed-off-by: Sam James <s...@gentoo.org> +--- a/configure.in ++++ b/configure.in +@@ -51,6 +51,7 @@ AC_CHECK_FUNC(tempnam,,AC_DEFINE(tempnam,_FP_tempnam)) + # + AC_MSG_CHECKING([for strerror]) + AC_TRY_LINK([ ++#include <string.h> + char *blubb() { return (char *) strerror (42); } + ],[ + (void) blubb(); diff --git a/dev-libs/uulib/uulib-0.5.20-r2.ebuild b/dev-libs/uulib/uulib-0.5.20-r3.ebuild similarity index 90% rename from dev-libs/uulib/uulib-0.5.20-r2.ebuild rename to dev-libs/uulib/uulib-0.5.20-r3.ebuild index 7fb2f06b6273..d90186cd79ae 100644 --- a/dev-libs/uulib/uulib-0.5.20-r2.ebuild +++ b/dev-libs/uulib/uulib-0.5.20-r3.ebuild @@ -18,6 +18,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x PATCHES=( "${FILESDIR}"/${P}-libtool.patch # 780018 + "${FILESDIR}"/${PN}-0.5.20-Fix-Wimplicit-function-declaration-for-strerror.patch ) src_prepare() {