1 |
commit: 7c1ddcdd1824b74e6b051d3ac4b1f3c1096b8603 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 30 18:04:22 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 30 20:41:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c1ddcdd |
7 |
|
8 |
net-libs/libsmi: fix libsmi.m4 for clang 16 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
.../libsmi/files/libsmi-0.5.0-fix-macro-clang16.patch | 16 ++++++++++++++++ |
13 |
.../{libsmi-0.5.0-r3.ebuild => libsmi-0.5.0-r4.ebuild} | 1 + |
14 |
2 files changed, 17 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/libsmi/files/libsmi-0.5.0-fix-macro-clang16.patch b/net-libs/libsmi/files/libsmi-0.5.0-fix-macro-clang16.patch |
17 |
new file mode 100644 |
18 |
index 000000000000..0ffe6dd92606 |
19 |
--- /dev/null |
20 |
+++ b/net-libs/libsmi/files/libsmi-0.5.0-fix-macro-clang16.patch |
21 |
@@ -0,0 +1,16 @@ |
22 |
+stdio needed for sscanf(), stdlib is included by smi.h but let's include it |
23 |
+anyway for exit(). |
24 |
+--- a/libsmi.m4 |
25 |
++++ b/libsmi.m4 |
26 |
+@@ -12,7 +12,10 @@ AC_DEFUN([AM_PATH_LIBSMI], |
27 |
+ AC_MSG_CHECKING([whether to enable libsmi]) |
28 |
+ AC_TRY_RUN([ /* libsmi available check */ |
29 |
+ #include <smi.h> |
30 |
+-main() |
31 |
++#include <stdlib.h> |
32 |
++#include <stdio.h> |
33 |
++#include <string.h> |
34 |
++int main(void) |
35 |
+ { |
36 |
+ int current, revision, age, n; |
37 |
+ const int required = 2; |
38 |
|
39 |
diff --git a/net-libs/libsmi/libsmi-0.5.0-r3.ebuild b/net-libs/libsmi/libsmi-0.5.0-r4.ebuild |
40 |
similarity index 95% |
41 |
rename from net-libs/libsmi/libsmi-0.5.0-r3.ebuild |
42 |
rename to net-libs/libsmi/libsmi-0.5.0-r4.ebuild |
43 |
index ef7935dddac7..6f190736f93a 100644 |
44 |
--- a/net-libs/libsmi/libsmi-0.5.0-r3.ebuild |
45 |
+++ b/net-libs/libsmi/libsmi-0.5.0-r4.ebuild |
46 |
@@ -23,6 +23,7 @@ BDEPEND=" |
47 |
PATCHES=( |
48 |
"${FILESDIR}"/${PN}-0.5.0-implicit-function-declarations.patch |
49 |
"${FILESDIR}"/${PN}-0.5.0-clang-15-configure.patch |
50 |
+ #"${FILESDIR}"/${PN}-0.5.0-fix-macro-clang16.patch |
51 |
) |
52 |
|
53 |
src_prepare() { |