Browse Source

fix musl build

Waldemar Brodkorb 11 years ago
parent
commit
d2f42c2c60

+ 1 - 1
package/procps/Makefile

@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		procps
 PKG_VERSION:=		3.2.8
-PKG_RELEASE:=		1
+PKG_RELEASE:=		2
 PKG_MD5SUM:=		9532714b6846013ca9898984ba4cd7e0
 PKG_DESCR:=		The /proc file system utilities
 PKG_SECTION:=		utils

+ 3 - 3
package/procps/patches/patch-Makefile

@@ -1,6 +1,6 @@
 $Id$
---- procps-3.2.7.orig/Makefile	Sat Jun 24 09:02:02 2006
-+++ procps-3.2.7/Makefile	Tue May 22 14:43:11 2007
+--- procps-3.2.8.orig/Makefile	2009-05-10 20:50:48.000000000 +0200
++++ procps-3.2.8/Makefile	2013-12-23 16:53:06.000000000 +0100
 @@ -27,7 +27,7 @@ TARVERSION   := $(VERSION).$(SUBVERSION)
  ldconfig := ldconfig
  ln_f     := ln -f
@@ -19,7 +19,7 @@ $Id$
  ALL_CPPFLAGS := $(PKG_CPPFLAGS) $(CPPFLAGS)
  
  # Left out -Wconversion due to noise in glibc headers.
-@@ -102,11 +102,11 @@ PKG_CFLAGS   := -fno-common -ffast-math 
+@@ -102,11 +102,11 @@ PKG_CFLAGS   := -fno-common -ffast-math
    -Wstrict-prototypes -Wmissing-prototypes
  # Note that some stuff below is conditional on CFLAGS containing
  # an option that starts with "-g". (-g, -g2, -g3, -ggdb, etc.)

+ 10 - 0
package/procps/patches/patch-proc_readproc_c

@@ -0,0 +1,10 @@
+--- procps-3.2.8.orig/proc/readproc.c	2006-06-16 10:18:13.000000000 +0200
++++ procps-3.2.8/proc/readproc.c	2013-12-23 16:58:19.000000000 +0100
+@@ -23,6 +23,7 @@
+ #include <unistd.h>
+ #include <signal.h>
+ #include <fcntl.h>
++#include <limits.h>
+ #include <sys/dir.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>