summaryrefslogtreecommitdiff
path: root/net-analyzer/nagios-plugins-linux-madrisan/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /net-analyzer/nagios-plugins-linux-madrisan/files
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'net-analyzer/nagios-plugins-linux-madrisan/files')
-rw-r--r--net-analyzer/nagios-plugins-linux-madrisan/files/nagios-plugins-linux-madrisan-25-fix-fno-common.patch37
-rw-r--r--net-analyzer/nagios-plugins-linux-madrisan/files/nagios-plugins-linux-madrisan-25-fix-musl-build.patch35
2 files changed, 0 insertions, 72 deletions
diff --git a/net-analyzer/nagios-plugins-linux-madrisan/files/nagios-plugins-linux-madrisan-25-fix-fno-common.patch b/net-analyzer/nagios-plugins-linux-madrisan/files/nagios-plugins-linux-madrisan-25-fix-fno-common.patch
deleted file mode 100644
index 74bddd66e749..000000000000
--- a/net-analyzer/nagios-plugins-linux-madrisan/files/nagios-plugins-linux-madrisan-25-fix-fno-common.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 4936ca25f3e9a2875ce063033e5e8f3a3590dab2 Mon Sep 17 00:00:00 2001
-From: Davide Madrisan <davide.madrisan@gmail.com>
-Date: Mon, 27 Jan 2020 22:00:41 +0100
-Subject: [PATCH] The build fails when '-fno-common' is added to CFLAGS
-
-As reported by 'sbraz', the build stops with the error message:
-
- (.bss+0x8): multiple definition of `program_name'
- (.bss+0x0): multiple definition of `program_name_short'
-
-This flag will be apparently enabled by default in gcc 10.
-
-Fix this build problem by correctly referencing as extern both
-the variables in the header file.
-
-Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
----
- include/progname.h | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/include/progname.h b/include/progname.h
-index 576ed16..847122a 100644
---- a/include/progname.h
-+++ b/include/progname.h
-@@ -25,10 +25,10 @@ extern "C" {
- #endif
-
- /* String containing name the program is called with. */
-- const char *program_name;
-+ extern const char *program_name;
-
- /* String containing a short version of 'program_name'. */
-- const char *program_name_short;
-+ extern const char *program_name_short;
-
- /* Set program_name, based on argv[0].
- argv0 must be a string allocated with indefinite extent, and must not be
diff --git a/net-analyzer/nagios-plugins-linux-madrisan/files/nagios-plugins-linux-madrisan-25-fix-musl-build.patch b/net-analyzer/nagios-plugins-linux-madrisan/files/nagios-plugins-linux-madrisan-25-fix-musl-build.patch
deleted file mode 100644
index 3220be247319..000000000000
--- a/net-analyzer/nagios-plugins-linux-madrisan/files/nagios-plugins-linux-madrisan-25-fix-musl-build.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-commit 72547f774641d3ed881cc957a6d6c20d5e3370ec
-Author: Louis Sautier <sautier.louis@gmail.com>
-Date: Mon Apr 20 16:40:08 2020 +0200
-
- Fix build with musl by including limits.h when PATH_MAX is used
-
- Otherwise, the build fails with:
- error: PATH_MAX undeclared (first use in this function)
-
- Bug: https://bugs.gentoo.org/717038
-
-diff --git a/lib/processes.c b/lib/processes.c
-index cb006ca..e65992d 100644
---- a/lib/processes.c
-+++ b/lib/processes.c
-@@ -26,6 +26,7 @@
- #include <ctype.h>
- #include <dirent.h>
- #include <errno.h>
-+#include <limits.h>
- #include <pwd.h>
- #include <stdio.h>
- #include <stdlib.h>
-diff --git a/plugins/check_fc.c b/plugins/check_fc.c
-index b798377..cfaafa5 100644
---- a/plugins/check_fc.c
-+++ b/plugins/check_fc.c
-@@ -22,6 +22,7 @@
- #include <dirent.h>
- #include <errno.h>
- #include <getopt.h>
-+#include <limits.h>
- #include <stdint.h>
- #include <stdio.h>
- #include <stdlib.h>