summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-07-27 08:35:20 +0100
committerSam James <sam@gentoo.org>2023-07-27 08:35:38 +0100
commite570a6b3de1540389fb45a1af263be3a426269df (patch)
treee8c978e0dc225eae3b60adc201b84b4189365b41 /net-analyzer
parentsys-devel/mold: add 2.0.0 (diff)
downloadgentoo-e570a6b3de1540389fb45a1af263be3a426269df.tar.gz
gentoo-e570a6b3de1540389fb45a1af263be3a426269df.tar.bz2
gentoo-e570a6b3de1540389fb45a1af263be3a426269df.zip
net-analyzer/tcpdump: build with LFS
Closes: https://bugs.gentoo.org/911176 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/tcpdump/files/tcpdump-4.99.4-lfs.patch22
-rw-r--r--net-analyzer/tcpdump/files/tcpdump-9999-lfs.patch22
-rw-r--r--net-analyzer/tcpdump/tcpdump-4.99.4-r1.ebuild (renamed from net-analyzer/tcpdump/tcpdump-4.99.4.ebuild)1
-rw-r--r--net-analyzer/tcpdump/tcpdump-9999.ebuild1
4 files changed, 46 insertions, 0 deletions
diff --git a/net-analyzer/tcpdump/files/tcpdump-4.99.4-lfs.patch b/net-analyzer/tcpdump/files/tcpdump-4.99.4-lfs.patch
new file mode 100644
index 000000000000..b38c2c24b108
--- /dev/null
+++ b/net-analyzer/tcpdump/files/tcpdump-4.99.4-lfs.patch
@@ -0,0 +1,22 @@
+https://github.com/the-tcpdump-group/tcpdump/pull/1068
+
+From 54278acb038f0d16ed75cdddb35fd2813a7cdcef Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Thu, 27 Jul 2023 08:31:53 +0100
+Subject: [PATCH] configure.ac: use AC_SYS_LARGEFILE
+
+This enables 64-bit off_t where it's opt-in (e.g. glibc) on 32-bit platforms.
+
+Bug: https://bugs.gentoo.org/911176
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/configure.ac
++++ b/configure.ac
+@@ -30,7 +30,7 @@ if test "$ac_cv_prog_cc_c99" = "no"; then
+ fi
+ AC_LBL_C_INIT(V_CCOPT, V_INCLS)
+ AC_LBL_C_INLINE
+-
++AC_SYS_LARGEFILE
+ AC_CHECK_HEADERS(fcntl.h rpc/rpc.h rpc/rpcent.h net/if.h)
+
+ case "$host_os" in
diff --git a/net-analyzer/tcpdump/files/tcpdump-9999-lfs.patch b/net-analyzer/tcpdump/files/tcpdump-9999-lfs.patch
new file mode 100644
index 000000000000..396614ef3ad2
--- /dev/null
+++ b/net-analyzer/tcpdump/files/tcpdump-9999-lfs.patch
@@ -0,0 +1,22 @@
+https://github.com/the-tcpdump-group/tcpdump/pull/1068
+
+From 54278acb038f0d16ed75cdddb35fd2813a7cdcef Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Thu, 27 Jul 2023 08:31:53 +0100
+Subject: [PATCH] configure.ac: use AC_SYS_LARGEFILE
+
+This enables 64-bit off_t where it's opt-in (e.g. glibc) on 32-bit platforms.
+
+Bug: https://bugs.gentoo.org/911176
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/configure.ac
++++ b/configure.ac
+@@ -30,7 +30,7 @@ if test "$ac_cv_prog_cc_c99" = "no"; then
+ fi
+ AC_LBL_C_INIT(V_CCOPT, V_INCLS)
+ AC_C_INLINE
+-
++AC_SYS_LARGEFILE
+ AC_CHECK_HEADERS(fcntl.h rpc/rpc.h rpc/rpcent.h net/if.h)
+
+ case "$host_os" in
diff --git a/net-analyzer/tcpdump/tcpdump-4.99.4.ebuild b/net-analyzer/tcpdump/tcpdump-4.99.4-r1.ebuild
index 9d57fbcf31bb..3e0d26c1ea52 100644
--- a/net-analyzer/tcpdump/tcpdump-4.99.4.ebuild
+++ b/net-analyzer/tcpdump/tcpdump-4.99.4-r1.ebuild
@@ -58,6 +58,7 @@ fi
PATCHES=(
"${FILESDIR}"/${PN}-9999-libdir.patch
+ "${FILESDIR}"/${PN}-4.99.4-lfs.patch
)
src_prepare() {
diff --git a/net-analyzer/tcpdump/tcpdump-9999.ebuild b/net-analyzer/tcpdump/tcpdump-9999.ebuild
index 8d03b876b291..ac1d9b041bd1 100644
--- a/net-analyzer/tcpdump/tcpdump-9999.ebuild
+++ b/net-analyzer/tcpdump/tcpdump-9999.ebuild
@@ -58,6 +58,7 @@ fi
PATCHES=(
"${FILESDIR}"/${PN}-9999-libdir.patch
+ "${FILESDIR}"/${PN}-9999-lfs.patch
)
src_prepare() {