Patchwork procps: Fix musl build failure

login
register
mail settings
Submitter Paul Barker
Date Aug. 20, 2014, 10:14 a.m.
Message ID <1408529643-27065-1-git-send-email-paul@paulbarker.me.uk>
Download mbox | patch
Permalink /patch/78671/
State Accepted
Commit 0c6c0b655536d9ed64074a7664999b9deaa63aa1
Headers show

Comments

Paul Barker - Aug. 20, 2014, 10:14 a.m.
This is a simple fix, <limits.h> just needs to be included before PATH_MAX is
used.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
---
 .../procps-3.2.8/0001-Fix-musl-build-failure.patch | 29 ++++++++++++++++++++++
 meta/recipes-extended/procps/procps_3.2.8.bb       |  1 +
 2 files changed, 30 insertions(+)
 create mode 100644 meta/recipes-extended/procps/procps-3.2.8/0001-Fix-musl-build-failure.patch

Patch

diff --git a/meta/recipes-extended/procps/procps-3.2.8/0001-Fix-musl-build-failure.patch b/meta/recipes-extended/procps/procps-3.2.8/0001-Fix-musl-build-failure.patch
new file mode 100644
index 0000000..71dc3f0
--- /dev/null
+++ b/meta/recipes-extended/procps/procps-3.2.8/0001-Fix-musl-build-failure.patch
@@ -0,0 +1,29 @@ 
+From 6f2fd55ef7621fd7ab7897aee2c2651b6faf9e6a Mon Sep 17 00:00:00 2001
+From: Paul Barker <paul@paulbarker.me.uk>
+Date: Wed, 20 Aug 2014 11:56:11 +0200
+Subject: [PATCH] Fix musl build failure
+
+Include <limits.h> for PATH_MAX.
+
+Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
+
+Upstream-status: Pending
+---
+ proc/readproc.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/proc/readproc.c b/proc/readproc.c
+index 4fad11d..c5b1869 100644
+--- a/proc/readproc.c
++++ b/proc/readproc.c
+@@ -26,6 +26,7 @@
+ #include <sys/dir.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <limits.h>
+ 
+ // sometimes it's easier to do this manually, w/o gcc helping
+ #ifdef PROF
+-- 
+1.9.1
+
diff --git a/meta/recipes-extended/procps/procps_3.2.8.bb b/meta/recipes-extended/procps/procps_3.2.8.bb
index b314bfe..6211a7c 100644
--- a/meta/recipes-extended/procps/procps_3.2.8.bb
+++ b/meta/recipes-extended/procps/procps_3.2.8.bb
@@ -12,6 +12,7 @@  SRC_URI += "file://procmodule.patch \
             file://procps-3.2.7-top-remcpu.patch \
             file://procps-3.2.8-ps-cgroup.patch \
             file://detect_bitness.patch \
+            file://0001-Fix-musl-build-failure.patch \
            "
 
 SRC_URI[md5sum] = "9532714b6846013ca9898984ba4cd7e0"