summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-07-20 23:10:16 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-22 11:51:04 +0100
commit513632070851cbbb7b8998464335b70c119a9351 (patch)
treec700e2ea0b293f7cd73f925302f3a90b983964c4 /meta
parent42c3974dc195ee89018862259fde449838b1252e (diff)
downloadpoky-513632070851cbbb7b8998464335b70c119a9351.tar.gz
strace: Define own sigmask macro if not defined already in signal.h
This is required especially on uclibc systems where BSD compatible obsolete functions are disabled by kconfig. Therefore we check if the macro is undefined then we define it. Therefore eglibc/glibc builds should work as they use to. (From OE-Core rev: 60d91ffc6367fe11ced5890240c6b65ada66621e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/strace/strace-4.5.20/sigmask.patch22
-rw-r--r--meta/recipes-devtools/strace/strace_4.5.20.bb6
2 files changed, 26 insertions, 2 deletions
diff --git a/meta/recipes-devtools/strace/strace-4.5.20/sigmask.patch b/meta/recipes-devtools/strace/strace-4.5.20/sigmask.patch
new file mode 100644
index 0000000000..9bca52832a
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace-4.5.20/sigmask.patch
@@ -0,0 +1,22 @@
1sigmask is a macro which is dropped if BSD compatibility is
2not enabled. So we check if the macro does not exist then
3we define it to __sigmask
4
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6
7Index: strace-4.5.20/signal.c
8===================================================================
9--- strace-4.5.20.orig/signal.c 2010-02-23 13:26:16.000000000 -0800
10+++ strace-4.5.20/signal.c 2011-07-20 23:06:35.842339197 -0700
11@@ -140,6 +140,11 @@
12 #endif
13 #endif /* LINUX */
14
15+#if !defined (sigmask) && defined (__sigmask)
16+/* Compute mask for signal SIG. */
17+#define sigmask(sig) __sigmask(sig)
18+#endif /* sigmask */
19+
20 const char *const signalent0[] = {
21 #include "signalent.h"
22 };
diff --git a/meta/recipes-devtools/strace/strace_4.5.20.bb b/meta/recipes-devtools/strace/strace_4.5.20.bb
index 3dba59fdab..391669f5da 100644
--- a/meta/recipes-devtools/strace/strace_4.5.20.bb
+++ b/meta/recipes-devtools/strace/strace_4.5.20.bb
@@ -3,9 +3,11 @@ HOMEPAGE = "http://strace.sourceforge.net"
3SECTION = "console/utils" 3SECTION = "console/utils"
4LICENSE = "BSD" 4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=4535377ede62550fdeaf39f595fd550a" 5LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=4535377ede62550fdeaf39f595fd550a"
6PR = "r1" 6PR = "r2"
7 7
8SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.bz2" 8SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.bz2 \
9 file://sigmask.patch \
10 "
9 11
10SRC_URI[md5sum] = "64dfe10d9db0c1e34030891695ffca4b" 12SRC_URI[md5sum] = "64dfe10d9db0c1e34030891695ffca4b"
11SRC_URI[sha256sum] = "ea8c059369eaa5ad90b246f34eab247d0ee48bfdee2670c7196320a4669ccabd" 13SRC_URI[sha256sum] = "ea8c059369eaa5ad90b246f34eab247d0ee48bfdee2670c7196320a4669ccabd"