commit:     5013dd743e04c0451b5c1126c1ed12bbaa917f1c
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  5 20:49:54 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Tue Nov  5 20:50:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5013dd74

net-analyzer/mrtg: fix configure phase for modern C

Closes: https://bugs.gentoo.org/900026
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 net-analyzer/mrtg/files/mrtg-2.17.10-implicit.patch           | 11 +++++++++++
 .../mrtg/{mrtg-2.17.10.ebuild => mrtg-2.17.10-r1.ebuild}      |  6 +++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

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
similarity index 90%
rename from net-analyzer/mrtg/mrtg-2.17.10.ebuild
rename to 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
 

Reply via email to