diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2015-04-17 17:25:36 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-21 07:19:04 +0100 |
commit | 7d40c6ff1d1d64ebeeffb6bfc200dcd84861214a (patch) | |
tree | f84bab960548659e0441d9ec0514d13e19965f75 /meta/recipes-devtools | |
parent | 47edd33cf8df3ebbfd5164136fb79ac831f01286 (diff) | |
download | openembedded-core-contrib-7d40c6ff1d1d64ebeeffb6bfc200dcd84861214a.tar.gz |
strace: fixes for compilation failures with musl
Backports from upstream:
http://sourceforge.net/p/strace/code/ci/d34e00b293942b1012ddc49ed3ab379a32337611
http://sourceforge.net/p/strace/code/ci/3460dc486d333231998de0f19918204aacee9ae3
Expected to be released officially as part of strace 4.11
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
3 files changed, 123 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/Include-linux-ioctl.h-for-_IOC_-macros.patch b/meta/recipes-devtools/strace/strace/Include-linux-ioctl.h-for-_IOC_-macros.patch new file mode 100644 index 00000000000..d9346a8b710 --- /dev/null +++ b/meta/recipes-devtools/strace/strace/Include-linux-ioctl.h-for-_IOC_-macros.patch @@ -0,0 +1,69 @@ +Upstream-Status: Backport + + http://sourceforge.net/p/strace/code/ci/3460dc486d333231998de0f19918204aacee9ae3 + +Expected to be released officially as part of strace 4.11 + +Signed-off-by: Andre McCurdy <armccurdy@gmail.com> + +From 3460dc486d333231998de0f19918204aacee9ae3 Mon Sep 17 00:00:00 2001 +From: Felix Janda <felix.janda@posteo.de> +Date: Sat, 28 Mar 2015 18:40:13 +0100 +Subject: [PATCH] Include <linux/ioctl.h> for _IOC_* macros + +Fix a compilation failure with musl libc. + +* evdev.c: Include <linux/ioctl.h>. +* ioctl.c: Include <linux/ioctl.h> instead of <asm/ioctl.h>. +* ioctlsort.c: Likewise. + +Reported-by: Dima Krasner <dima@dimakrasner.com> +Acked-by: Mike Frysinger <vapier@gentoo.org> +--- + evdev.c | 2 ++ + ioctl.c | 2 +- + ioctlsort.c | 2 +- + 3 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/evdev.c b/evdev.c +index 9a7430d..e06f9c1 100644 +--- a/evdev.c ++++ b/evdev.c +@@ -28,6 +28,8 @@ + + #include "defs.h" + ++#include <linux/ioctl.h> ++ + #ifdef HAVE_LINUX_INPUT_H + #include <linux/input.h> + #include "xlat/evdev_abs.h" +diff --git a/ioctl.c b/ioctl.c +index 46f8334..c67d048 100644 +--- a/ioctl.c ++++ b/ioctl.c +@@ -29,7 +29,7 @@ + */ + + #include "defs.h" +-#include <asm/ioctl.h> ++#include <linux/ioctl.h> + #include "xlat/ioctl_dirs.h" + + #ifdef HAVE_LINUX_INPUT_H +diff --git a/ioctlsort.c b/ioctlsort.c +index 333556c..9c31691 100644 +--- a/ioctlsort.c ++++ b/ioctlsort.c +@@ -33,7 +33,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +-#include <asm/ioctl.h> ++#include <linux/ioctl.h> + + struct ioctlent { + const char *info; +-- +1.9.1 + diff --git a/meta/recipes-devtools/strace/strace/Include-sys-stat.h-for-S_I-macros.patch b/meta/recipes-devtools/strace/strace/Include-sys-stat.h-for-S_I-macros.patch new file mode 100644 index 00000000000..0b072fe533f --- /dev/null +++ b/meta/recipes-devtools/strace/strace/Include-sys-stat.h-for-S_I-macros.patch @@ -0,0 +1,52 @@ +Upstream-Status: Backport + + http://sourceforge.net/p/strace/code/ci/d34e00b293942b1012ddc49ed3ab379a32337611 + +Expected to be released officially as part of strace 4.11 + +Signed-off-by: Andre McCurdy <armccurdy@gmail.com> + +From d34e00b293942b1012ddc49ed3ab379a32337611 Mon Sep 17 00:00:00 2001 +From: Felix Janda <felix.janda@posteo.de> +Date: Sat, 28 Mar 2015 18:21:09 +0100 +Subject: [PATCH] Include <sys/stat.h> for S_I* macros + +Fix a compilation failure with musl libc. + +* mknod.c: Include <sys/stat.h>. +* printmode.c: Likewise. + +Reported-by: Dima Krasner <dima@dimakrasner.com> +Acked-by: Mike Frysinger <vapier@gentoo.org> +--- + mknod.c | 1 + + printmode.c | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/mknod.c b/mknod.c +index 07e9a45..1463232 100644 +--- a/mknod.c ++++ b/mknod.c +@@ -1,6 +1,7 @@ + #include "defs.h" + + #include <fcntl.h> ++#include <sys/stat.h> + + #ifdef MAJOR_IN_SYSMACROS + # include <sys/sysmacros.h> +diff --git a/printmode.c b/printmode.c +index 4df1b9f..a721936 100644 +--- a/printmode.c ++++ b/printmode.c +@@ -1,6 +1,7 @@ + #include "defs.h" + + #include <fcntl.h> ++#include <sys/stat.h> + + #include "xlat/modetypes.h" + +-- +1.9.1 + diff --git a/meta/recipes-devtools/strace/strace_4.10.bb b/meta/recipes-devtools/strace/strace_4.10.bb index 707cb765c92..07a1076bbad 100644 --- a/meta/recipes-devtools/strace/strace_4.10.bb +++ b/meta/recipes-devtools/strace/strace_4.10.bb @@ -10,6 +10,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.xz \ file://strace-add-configure-options.patch \ file://Makefile-ptest.patch \ file://run-ptest \ + file://Include-sys-stat.h-for-S_I-macros.patch \ + file://Include-linux-ioctl.h-for-_IOC_-macros.patch \ " SRC_URI[md5sum] = "107a5be455493861189e9b57a3a51912" |