1 |
commit: 83d8d592d9ead4682680138e973c0211bffe835e |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 1 04:09:00 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 1 04:09:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83d8d592 |
7 |
|
8 |
net-analyzer/argus: fix configure w/ clang 16 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
...s-3.0.8.3-r1.ebuild => argus-3.0.8.3-r2.ebuild} | 7 ++-- |
13 |
.../files/argus-3.0.8.3-configure-clang16.patch | 41 ++++++++++++++++++++++ |
14 |
2 files changed, 45 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/net-analyzer/argus/argus-3.0.8.3-r1.ebuild b/net-analyzer/argus/argus-3.0.8.3-r2.ebuild |
17 |
similarity index 93% |
18 |
rename from net-analyzer/argus/argus-3.0.8.3-r1.ebuild |
19 |
rename to net-analyzer/argus/argus-3.0.8.3-r2.ebuild |
20 |
index a4176cf571c4..e316b6bc37ef 100644 |
21 |
--- a/net-analyzer/argus/argus-3.0.8.3-r1.ebuild |
22 |
+++ b/net-analyzer/argus/argus-3.0.8.3-r2.ebuild |
23 |
@@ -1,13 +1,14 @@ |
24 |
-# Copyright 1999-2021 Gentoo Authors |
25 |
+# Copyright 1999-2022 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
-EAPI=7 |
29 |
+EAPI=8 |
30 |
|
31 |
inherit autotools toolchain-funcs |
32 |
|
33 |
DESCRIPTION="network Audit Record Generation and Utilization System" |
34 |
HOMEPAGE="https://openargus.org/" |
35 |
SRC_URI="https://www.qosient.com/argus/dev/${P/_rc/.rc.}.tar.gz" |
36 |
+S="${WORKDIR}"/${P/_rc/.rc.} |
37 |
|
38 |
LICENSE="GPL-3" |
39 |
SLOT="0" |
40 |
@@ -35,8 +36,8 @@ PATCHES=( |
41 |
"${FILESDIR}"/${PN}-3.0.7.3-DLT_IPNET.patch |
42 |
"${FILESDIR}"/${PN}-3.0.8.3-ar.patch |
43 |
"${FILESDIR}"/${PN}-3.0.8.3-as-needed.patch |
44 |
+ "${FILESDIR}"/${PN}-3.0.8.3-configure-clang16.patch |
45 |
) |
46 |
-S=${WORKDIR}/${P/_rc/.rc.} |
47 |
|
48 |
src_prepare() { |
49 |
find . -type f -execdir chmod +w {} \; #561360 |
50 |
|
51 |
diff --git a/net-analyzer/argus/files/argus-3.0.8.3-configure-clang16.patch b/net-analyzer/argus/files/argus-3.0.8.3-configure-clang16.patch |
52 |
new file mode 100644 |
53 |
index 000000000000..2e9720c04326 |
54 |
--- /dev/null |
55 |
+++ b/net-analyzer/argus/files/argus-3.0.8.3-configure-clang16.patch |
56 |
@@ -0,0 +1,41 @@ |
57 |
+https://github.com/openargus/argus/pull/5 |
58 |
+ |
59 |
+From dd987328bd2b99977a1a686a1a6b36d1a3155ff7 Mon Sep 17 00:00:00 2001 |
60 |
+From: Florian Weimer <fweimer@××××××.com> |
61 |
+Date: Fri, 25 Nov 2022 19:03:24 +0100 |
62 |
+Subject: [PATCH] configure (AC_LBL_UNALIGNED_ACCESS): Avoid implicit function |
63 |
+ decls |
64 |
+ |
65 |
+Implicit function declarations were removed from the C language |
66 |
+in 1999. Include the relevant header files to ensure that the |
67 |
+check still works with future compilers. C99 also requires |
68 |
+to declare the return types of all functions. |
69 |
+--- a/acsite.m4 |
70 |
++++ b/acsite.m4 |
71 |
+@@ -298,8 +298,10 @@ AC_DEFUN([AC_LBL_UNALIGNED_ACCESS], |
72 |
+ # include <sys/types.h> |
73 |
+ # include <sys/wait.h> |
74 |
+ # include <stdio.h> |
75 |
++# include <stdlib.h> |
76 |
++# include <unistd.h> |
77 |
+ unsigned char a[[5]] = { 1, 2, 3, 4, 5 }; |
78 |
+- main() { |
79 |
++ int main() { |
80 |
+ unsigned int i; |
81 |
+ pid_t pid; |
82 |
+ int status; |
83 |
+--- a/configure |
84 |
++++ b/configure |
85 |
+@@ -5791,8 +5791,10 @@ else |
86 |
+ # include <sys/types.h> |
87 |
+ # include <sys/wait.h> |
88 |
+ # include <stdio.h> |
89 |
++# include <stdlib.h> |
90 |
++# include <unistd.h> |
91 |
+ unsigned char a[5] = { 1, 2, 3, 4, 5 }; |
92 |
+- main() { |
93 |
++ int main() { |
94 |
+ unsigned int i; |
95 |
+ pid_t pid; |
96 |
+ int status; |
97 |
+ |