summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2017-04-30 18:16:42 +0000
committerFederico Ceratto <federico.ceratto@gmail.com>2017-04-30 18:16:42 +0000
commit352522d0468396dc1da7cce69079df4cb929e533 (patch)
treed0b6694c899c08b4ee4db8128fc601a54cbb0de9
parentNew upstream release 1.6.0 (diff)
downloadnetdata-352522d0468396dc1da7cce69079df4cb929e533.tar.xz
netdata-352522d0468396dc1da7cce69079df4cb929e533.zip
Remove prctl patch
-rw-r--r--debian/patches/0005-Dont-include-prctl.h-on-kFreeBSD-or-Hurd.patch81
-rw-r--r--debian/patches/series1
2 files changed, 0 insertions, 82 deletions
diff --git a/debian/patches/0005-Dont-include-prctl.h-on-kFreeBSD-or-Hurd.patch b/debian/patches/0005-Dont-include-prctl.h-on-kFreeBSD-or-Hurd.patch
deleted file mode 100644
index ae8db6da..00000000
--- a/debian/patches/0005-Dont-include-prctl.h-on-kFreeBSD-or-Hurd.patch
+++ /dev/null
@@ -1,81 +0,0 @@
-From: Lennart Weller <lhw@ring0.de>
-Date: Wed, 8 Feb 2017 16:35:42 +0100
-Subject: Dont include prctl.h on kFreeBSD or Hurd
-
----
- configure.ac | 1 +
- src/apps_plugin.c | 2 ++
- src/common.h | 4 ++--
- src/main.c | 8 ++++----
- 4 files changed, 9 insertions(+), 6 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index d0a6ebd..25ac052 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -137,6 +137,7 @@ AC_CHECK_SIZEOF([void *])
- AC_CANONICAL_HOST
- AC_HEADER_MAJOR
- AC_HEADER_RESOLV
-+AC_CHECK_HEADERS_ONCE([sys/prctl.h])
-
- AC_ARG_VAR([SSE_CANDIDATE], [C compiler flags for SSE])
- AS_CASE([$host_cpu],
-diff --git a/src/apps_plugin.c b/src/apps_plugin.c
-index 0a72190..edf15d9 100644
---- a/src/apps_plugin.c
-+++ b/src/apps_plugin.c
-@@ -2854,7 +2854,9 @@ int main(int argc, char **argv)
- struct rlimit rl = { RLIM_INFINITY, RLIM_INFINITY };
- if(setrlimit(RLIMIT_CORE, &rl) != 0)
- info("Cannot request unlimited core dumps for debugging... Proceeding anyway...");
-+#ifdef HAVE_SYS_PRCTL_H
- prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
-+#endif
- }
- #endif /* NETDATA_INTERNAL_CHECKS */
-
-diff --git a/src/common.h b/src/common.h
-index e38e95b..24a1f72 100644
---- a/src/common.h
-+++ b/src/common.h
-@@ -67,9 +67,9 @@
- #include <syslog.h>
- #include <sys/mman.h>
-
--#if !(defined(__FreeBSD__) || defined(__APPLE__))
-+#ifdef HAVE_SYS_PRCTL_H
- #include <sys/prctl.h>
--#endif /* __FreeBSD__ || __APPLE__*/
-+#endif
-
- #include <sys/resource.h>
- #include <sys/socket.h>
-diff --git a/src/main.c b/src/main.c
-index ca134fc..c1c9924 100644
---- a/src/main.c
-+++ b/src/main.c
-@@ -567,9 +567,9 @@ int main(int argc, char **argv)
- if(setrlimit(RLIMIT_CORE, &rl) != 0)
- error("Cannot request unlimited core dumps for debugging... Proceeding anyway...");
-
--#if !(defined(__FreeBSD__) || defined(__APPLE__))
-+#ifdef HAVE_SYS_PRCTL_H
- prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
--#endif /* __FreeBSD__ || __APPLE__*/
-+#endif
- }
-
- // --------------------------------------------------------------------
-@@ -744,9 +744,9 @@ int main(int argc, char **argv)
- struct rlimit rl = { RLIM_INFINITY, RLIM_INFINITY };
- if(setrlimit(RLIMIT_CORE, &rl) != 0)
- error("Cannot request unlimited core dumps for debugging... Proceeding anyway...");
--#if !(defined(__FreeBSD__) || defined(__APPLE__))
-+#ifdef HAVE_SYS_PRCTL_H
- prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
--#endif /* __FreeBSD__ || __APPLE__*/
-+#endif
- }
- #endif /* NETDATA_INTERNAL_CHECKS */
-
diff --git a/debian/patches/series b/debian/patches/series
index ecb550d7..2ecbff53 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,5 +2,4 @@
0002-remove-file-serve-restrictions-for-symlinks.patch
0003-hide-update-button.patch
0004-use-system-python-yaml-library.patch
-0005-Dont-include-prctl.h-on-kFreeBSD-or-Hurd.patch
0006-fix-exim-path.patch