[OE-core] [PATCH 03/14] busybox: Include sys/resource.h for rusage definition

Khem Raj raj.khem at gmail.com
Thu Jul 5 14:35:22 UTC 2012


Seen with eglibc 2.16

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 .../busybox/busybox-1.19.4/sys_resource.patch      |   18 ++++++++++++++++++
 meta/recipes-core/busybox/busybox_1.19.4.bb        |    3 ++-
 2 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-core/busybox/busybox-1.19.4/sys_resource.patch

diff --git a/meta/recipes-core/busybox/busybox-1.19.4/sys_resource.patch b/meta/recipes-core/busybox/busybox-1.19.4/sys_resource.patch
new file mode 100644
index 0000000..a72aca0
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox-1.19.4/sys_resource.patch
@@ -0,0 +1,18 @@
+rusage needs this include with eglibc 2.16
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+
+Upstream-Status: Pending
+
+Index: busybox-1.19.4/include/libbb.h
+===================================================================
+--- busybox-1.19.4.orig/include/libbb.h	2012-07-02 21:41:52.692047712 -0700
++++ busybox-1.19.4/include/libbb.h	2012-07-02 21:42:24.204049228 -0700
+@@ -46,6 +46,7 @@
+ #include <termios.h>
+ #include <time.h>
+ #include <sys/param.h>
++#include <sys/resource.h>
+ #ifdef HAVE_MNTENT_H
+ # include <mntent.h>
+ #endif
diff --git a/meta/recipes-core/busybox/busybox_1.19.4.bb b/meta/recipes-core/busybox/busybox_1.19.4.bb
index de331ad..4271c67 100644
--- a/meta/recipes-core/busybox/busybox_1.19.4.bb
+++ b/meta/recipes-core/busybox/busybox_1.19.4.bb
@@ -1,5 +1,5 @@
 require busybox.inc
-PR = "r8"
+PR = "r9"
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://B921600.patch \
@@ -8,6 +8,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://run-parts.in.usr-bin.patch \
            file://watch.in.usr-bin.patch \
            file://busybox-udhcpc-no_deconfig.patch \
+           file://sys_resource.patch \
            file://find-touchscreen.sh \
            file://busybox-cron \
            file://busybox-httpd \
-- 
1.7.9.5





More information about the Openembedded-core mailing list