summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2024-11-05 21:49:54 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2024-11-05 21:50:35 +0100
commit5013dd743e04c0451b5c1126c1ed12bbaa917f1c (patch)
treee6c01fae535e001643efec3254de4655e63769ee /net-analyzer
parentapp-text/lowdown: Keyword 1.2.0 ppc, #942915 (diff)
downloadgentoo-5013dd743e04c0451b5c1126c1ed12bbaa917f1c.tar.gz
gentoo-5013dd743e04c0451b5c1126c1ed12bbaa917f1c.tar.bz2
gentoo-5013dd743e04c0451b5c1126c1ed12bbaa917f1c.zip
net-analyzer/mrtg: fix configure phase for modern C
Closes: https://bugs.gentoo.org/900026 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/mrtg/files/mrtg-2.17.10-implicit.patch11
-rw-r--r--net-analyzer/mrtg/mrtg-2.17.10-r1.ebuild (renamed from net-analyzer/mrtg/mrtg-2.17.10.ebuild)6
2 files changed, 16 insertions, 1 deletions
diff --git a/net-analyzer/mrtg/files/mrtg-2.17.10-implicit.patch b/net-analyzer/mrtg/files/mrtg-2.17.10-implicit.patch
new file mode 100644
index 000000000000..1791ead7e334
--- /dev/null
+++ b/net-analyzer/mrtg/files/mrtg-2.17.10-implicit.patch
@@ -0,0 +1,11 @@
+diff '--color=auto' -ruN mrtg-2.17.10.orig/configure.ac mrtg-2.17.10/configure.ac
+--- mrtg-2.17.10.orig/configure.ac 2021-10-10 14:16:11.000000000 +0200
++++ mrtg-2.17.10/configure.ac 2024-11-05 21:45:35.764839321 +0100
+@@ -31,6 +31,7 @@
+ AC_CACHE_VAL(mr_cv_long_long_format_specifier,[
+ for format in ll l q I64; do
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
++ #include <stdlib.h>
+ int main()
+ {
+ long long b, a = -0x3AFAFAFAFAFAFAFALL;
diff --git a/net-analyzer/mrtg/mrtg-2.17.10.ebuild b/net-analyzer/mrtg/mrtg-2.17.10-r1.ebuild
index 3884adeb3802..fa2a8bdf779e 100644
--- a/net-analyzer/mrtg/mrtg-2.17.10.ebuild
+++ b/net-analyzer/mrtg/mrtg-2.17.10-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+inherit autotools
+
DESCRIPTION="A tool to monitor the traffic load on network-links"
HOMEPAGE="https://oss.oetiker.ch/mrtg/"
SRC_URI="https://oss.oetiker.ch/mrtg/pub/${P}.tar.gz https://github.com/oetiker/mrtg/releases/download/v${PV}/${P}.tar.gz"
@@ -21,10 +23,12 @@ RDEPEND="${DEPEND}
PATCHES=(
"${FILESDIR}"/${PN}-2.17.4-socket6.patch
+ "${FILESDIR}"/${PN}-2.17.10-implicit.patch
)
src_prepare() {
default
+ eautoreconf
rm ./lib/mrtg2/{SNMP_{Session,util},BER}.pm || die