diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-11-05 08:33:41 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-11-06 08:49:52 -0800 |
| commit | ad8a6570cafd512434af497f31f5d524af703622 (patch) | |
| tree | 3aedf0f3670f3f9b21694a88b7efc939258c01cb /meta-filesystems/recipes-utils | |
| parent | 10e38d8f0057a305342709c95e613ed93dbe2955 (diff) | |
| download | meta-openembedded-ad8a6570cafd512434af497f31f5d524af703622.tar.gz | |
xfstests: Fix build on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-filesystems/recipes-utils')
| -rw-r--r-- | meta-filesystems/recipes-utils/xfstests/xfstests/0001-add-missing-FTW_-macros-when-not-available-in-libc.patch | 41 | ||||
| -rw-r--r-- | meta-filesystems/recipes-utils/xfstests/xfstests_2023.10.29.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-utils/xfstests/xfstests/0001-add-missing-FTW_-macros-when-not-available-in-libc.patch b/meta-filesystems/recipes-utils/xfstests/xfstests/0001-add-missing-FTW_-macros-when-not-available-in-libc.patch new file mode 100644 index 0000000000..5e230e2cfb --- /dev/null +++ b/meta-filesystems/recipes-utils/xfstests/xfstests/0001-add-missing-FTW_-macros-when-not-available-in-libc.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 5facddc332c5ff8330f93c0a7e1b7f6d7bbd24a3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 5 Nov 2023 08:31:21 -0800 | ||
| 4 | Subject: [PATCH] add missing FTW_ macros when not available in libc | ||
| 5 | |||
| 6 | Fixes build with musl | ||
| 7 | |||
| 8 | | xfsfind.c:176:13: error: use of undeclared identifier 'FTW_STOP' | ||
| 9 | | 176 | retval = FTW_STOP; | ||
| 10 | | | ^ | ||
| 11 | |||
| 12 | Upstream-Status: Pending | ||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 14 | --- | ||
| 15 | src/global.h | 12 ++++++++++++ | ||
| 16 | 1 file changed, 12 insertions(+) | ||
| 17 | |||
| 18 | diff --git a/src/global.h b/src/global.h | ||
| 19 | index 49570ef1..1c247488 100644 | ||
| 20 | --- a/src/global.h | ||
| 21 | +++ b/src/global.h | ||
| 22 | @@ -190,4 +190,16 @@ roundup_64(unsigned long long x, unsigned int y) | ||
| 23 | return rounddown_64(x + y - 1, y); | ||
| 24 | } | ||
| 25 | |||
| 26 | +#ifndef FTW_ACTIONRETVAL | ||
| 27 | +#define FTW_ACTIONRETVAL 16 | ||
| 28 | +#endif | ||
| 29 | + | ||
| 30 | +#ifndef FTW_CONTINUE | ||
| 31 | +#define FTW_CONTINUE 0 | ||
| 32 | +#endif | ||
| 33 | + | ||
| 34 | +#ifndef FTW_STOP | ||
| 35 | +#define FTW_STOP 1 | ||
| 36 | +#endif | ||
| 37 | + | ||
| 38 | #endif /* GLOBAL_H */ | ||
| 39 | -- | ||
| 40 | 2.42.1 | ||
| 41 | |||
diff --git a/meta-filesystems/recipes-utils/xfstests/xfstests_2023.10.29.bb b/meta-filesystems/recipes-utils/xfstests/xfstests_2023.10.29.bb index b8880e016c..4e8e318409 100644 --- a/meta-filesystems/recipes-utils/xfstests/xfstests_2023.10.29.bb +++ b/meta-filesystems/recipes-utils/xfstests/xfstests_2023.10.29.bb | |||
| @@ -9,6 +9,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git;branch=for-next; | |||
| 9 | git://github.com/amir73il/unionmount-testsuite.git;branch=master;protocol=https;name=unionmount;destsuffix=unionmount-testsuite \ | 9 | git://github.com/amir73il/unionmount-testsuite.git;branch=master;protocol=https;name=unionmount;destsuffix=unionmount-testsuite \ |
| 10 | file://0001-ltp-fsx.h-Explicitly-use-int-for-return-type-for-aio.patch \ | 10 | file://0001-ltp-fsx.h-Explicitly-use-int-for-return-type-for-aio.patch \ |
| 11 | file://0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch \ | 11 | file://0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch \ |
| 12 | file://0001-add-missing-FTW_-macros-when-not-available-in-libc.patch \ | ||
| 12 | " | 13 | " |
| 13 | 14 | ||
| 14 | SRCREV_xfstests = "f7765774a1b5cb98c2f21a892e82b3421f40e791" | 15 | SRCREV_xfstests = "f7765774a1b5cb98c2f21a892e82b3421f40e791" |
