diff options
| -rw-r--r-- | meta/recipes-devtools/strace/strace/define-OS-ARCH-in-tests-Makefile-am.patch | 26 | ||||
| -rw-r--r-- | meta/recipes-devtools/strace/strace_4.10.bb | 3 |
2 files changed, 28 insertions, 1 deletions
diff --git a/meta/recipes-devtools/strace/strace/define-OS-ARCH-in-tests-Makefile-am.patch b/meta/recipes-devtools/strace/strace/define-OS-ARCH-in-tests-Makefile-am.patch new file mode 100644 index 0000000000..4b1bb26bb3 --- /dev/null +++ b/meta/recipes-devtools/strace/strace/define-OS-ARCH-in-tests-Makefile-am.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Ensure that OS and ARCH are defined in tests/Makefile.am | ||
| 2 | |||
| 3 | For strace v4.10 this is a purely cosmetic fix, since the include | ||
| 4 | paths derived from $(OS)/${ARCH) are never used. These variables are | ||
| 5 | correctly defined by default in strace v4.11. | ||
| 6 | |||
| 7 | Partial backport of upstream commit: | ||
| 8 | |||
| 9 | http://sourceforge.net/p/strace/code/ci/25c804ce42261b24b19d35c637bf2745c237ee07 | ||
| 10 | |||
| 11 | Upstream-Status: Backport | ||
| 12 | |||
| 13 | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> | ||
| 14 | |||
| 15 | Index: strace-4.10/tests/Makefile.am | ||
| 16 | =================================================================== | ||
| 17 | --- strace-4.10.orig/tests/Makefile.am | ||
| 18 | +++ strace-4.10/tests/Makefile.am | ||
| 19 | @@ -1,5 +1,7 @@ | ||
| 20 | # Automake input for strace tests. | ||
| 21 | |||
| 22 | +OS = linux | ||
| 23 | +ARCH = @arch@ | ||
| 24 | AM_CFLAGS = $(WARN_CFLAGS) | ||
| 25 | AM_CPPFLAGS = -I$(top_builddir)/$(OS)/$(ARCH) \ | ||
| 26 | -I$(top_srcdir)/$(OS)/$(ARCH) \ | ||
diff --git a/meta/recipes-devtools/strace/strace_4.10.bb b/meta/recipes-devtools/strace/strace_4.10.bb index 0b2316b402..1b6474347a 100644 --- a/meta/recipes-devtools/strace/strace_4.10.bb +++ b/meta/recipes-devtools/strace/strace_4.10.bb | |||
| @@ -12,6 +12,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.xz \ | |||
| 12 | file://run-ptest \ | 12 | file://run-ptest \ |
| 13 | file://Include-sys-stat.h-for-S_I-macros.patch \ | 13 | file://Include-sys-stat.h-for-S_I-macros.patch \ |
| 14 | file://Include-linux-ioctl.h-for-_IOC_-macros.patch \ | 14 | file://Include-linux-ioctl.h-for-_IOC_-macros.patch \ |
| 15 | file://define-OS-ARCH-in-tests-Makefile-am.patch \ | ||
| 15 | " | 16 | " |
| 16 | 17 | ||
| 17 | SRC_URI[md5sum] = "107a5be455493861189e9b57a3a51912" | 18 | SRC_URI[md5sum] = "107a5be455493861189e9b57a3a51912" |
| @@ -37,7 +38,7 @@ do_install_append() { | |||
| 37 | } | 38 | } |
| 38 | 39 | ||
| 39 | do_compile_ptest() { | 40 | do_compile_ptest() { |
| 40 | oe_runmake -C ${TESTDIR} buildtest-TESTS OS=linux ARCH="${TARGET_ARCH}" | 41 | oe_runmake -C ${TESTDIR} buildtest-TESTS |
| 41 | } | 42 | } |
| 42 | 43 | ||
| 43 | do_install_ptest() { | 44 | do_install_ptest() { |
