summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-02-21 15:44:28 -0500
committerAnthony G. Basile <blueness@gentoo.org>2018-02-21 15:44:46 -0500
commit95a4d2e630d66a6042b0157b53b9452b3c7b9369 (patch)
treef595d0b11ffb1fbef0442d5f4e02bfb6ed73e2e6 /net-analyzer
parentsys-apps/qingy: Disable DirectFB support (#642510), drop .la files, bump eapi. (diff)
downloadgentoo-95a4d2e630d66a6042b0157b53b9452b3c7b9369.tar.gz
gentoo-95a4d2e630d66a6042b0157b53b9452b3c7b9369.tar.bz2
gentoo-95a4d2e630d66a6042b0157b53b9452b3c7b9369.zip
net-analyzer/net-snmp: add missing include <limits.h>
PATH_MAX and NAME_MAX requires <limits.h> according to POSIX. This problem shows up on non-glibc systems. Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/net-snmp/files/net-snmp-5.7.3-include-limits.patch15
-rw-r--r--net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild3
-rw-r--r--net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild3
-rw-r--r--net-analyzer/net-snmp/net-snmp-5.7.3_p3.ebuild3
4 files changed, 21 insertions, 3 deletions
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.7.3-include-limits.patch b/net-analyzer/net-snmp/files/net-snmp-5.7.3-include-limits.patch
new file mode 100644
index 000000000000..04eafbbe9c5d
--- /dev/null
+++ b/net-analyzer/net-snmp/files/net-snmp-5.7.3-include-limits.patch
@@ -0,0 +1,15 @@
+POSIX requires <limits.h> for PATH_MAX and NAME_MAX
+
+Author: Anthony G. Basile <blueness@gentoo.org>
+
+diff -Naur net-snmp-5.7.3.orig/agent/mibgroup/util_funcs/get_pid_from_inode.c net-snmp-5.7.3/agent/mibgroup/util_funcs/get_pid_from_inode.c
+--- net-snmp-5.7.3.orig/agent/mibgroup/util_funcs/get_pid_from_inode.c 2014-12-08 15:23:22.000000000 -0500
++++ net-snmp-5.7.3/agent/mibgroup/util_funcs/get_pid_from_inode.c 2018-02-21 15:34:06.237028136 -0500
+@@ -6,6 +6,7 @@
+
+ #include <ctype.h>
+ #include <stdio.h>
++#include <limits.h>
+ #if HAVE_STDLIB_H
+ #include <stdlib.h>
+ #endif
diff --git a/net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild
index 00afce2aacf4..11979c188f94 100644
--- a/net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild
+++ b/net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -81,6 +81,7 @@ src_prepare() {
epatch "${WORKDIR}"/${P}-perl524.patch
epatch "${WORKDIR}"/${P}-perl524-2.patch
+ epatch "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
epatch "${WORKDIR}"/patches/*.patch
diff --git a/net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild
index 044f8d6bb311..b89ac3cf3f15 100644
--- a/net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild
+++ b/net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -81,6 +81,7 @@ src_prepare() {
epatch "${WORKDIR}"/${P}-perl524.patch
epatch "${WORKDIR}"/${P}-perl524-2.patch
+ epatch "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
epatch "${WORKDIR}"/patches/*.patch
diff --git a/net-analyzer/net-snmp/net-snmp-5.7.3_p3.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.3_p3.ebuild
index 4175fec18f21..77645313cf35 100644
--- a/net-analyzer/net-snmp/net-snmp-5.7.3_p3.ebuild
+++ b/net-analyzer/net-snmp/net-snmp-5.7.3_p3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -82,6 +82,7 @@ src_prepare() {
eapply "${WORKDIR}"/${PN}-5.7.3-perl524.patch
eapply "${FILESDIR}"/${PN}-5.7.3-perl524-2.patch
eapply "${FILESDIR}"/${PN}-5.7.3-mariadb-10.2.patch
+ eapply "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
eapply "${WORKDIR}"/patches/*.patch