* [meta-oe][PATCH] mongodb: Fix build with musl
@ 2020-09-15 1:08 Khem Raj
0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2020-09-15 1:08 UTC (permalink / raw)
To: openembedded-devel; +Cc: Khem Raj, Vincent Prince
Add a patch to include ssize_t definition
Pass OBJCOPY to scons so it does not use the host
objcopy but cross objcopy, which is the right tool
to invoke
Fixes
objcopy: Unable to recognise the format of the input file `build/opt/mongo/mongos'
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Vincent Prince <vincent.prince.fr@gmail.com.com>
---
.../recipes-dbs/mongodb/mongodb/ssize_t.patch | 17 +++++++++++++++++
.../recipes-dbs/mongodb/mongodb_git.bb | 2 ++
2 files changed, 19 insertions(+)
create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/ssize_t.patch
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/ssize_t.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/ssize_t.patch
new file mode 100644
index 0000000000..d297691b69
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/ssize_t.patch
@@ -0,0 +1,17 @@
+ssize_t is provided by sys/types.h, musl does not like
+it if the header is not included, for glibc it is included
+indirectly.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+--- a/src/third_party/kms-message/src/kms_request_str.h
++++ b/src/third_party/kms-message/src/kms_request_str.h
+@@ -24,6 +24,7 @@
+ #include <stdbool.h>
+ #include <stdint.h>
+ #include <string.h>
++#include <sys/types.h>
+
+ #if defined(_WIN32)
+ #include <basetsd.h>
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 b8691df9eb..2be7de02a9 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
@@ -24,6 +24,7 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4 \
file://0001-Support-deprecated-resolver-functions.patch \
file://0003-Fix-unknown-prefix-env.patch \
file://1296.patch \
+ file://ssize_t.patch \
"
SRC_URI_append_libc-musl ="\
file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \
@@ -59,6 +60,7 @@ EXTRA_OESCONS = "PREFIX=${prefix} \
CXXFLAGS='${CXXFLAGS}' \
TARGET_ARCH=${TARGET_ARCH} \
MONGO_VERSION=${PV} \
+ OBJCOPY=${OBJCOPY} \
--ssl \
--disable-warnings-as-errors \
--use-system-zlib \
--
2.28.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-15 1:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15 1:08 [meta-oe][PATCH] mongodb: Fix build with musl Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.