aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-12-30 19:24:01 -0800
committerHauke Mehrtens <hauke@hauke-m.de>2020-01-05 19:36:45 +0100
commitd040851a6f5ccf47a05de139a56e781996a47ba4 (patch)
treeb7e737e0897b8c85fa030f693fe8c66d6b0b6605
parent121ad10601a072959c02e6f4c139169333fc2200 (diff)
downloadupstream-d040851a6f5ccf47a05de139a56e781996a47ba4.tar.gz
upstream-d040851a6f5ccf47a05de139a56e781996a47ba4.tar.bz2
upstream-d040851a6f5ccf47a05de139a56e781996a47ba4.zip
trace-cmd: Fix compilation without fortify-headers
Upstream backport. Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r--package/devel/trace-cmd/Makefile2
-rw-r--r--package/devel/trace-cmd/patches/120-limits.patch24
2 files changed, 25 insertions, 1 deletions
diff --git a/package/devel/trace-cmd/Makefile b/package/devel/trace-cmd/Makefile
index 6d3fe53758..25831d8b1b 100644
--- a/package/devel/trace-cmd/Makefile
+++ b/package/devel/trace-cmd/Makefile
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=trace-cmd
PKG_VERSION:=v2.6.1
-PKG_RELEASE=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/snapshot/
diff --git a/package/devel/trace-cmd/patches/120-limits.patch b/package/devel/trace-cmd/patches/120-limits.patch
new file mode 100644
index 0000000000..b9d91cc03e
--- /dev/null
+++ b/package/devel/trace-cmd/patches/120-limits.patch
@@ -0,0 +1,24 @@
+From 293ff6d5bc9d3b8bfbc3c57d20d3d2d00986c168 Mon Sep 17 00:00:00 2001
+From: Alexander Couzens <lynxis@fe80.eu>
+Date: Sun, 26 Nov 2017 05:22:51 +0100
+Subject: [PATCH] trace-cmd listen: Include limits.h to define PATH_MAX
+
+PATH_MAX is defined by limits.h. On some system it's also
+defined by dirent.h but not on musl.
+
+Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
+Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
+---
+ trace-listen.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/trace-listen.c
++++ b/trace-listen.c
+@@ -23,6 +23,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <getopt.h>
++#include <limits.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/wait.h>