diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-12-31 14:25:54 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-12-31 14:27:41 -0800 |
| commit | c8a56b2ce0d00d078bd46f2265a9cd2ad38d0b85 (patch) | |
| tree | 9b6a5a02ead5b3ca5f65fa5943053ba3e26743d5 | |
| parent | 56dff418b8fb00edba4b8b363f869eab5cdce105 (diff) | |
| download | meta-openembedded-c8a56b2ce0d00d078bd46f2265a9cd2ad38d0b85.tar.gz | |
mongodb: Do not use off64_t on musl
Its not available on musl since off_t is 64bit by default
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-wiredtiger-Avoid-using-off64_t.patch | 30 | ||||
| -rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-wiredtiger-Avoid-using-off64_t.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-wiredtiger-Avoid-using-off64_t.patch new file mode 100644 index 0000000000..abe6898554 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-wiredtiger-Avoid-using-off64_t.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 0508c1518c2e7c586a231d344e9f93b08507885b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 31 Dec 2022 14:23:40 -0800 | ||
| 4 | Subject: [PATCH] wiredtiger: Avoid using off64_t | ||
| 5 | |||
| 6 | off64_t is not available on musl since off_t is already 64bit by | ||
| 7 | default. Therefore replace using off64_t with off_t | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | src/third_party/wiredtiger/src/os_posix/os_fs.c | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/src/third_party/wiredtiger/src/os_posix/os_fs.c b/src/third_party/wiredtiger/src/os_posix/os_fs.c | ||
| 16 | index 3898eb74343..9ce2d5edb38 100644 | ||
| 17 | --- a/src/third_party/wiredtiger/src/os_posix/os_fs.c | ||
| 18 | +++ b/src/third_party/wiredtiger/src/os_posix/os_fs.c | ||
| 19 | @@ -533,7 +533,7 @@ __posix_file_sync_nowait(WT_FILE_HANDLE *file_handle, WT_SESSION *wt_session) | ||
| 20 | pfh = (WT_FILE_HANDLE_POSIX *)file_handle; | ||
| 21 | |||
| 22 | /* See comment in __posix_sync(): sync cannot be retried or fail. */ | ||
| 23 | - WT_SYSCALL(sync_file_range(pfh->fd, (off64_t)0, (off64_t)0, SYNC_FILE_RANGE_WRITE), ret); | ||
| 24 | + WT_SYSCALL(sync_file_range(pfh->fd, 0, 0, SYNC_FILE_RANGE_WRITE), ret); | ||
| 25 | if (ret == 0) | ||
| 26 | return (0); | ||
| 27 | |||
| 28 | -- | ||
| 29 | 2.39.0 | ||
| 30 | |||
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb index d040ab160b..6e93ec9b0c 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb | |||
| @@ -38,6 +38,7 @@ SRC_URI:append:libc-musl ="\ | |||
| 38 | file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \ | 38 | file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \ |
| 39 | file://0002-Fix-default-stack-size-to-256K.patch \ | 39 | file://0002-Fix-default-stack-size-to-256K.patch \ |
| 40 | file://0004-wiredtiger-Disable-strtouq-on-musl.patch \ | 40 | file://0004-wiredtiger-Disable-strtouq-on-musl.patch \ |
| 41 | file://0001-wiredtiger-Avoid-using-off64_t.patch \ | ||
| 41 | " | 42 | " |
| 42 | 43 | ||
| 43 | SRC_URI:append:toolchain-clang = "\ | 44 | SRC_URI:append:toolchain-clang = "\ |
