1 |
commit: 95a4d2e630d66a6042b0157b53b9452b3c7b9369 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 21 20:44:28 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 21 20:44:46 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95a4d2e6 |
7 |
|
8 |
net-analyzer/net-snmp: add missing include <limits.h> |
9 |
|
10 |
PATH_MAX and NAME_MAX requires <limits.h> according to POSIX. This |
11 |
problem shows up on non-glibc systems. |
12 |
|
13 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
14 |
|
15 |
.../net-snmp/files/net-snmp-5.7.3-include-limits.patch | 15 +++++++++++++++ |
16 |
net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild | 3 ++- |
17 |
net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild | 3 ++- |
18 |
net-analyzer/net-snmp/net-snmp-5.7.3_p3.ebuild | 3 ++- |
19 |
4 files changed, 21 insertions(+), 3 deletions(-) |
20 |
|
21 |
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 |
22 |
new file mode 100644 |
23 |
index 00000000000..04eafbbe9c5 |
24 |
--- /dev/null |
25 |
+++ b/net-analyzer/net-snmp/files/net-snmp-5.7.3-include-limits.patch |
26 |
@@ -0,0 +1,15 @@ |
27 |
+POSIX requires <limits.h> for PATH_MAX and NAME_MAX |
28 |
+ |
29 |
+Author: Anthony G. Basile <blueness@g.o> |
30 |
+ |
31 |
+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 |
32 |
+--- net-snmp-5.7.3.orig/agent/mibgroup/util_funcs/get_pid_from_inode.c 2014-12-08 15:23:22.000000000 -0500 |
33 |
++++ net-snmp-5.7.3/agent/mibgroup/util_funcs/get_pid_from_inode.c 2018-02-21 15:34:06.237028136 -0500 |
34 |
+@@ -6,6 +6,7 @@ |
35 |
+ |
36 |
+ #include <ctype.h> |
37 |
+ #include <stdio.h> |
38 |
++#include <limits.h> |
39 |
+ #if HAVE_STDLIB_H |
40 |
+ #include <stdlib.h> |
41 |
+ #endif |
42 |
|
43 |
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 |
44 |
index 00afce2aacf..11979c188f9 100644 |
45 |
--- a/net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild |
46 |
+++ b/net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild |
47 |
@@ -1,4 +1,4 @@ |
48 |
-# Copyright 1999-2017 Gentoo Foundation |
49 |
+# Copyright 1999-2018 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
|
52 |
EAPI=5 |
53 |
@@ -81,6 +81,7 @@ src_prepare() { |
54 |
|
55 |
epatch "${WORKDIR}"/${P}-perl524.patch |
56 |
epatch "${WORKDIR}"/${P}-perl524-2.patch |
57 |
+ epatch "${FILESDIR}"/${PN}-5.7.3-include-limits.patch |
58 |
|
59 |
epatch "${WORKDIR}"/patches/*.patch |
60 |
|
61 |
|
62 |
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 |
63 |
index 044f8d6bb31..b89ac3cf3f1 100644 |
64 |
--- a/net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild |
65 |
+++ b/net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild |
66 |
@@ -1,4 +1,4 @@ |
67 |
-# Copyright 1999-2016 Gentoo Foundation |
68 |
+# Copyright 1999-2018 Gentoo Foundation |
69 |
# Distributed under the terms of the GNU General Public License v2 |
70 |
|
71 |
EAPI=5 |
72 |
@@ -81,6 +81,7 @@ src_prepare() { |
73 |
|
74 |
epatch "${WORKDIR}"/${P}-perl524.patch |
75 |
epatch "${WORKDIR}"/${P}-perl524-2.patch |
76 |
+ epatch "${FILESDIR}"/${PN}-5.7.3-include-limits.patch |
77 |
|
78 |
epatch "${WORKDIR}"/patches/*.patch |
79 |
|
80 |
|
81 |
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 |
82 |
index 4175fec18f2..77645313cf3 100644 |
83 |
--- a/net-analyzer/net-snmp/net-snmp-5.7.3_p3.ebuild |
84 |
+++ b/net-analyzer/net-snmp/net-snmp-5.7.3_p3.ebuild |
85 |
@@ -1,4 +1,4 @@ |
86 |
-# Copyright 1999-2017 Gentoo Foundation |
87 |
+# Copyright 1999-2018 Gentoo Foundation |
88 |
# Distributed under the terms of the GNU General Public License v2 |
89 |
|
90 |
EAPI=6 |
91 |
@@ -82,6 +82,7 @@ src_prepare() { |
92 |
eapply "${WORKDIR}"/${PN}-5.7.3-perl524.patch |
93 |
eapply "${FILESDIR}"/${PN}-5.7.3-perl524-2.patch |
94 |
eapply "${FILESDIR}"/${PN}-5.7.3-mariadb-10.2.patch |
95 |
+ eapply "${FILESDIR}"/${PN}-5.7.3-include-limits.patch |
96 |
|
97 |
eapply "${WORKDIR}"/patches/*.patch |