diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-11-05 20:05:08 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-07 15:12:00 +0000 |
commit | 520dd8452355c8ca0f71d7f8f7f7e8b76acafba9 (patch) | |
tree | cc8301029be989c0ca5de508401c1eccc1e7c8ed /meta/recipes-devtools/strace | |
parent | eaa7b2464f838a166a6f09d6bd6701d5d05b7009 (diff) | |
download | poky-520dd8452355c8ca0f71d7f8f7f7e8b76acafba9.tar.gz |
strace: Fix ptest build
include stdint.h since the test uses uintptr_t C99 type
(From OE-Core rev: b0791cfeeed3d4346ea5c9285f09b0a532c58bf8)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/strace')
-rw-r--r-- | meta/recipes-devtools/strace/strace/uintptr_t.patch | 17 | ||||
-rw-r--r-- | meta/recipes-devtools/strace/strace_5.3.bb | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/uintptr_t.patch b/meta/recipes-devtools/strace/strace/uintptr_t.patch new file mode 100644 index 0000000000..6d3dd6fb98 --- /dev/null +++ b/meta/recipes-devtools/strace/strace/uintptr_t.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | include stdint.h for getting uintptr_t definition | ||
2 | |||
3 | fixes do_compile_ptest_base | ||
4 | tests/fanotify_mark.c:191:23: error: 'uintptr_t' undeclared (first use in this function); did you mean 'intptr_t'? | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- a/tests/fanotify_mark.c | ||
9 | +++ b/tests/fanotify_mark.c | ||
10 | @@ -18,6 +18,7 @@ | ||
11 | |||
12 | # include <limits.h> | ||
13 | # include <stdio.h> | ||
14 | +# include <stdint.h> | ||
15 | # include <unistd.h> | ||
16 | # include <sys/fanotify.h> | ||
17 | |||
diff --git a/meta/recipes-devtools/strace/strace_5.3.bb b/meta/recipes-devtools/strace/strace_5.3.bb index 775a22fc62..db6004583b 100644 --- a/meta/recipes-devtools/strace/strace_5.3.bb +++ b/meta/recipes-devtools/strace/strace_5.3.bb | |||
@@ -14,6 +14,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ | |||
14 | file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ | 14 | file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ |
15 | file://0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch \ | 15 | file://0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch \ |
16 | file://ptest-spacesave.patch \ | 16 | file://ptest-spacesave.patch \ |
17 | file://uintptr_t.patch \ | ||
17 | " | 18 | " |
18 | SRC_URI[md5sum] = "84f5e72de813c9b1bb6057ee8ab428d8" | 19 | SRC_URI[md5sum] = "84f5e72de813c9b1bb6057ee8ab428d8" |
19 | SRC_URI[sha256sum] = "6c131198749656401fe3efd6b4b16a07ea867e8f530867ceae8930bbc937a047" | 20 | SRC_URI[sha256sum] = "6c131198749656401fe3efd6b4b16a07ea867e8f530867ceae8930bbc937a047" |