mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 12:32:15 +02:00
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>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From 470399f3636c412b74f9daf6ae430b13c3126f02 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 15 Dec 2022 15:54:27 -0800
|
||||
Subject: [PATCH] configure: Use autoconf macro to detect largefile support
|
||||
|
||||
Adds --enable-largefile/--disable-largefile configure knobs
|
||||
where default is to detect the support
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/strace/strace/pull/230]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
configure.ac | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 4797b42dd..7d57fb254 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -43,6 +43,8 @@ AC_PROG_INSTALL
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_LN_S
|
||||
|
||||
+AC_SYS_LARGEFILE
|
||||
+
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
AX_CODE_COVERAGE
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
From 579b2ebe52d4b97f954e6188df2d07e137820075 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 15 Dec 2022 15:56:13 -0800
|
||||
Subject: [PATCH] tests: Replace off64_t with off_t
|
||||
|
||||
when _FILE_OFFSET_BITS=64 then off_t is 64bit wide, this also fixes
|
||||
build on musl where off64_t is not available without _LARGEFILE64_SOURCE
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/strace/strace/pull/230]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
tests/readahead.c | 2 +-
|
||||
tests/sync_file_range2.c | 4 ++--
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/tests/readahead.c b/tests/readahead.c
|
||||
index 10723785c..b9597e697 100644
|
||||
--- a/tests/readahead.c
|
||||
+++ b/tests/readahead.c
|
||||
@@ -42,7 +42,7 @@ static const int fds[] = {
|
||||
0x7fffffff,
|
||||
};
|
||||
|
||||
-static const off64_t offsets[] = {
|
||||
+static const off_t offsets[] = {
|
||||
-0x8000000000000000LL,
|
||||
-0x5060708090a0b0c0LL,
|
||||
-1LL,
|
||||
diff --git a/tests/sync_file_range2.c b/tests/sync_file_range2.c
|
||||
index 0f7c9e428..15a5fec71 100644
|
||||
--- a/tests/sync_file_range2.c
|
||||
+++ b/tests/sync_file_range2.c
|
||||
@@ -20,8 +20,8 @@ int
|
||||
main(void)
|
||||
{
|
||||
const int fd = -1;
|
||||
- const off64_t offset = 0xdeadbeefbadc0ded;
|
||||
- const off64_t nbytes = 0xfacefeedcafef00d;
|
||||
+ const off_t offset = 0xdeadbeefbadc0ded;
|
||||
+ const off_t nbytes = 0xfacefeedcafef00d;
|
||||
const unsigned int flags = -1;
|
||||
|
||||
int rc = sync_file_range(fd, offset, nbytes, flags);
|
||||
@@ -13,6 +13,8 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
|
||||
file://ptest-spacesave.patch \
|
||||
file://0001-strace-fix-reproducibilty-issues.patch \
|
||||
file://skip-load.patch \
|
||||
file://0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch \
|
||||
file://0002-tests-Replace-off64_t-with-off_t.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "92d720a666855e9f1c6a11512fd6e99674a82bbfe1442557815f2ce8e1293338"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user