diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-12-21 09:55:49 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-22 23:05:50 +0000 |
| commit | 2120e7d10cf4ca480a76062db4820ac09e0695fe (patch) | |
| tree | 9257167d507676b5bbab1dc9f231b9d5fb30b36f /meta | |
| parent | 7235079983af24c432fd9324df12f292089af1b0 (diff) | |
| download | poky-2120e7d10cf4ca480a76062db4820ac09e0695fe.tar.gz | |
strace: Add knob to enable largefile support
(From OE-Core rev: 353e773ab8a072546ae236d1611bb6906b59486a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
3 files changed, 72 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch b/meta/recipes-devtools/strace/strace/0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch new file mode 100644 index 0000000000..76ca7a76a8 --- /dev/null +++ b/meta/recipes-devtools/strace/strace/0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From 470399f3636c412b74f9daf6ae430b13c3126f02 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 15 Dec 2022 15:54:27 -0800 | ||
| 4 | Subject: [PATCH] configure: Use autoconf macro to detect largefile support | ||
| 5 | |||
| 6 | Adds --enable-largefile/--disable-largefile configure knobs | ||
| 7 | where default is to detect the support | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://github.com/strace/strace/pull/230] | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | configure.ac | 2 ++ | ||
| 13 | 1 file changed, 2 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/configure.ac b/configure.ac | ||
| 16 | index 4797b42dd..7d57fb254 100644 | ||
| 17 | --- a/configure.ac | ||
| 18 | +++ b/configure.ac | ||
| 19 | @@ -43,6 +43,8 @@ AC_PROG_INSTALL | ||
| 20 | AC_PROG_RANLIB | ||
| 21 | AC_PROG_LN_S | ||
| 22 | |||
| 23 | +AC_SYS_LARGEFILE | ||
| 24 | + | ||
| 25 | AC_USE_SYSTEM_EXTENSIONS | ||
| 26 | AX_CODE_COVERAGE | ||
| 27 | |||
diff --git a/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch b/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch new file mode 100644 index 0000000000..ce0428e977 --- /dev/null +++ b/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | From 579b2ebe52d4b97f954e6188df2d07e137820075 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 15 Dec 2022 15:56:13 -0800 | ||
| 4 | Subject: [PATCH] tests: Replace off64_t with off_t | ||
| 5 | |||
| 6 | when _FILE_OFFSET_BITS=64 then off_t is 64bit wide, this also fixes | ||
| 7 | build on musl where off64_t is not available without _LARGEFILE64_SOURCE | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://github.com/strace/strace/pull/230] | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | tests/readahead.c | 2 +- | ||
| 13 | tests/sync_file_range2.c | 4 ++-- | ||
| 14 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/tests/readahead.c b/tests/readahead.c | ||
| 17 | index 10723785c..b9597e697 100644 | ||
| 18 | --- a/tests/readahead.c | ||
| 19 | +++ b/tests/readahead.c | ||
| 20 | @@ -42,7 +42,7 @@ static const int fds[] = { | ||
| 21 | 0x7fffffff, | ||
| 22 | }; | ||
| 23 | |||
| 24 | -static const off64_t offsets[] = { | ||
| 25 | +static const off_t offsets[] = { | ||
| 26 | -0x8000000000000000LL, | ||
| 27 | -0x5060708090a0b0c0LL, | ||
| 28 | -1LL, | ||
| 29 | diff --git a/tests/sync_file_range2.c b/tests/sync_file_range2.c | ||
| 30 | index 0f7c9e428..15a5fec71 100644 | ||
| 31 | --- a/tests/sync_file_range2.c | ||
| 32 | +++ b/tests/sync_file_range2.c | ||
| 33 | @@ -20,8 +20,8 @@ int | ||
| 34 | main(void) | ||
| 35 | { | ||
| 36 | const int fd = -1; | ||
| 37 | - const off64_t offset = 0xdeadbeefbadc0ded; | ||
| 38 | - const off64_t nbytes = 0xfacefeedcafef00d; | ||
| 39 | + const off_t offset = 0xdeadbeefbadc0ded; | ||
| 40 | + const off_t nbytes = 0xfacefeedcafef00d; | ||
| 41 | const unsigned int flags = -1; | ||
| 42 | |||
| 43 | int rc = sync_file_range(fd, offset, nbytes, flags); | ||
diff --git a/meta/recipes-devtools/strace/strace_6.0.bb b/meta/recipes-devtools/strace/strace_6.0.bb index 4fa3589d15..7679235b01 100644 --- a/meta/recipes-devtools/strace/strace_6.0.bb +++ b/meta/recipes-devtools/strace/strace_6.0.bb | |||
| @@ -13,6 +13,8 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ | |||
| 13 | file://ptest-spacesave.patch \ | 13 | file://ptest-spacesave.patch \ |
| 14 | file://0001-strace-fix-reproducibilty-issues.patch \ | 14 | file://0001-strace-fix-reproducibilty-issues.patch \ |
| 15 | file://skip-load.patch \ | 15 | file://skip-load.patch \ |
| 16 | file://0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch \ | ||
| 17 | file://0002-tests-Replace-off64_t-with-off_t.patch \ | ||
| 16 | " | 18 | " |
| 17 | SRC_URI[sha256sum] = "92d720a666855e9f1c6a11512fd6e99674a82bbfe1442557815f2ce8e1293338" | 19 | SRC_URI[sha256sum] = "92d720a666855e9f1c6a11512fd6e99674a82bbfe1442557815f2ce8e1293338" |
| 18 | 20 | ||
