diff options
| -rw-r--r-- | meta/recipes-extended/ltp/ltp/0001-testcases-kernel-syscalls-fcntl-define-_LARGEFILE64_.patch | 28 | ||||
| -rw-r--r-- | meta/recipes-extended/ltp/ltp_20230516.bb (renamed from meta/recipes-extended/ltp/ltp_20230127.bb) | 3 |
2 files changed, 30 insertions, 1 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0001-testcases-kernel-syscalls-fcntl-define-_LARGEFILE64_.patch b/meta/recipes-extended/ltp/ltp/0001-testcases-kernel-syscalls-fcntl-define-_LARGEFILE64_.patch new file mode 100644 index 0000000000..dbe63f2170 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-testcases-kernel-syscalls-fcntl-define-_LARGEFILE64_.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From f4f75ce9218b469d91b536218de3323977edc529 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex@linutronix.de> | ||
| 3 | Date: Tue, 13 Jun 2023 15:10:33 +0200 | ||
| 4 | Subject: [PATCH] testcases/kernel/syscalls/fcntl: define _LARGEFILE64_SOURCE | ||
| 5 | |||
| 6 | This is required for off64_t to be available on musl systems. | ||
| 7 | |||
| 8 | Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/1047] | ||
| 9 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 10 | --- | ||
| 11 | testcases/kernel/syscalls/fcntl/Makefile | 2 +- | ||
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/testcases/kernel/syscalls/fcntl/Makefile b/testcases/kernel/syscalls/fcntl/Makefile | ||
| 15 | index df663a50a..aac774111 100644 | ||
| 16 | --- a/testcases/kernel/syscalls/fcntl/Makefile | ||
| 17 | +++ b/testcases/kernel/syscalls/fcntl/Makefile | ||
| 18 | @@ -17,6 +17,6 @@ include $(abs_srcdir)/../utils/newer_64.mk | ||
| 19 | |||
| 20 | %_64: CPPFLAGS += -D_FILE_OFFSET_BITS=64 | ||
| 21 | |||
| 22 | -CPPFLAGS += -D_GNU_SOURCE | ||
| 23 | +CPPFLAGS += -D_GNU_SOURCE -D_LARGEFILE64_SOURCE | ||
| 24 | |||
| 25 | include $(top_srcdir)/include/mk/generic_leaf_target.mk | ||
| 26 | -- | ||
| 27 | 2.30.2 | ||
| 28 | |||
diff --git a/meta/recipes-extended/ltp/ltp_20230127.bb b/meta/recipes-extended/ltp/ltp_20230516.bb index 4325aa6672..ddc6523e30 100644 --- a/meta/recipes-extended/ltp/ltp_20230127.bb +++ b/meta/recipes-extended/ltp/ltp_20230516.bb | |||
| @@ -24,11 +24,12 @@ TUNE_CCARGS:remove:x86-64 = "-mfpmath=sse" | |||
| 24 | 24 | ||
| 25 | CFLAGS:append:powerpc64 = " -D__SANE_USERSPACE_TYPES__" | 25 | CFLAGS:append:powerpc64 = " -D__SANE_USERSPACE_TYPES__" |
| 26 | CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__" | 26 | CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__" |
| 27 | SRCREV = "dd2d61ac1a1e09797a6165f478abd4a9f4f43035" | 27 | SRCREV = "3ebc2dfa85c2445bb68d8c0d66e33c4da1e1b3a7" |
| 28 | 28 | ||
| 29 | SRC_URI = "git://github.com/linux-test-project/ltp.git;branch=master;protocol=https \ | 29 | SRC_URI = "git://github.com/linux-test-project/ltp.git;branch=master;protocol=https \ |
| 30 | file://0001-Remove-OOM-tests-from-runtest-mm.patch \ | 30 | file://0001-Remove-OOM-tests-from-runtest-mm.patch \ |
| 31 | file://disable_hanging_tests.patch \ | 31 | file://disable_hanging_tests.patch \ |
| 32 | file://0001-testcases-kernel-syscalls-fcntl-define-_LARGEFILE64_.patch \ | ||
| 32 | " | 33 | " |
| 33 | 34 | ||
| 34 | S = "${WORKDIR}/git" | 35 | S = "${WORKDIR}/git" |
