[oe-commits] Saul Wold : eglibc: Add patch to add sys/resource.h to wait.h

git at git.openembedded.org git at git.openembedded.org
Sat Jul 28 08:22:00 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 21a57b98ff5091a5563c00093081297a6c586208
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=21a57b98ff5091a5563c00093081297a6c586208

Author: Saul Wold <sgw at linux.intel.com>
Date:   Wed Jul 25 14:34:27 2012 -0700

eglibc: Add patch to add sys/resource.h to wait.h

This is needed for the older kernel perf tools to build correctly, as
noted in the patch new perf tools have sys/resource.h included directly.

Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 .../eglibc-2.16/add_resource_h_to_wait_h.patch     |   20 ++++++++++++++++++++
 meta/recipes-core/eglibc/eglibc_2.16.bb            |    3 ++-
 2 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-core/eglibc/eglibc-2.16/add_resource_h_to_wait_h.patch b/meta/recipes-core/eglibc/eglibc-2.16/add_resource_h_to_wait_h.patch
new file mode 100644
index 0000000..f5023c0
--- /dev/null
+++ b/meta/recipes-core/eglibc/eglibc-2.16/add_resource_h_to_wait_h.patch
@@ -0,0 +1,20 @@
+The older versions of perf still require sys/resource.h to be 
+present in this header, the newer version of perf in 3.2 and
+beyond directly include sys/resource.h
+
+Upstream-Status: Inapproriate [older kernel/perf specific]
+
+Signed-off-by: Saul Wold <sgw at linux.intel.com>
+
+Index: libc/posix/sys/wait.h
+===================================================================
+--- libc.orig/posix/sys/wait.h
++++ libc/posix/sys/wait.h
+@@ -28,6 +28,7 @@
+ __BEGIN_DECLS
+ 
+ #include <signal.h>
++#include <sys/resource.h>
+ 
+ /* These macros could also be defined in <stdlib.h>.  */
+ #if !defined _STDLIB_H || (!defined __USE_XOPEN && !defined __USE_XOPEN2K8)
diff --git a/meta/recipes-core/eglibc/eglibc_2.16.bb b/meta/recipes-core/eglibc/eglibc_2.16.bb
index 8fa5451..f9a8f6d 100644
--- a/meta/recipes-core/eglibc/eglibc_2.16.bb
+++ b/meta/recipes-core/eglibc/eglibc_2.16.bb
@@ -3,7 +3,7 @@ require eglibc.inc
 SRCREV = "19383"
 
 DEPENDS += "gperf-native"
-PR = "r3"
+PR = "r4"
 PR_append = "+svnr${SRCPV}"
 
 EGLIBC_BRANCH="eglibc-2_16"
@@ -24,6 +24,7 @@ SRC_URI = "svn://www.eglibc.org/svn/branches/;module=${EGLIBC_BRANCH};protocol=h
            file://rpc-bootstrap.patch \
            file://e500-math_private.patch \
            file://fileops-without-wchar-io.patch \
+           file://add_resource_h_to_wait_h.patch \
           "
 LIC_FILES_CHKSUM = "file://LICENSES;md5=98a1128c4b58120182cbea3b1752d8b9 \
       file://COPYING;md5=393a5ca445f6965873eca0259a17f833 \





More information about the Openembedded-commits mailing list