1 |
commit: c9aa9aa6ed56f63c8b8593792fd76e5cf1c8f349 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 4 01:37:32 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 4 02:22:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9aa9aa6 |
7 |
|
8 |
dev-libs/uulib: fix configure w/ clang 16 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
...Fix-Wimplicit-function-declaration-for-strerror.patch | 16 ++++++++++++++++ |
13 |
.../{uulib-0.5.20-r2.ebuild => uulib-0.5.20-r3.ebuild} | 1 + |
14 |
2 files changed, 17 insertions(+) |
15 |
|
16 |
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 |
17 |
new file mode 100644 |
18 |
index 000000000000..3f1e7c75ec93 |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/uulib/files/uulib-0.5.20-Fix-Wimplicit-function-declaration-for-strerror.patch |
21 |
@@ -0,0 +1,16 @@ |
22 |
+From 5679254b7b79e2f091fbb8658af910fe961f4d65 Mon Sep 17 00:00:00 2001 |
23 |
+From: Sam James <sam@g.o> |
24 |
+Date: Fri, 4 Nov 2022 01:35:53 +0000 |
25 |
+Subject: [PATCH] Fix -Wimplicit-function-declaration for strerror |
26 |
+ |
27 |
+Signed-off-by: Sam James <sam@g.o> |
28 |
+--- a/configure.in |
29 |
++++ b/configure.in |
30 |
+@@ -51,6 +51,7 @@ AC_CHECK_FUNC(tempnam,,AC_DEFINE(tempnam,_FP_tempnam)) |
31 |
+ # |
32 |
+ AC_MSG_CHECKING([for strerror]) |
33 |
+ AC_TRY_LINK([ |
34 |
++#include <string.h> |
35 |
+ char *blubb() { return (char *) strerror (42); } |
36 |
+ ],[ |
37 |
+ (void) blubb(); |
38 |
|
39 |
diff --git a/dev-libs/uulib/uulib-0.5.20-r2.ebuild b/dev-libs/uulib/uulib-0.5.20-r3.ebuild |
40 |
similarity index 90% |
41 |
rename from dev-libs/uulib/uulib-0.5.20-r2.ebuild |
42 |
rename to dev-libs/uulib/uulib-0.5.20-r3.ebuild |
43 |
index 7fb2f06b6273..d90186cd79ae 100644 |
44 |
--- a/dev-libs/uulib/uulib-0.5.20-r2.ebuild |
45 |
+++ b/dev-libs/uulib/uulib-0.5.20-r3.ebuild |
46 |
@@ -18,6 +18,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x |
47 |
|
48 |
PATCHES=( |
49 |
"${FILESDIR}"/${P}-libtool.patch # 780018 |
50 |
+ "${FILESDIR}"/${PN}-0.5.20-Fix-Wimplicit-function-declaration-for-strerror.patch |
51 |
) |
52 |
|
53 |
src_prepare() { |