1 |
commit: 349d5ffff39b4f54eec062cb77445db094462d26 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 14 07:15:27 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 14 07:23:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=349d5fff |
7 |
|
8 |
net-analyzer/packit: fix autoreconf with newer automake |
9 |
|
10 |
Closes: https://bugs.gentoo.org/816753 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../packit/files/packit-1.7-configure.patch | 67 ++++++++++++++++++++++ |
14 |
net-analyzer/packit/packit-1.7.ebuild | 2 + |
15 |
2 files changed, 69 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/packit/files/packit-1.7-configure.patch b/net-analyzer/packit/files/packit-1.7-configure.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..0f87f0408d8 |
20 |
--- /dev/null |
21 |
+++ b/net-analyzer/packit/files/packit-1.7-configure.patch |
22 |
@@ -0,0 +1,67 @@ |
23 |
+https://github.com/resurrecting-open-source-projects/packit/pull/19 |
24 |
+https://bugs.gentoo.org/816753 |
25 |
+ |
26 |
+From 030cdc3f6ded1d206ca16dacc19aef181adba708 Mon Sep 17 00:00:00 2001 |
27 |
+From: Sam James <sam@g.o> |
28 |
+Date: Thu, 14 Oct 2021 08:11:24 +0100 |
29 |
+Subject: [PATCH 1/2] configure.ac: fix autoreconf with newer automake |
30 |
+ |
31 |
+Newer automake forbids repeated calls to AM_INIT_AUTOMAKE. |
32 |
+ |
33 |
+Bug: https://bugs.gentoo.org/816753 |
34 |
+Signed-off-by: Sam James <sam@g.o> |
35 |
+--- a/configure.ac |
36 |
++++ b/configure.ac |
37 |
+@@ -29,7 +29,6 @@ |
38 |
+ AC_PREREQ([2.69]) |
39 |
+ AC_INIT([packit], [1.7], [https://github.com/resurrecting-open-source-projects/packit/issues]) |
40 |
+ AC_CONFIG_SRCDIR([src/main.c]) |
41 |
+-AM_INIT_AUTOMAKE |
42 |
+ AC_CONFIG_HEADERS(config.h) |
43 |
+ AC_MSG_RESULT(beginning auto-configuration process for packit...) |
44 |
+ AC_PREFIX_DEFAULT(/usr/local) |
45 |
+ |
46 |
+From f62d3d40ff99ac39e7cbdea9991bec639a16d3a0 Mon Sep 17 00:00:00 2001 |
47 |
+From: Sam James <sam@g.o> |
48 |
+Date: Thu, 14 Oct 2021 08:12:14 +0100 |
49 |
+Subject: [PATCH 2/2] configure.ac: don't ignore failure to find packages |
50 |
+ |
51 |
+Signed-off-by: Sam James <sam@g.o> |
52 |
+--- a/configure.ac |
53 |
++++ b/configure.ac |
54 |
+@@ -146,7 +146,7 @@ AC_CHECK_HEADERS(libnet.h,, LIBNET="no") |
55 |
+ if test "$LIBNET" = "no"; then |
56 |
+ echo "" |
57 |
+ echo "Error: Can't find libnet 1.1.0 or greater. Visit https://github.com/sam-github/libnet for the latest version." |
58 |
+- exit; |
59 |
++ exit 1; |
60 |
+ fi |
61 |
+ |
62 |
+ AC_ARG_WITH(libpcap_includes, |
63 |
+@@ -161,7 +161,7 @@ AC_CHECK_HEADERS(pcap.h,, LIBPCAP="no") |
64 |
+ if test "$LIBNET" = "no"; then |
65 |
+ echo "" |
66 |
+ echo "Error: Can't find Libpcap. Visit https://github.com/the-tcpdump-group/libpcap for the latest version." |
67 |
+- exit; |
68 |
++ exit 1; |
69 |
+ fi |
70 |
+ |
71 |
+ dnl Checks for library functions. |
72 |
+@@ -181,7 +181,7 @@ AC_CHECK_LIB(net, libnet_build_ipv4,, LIBNET="no") |
73 |
+ if test "$LIBNET" = "no"; then |
74 |
+ echo "" |
75 |
+ echo "Error: Can't find libnet 1.1.0 or greater. Visit https://github.com/sam-github/libnet for the latest version." |
76 |
+- exit; |
77 |
++ exit 1; |
78 |
+ fi |
79 |
+ |
80 |
+ AC_ARG_WITH(libpcap_libraries, |
81 |
+@@ -196,7 +196,7 @@ AC_CHECK_LIB(pcap, pcap_open_live,, LIBPCAP="no") |
82 |
+ if test "$LIBPCAP" = "no"; then |
83 |
+ echo "" |
84 |
+ echo "Error: Can't find Libpcap. Visit https://github.com/the-tcpdump-group/libpcap for the latest version." |
85 |
+- exit; |
86 |
++ exit 1; |
87 |
+ else |
88 |
+ AC_CHECK_LIB(pcap, pcap_setnonblock,, SETNONBLOCK="no") |
89 |
+ if test "$SETNONBLOCK" = "no"; then |
90 |
|
91 |
diff --git a/net-analyzer/packit/packit-1.7.ebuild b/net-analyzer/packit/packit-1.7.ebuild |
92 |
index 6f454fbc9ba..a1576a6b050 100644 |
93 |
--- a/net-analyzer/packit/packit-1.7.ebuild |
94 |
+++ b/net-analyzer/packit/packit-1.7.ebuild |
95 |
@@ -2,6 +2,7 @@ |
96 |
# Distributed under the terms of the GNU General Public License v2 |
97 |
|
98 |
EAPI=7 |
99 |
+ |
100 |
inherit autotools |
101 |
|
102 |
DESCRIPTION="network packet generator and capture tool" |
103 |
@@ -19,6 +20,7 @@ DEPEND=" |
104 |
RDEPEND="${DEPEND}" |
105 |
PATCHES=( |
106 |
"${FILESDIR}"/${PN}-1.0-noopt.patch |
107 |
+ "${FILESDIR}"/${PN}-1.7-configure.patch |
108 |
) |
109 |
|
110 |
src_prepare() { |