Skip to contentSkip to conversation

package/mongodb: remove package

PATCH New Peter Korsgaard 1 participant 2 messages Feb 6, 2019 – Feb 7, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mongodb: remove package

Fixes:
http://autobuild.buildroot.net/results/dd4/dd412fae45a84e44e7e6a49f8cdb124d0851c1df/

The mongodb version used (3.3.4) is no longer supported by upstream and fails to build with openssl 1.1.1x. On top of that it uses internal copies of boost, pcre and zlib instead of the system ones.

Bumping the version to 3.4.19 (which is still supported until September 2019) has been tried, but it:

- No longer builds for 32bit ARM

- Doesn't build without extra patches, E.G.:
https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/mongodb/mongodb/0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch?h=rocko

- Doesn't build with the system version of boost (1.69.0)

- Also fails to build with openssl-1.1.1x

So it looks like mongodb needs to be bumped to the 3.6.x series (which changes the license to the SSPL) - Or simply dropped.

---
 Config.in.legacy                                   |  6 ++
 DEVELOPERS                                         |  1 -
 package/Config.in                                  |  1 -
 .../0001-add-missing-sysmacros-include.patch       | 19 -------
 package/mongodb/Config.in                          | 30 ----------
 package/mongodb/mongodb.hash                       |  2 -
 package/mongodb/mongodb.mk                         | 66 ----------------------
 7 files changed, 6 insertions(+), 119 deletions(-)
 delete mode 100644 package/mongodb/0001-add-missing-sysmacros-include.patch
 delete mode 100644 package/mongodb/Config.in
 delete mode 100644 package/mongodb/mongodb.hash
 delete mode 100644 package/mongodb/mongodb.mk
Config.in.legacy +6 -0
index be2f722b05..0af514db10 100644
@@ -146,6 +146,12 @@ endif
 
 comment "Legacy options removed in 2019.02"
 
+config BR2_PACKAGE_MONGODB
+	bool "mongodb package removed"
+	select BR2_LEGACY
+	help
+	  The mongodb package was removed.
+
 config BR2_PACKAGE_LUACRYPTO
 	bool "luacrypto package removed"
 	select BR2_LEGACY
DEVELOPERS +0 -1
index 1f3cc6a888..3018555b7c 100644
@@ -1952,7 +1952,6 @@ F:	package/aoetools/
 F:	package/curlpp/
 F:	package/daq/
 F:	package/libgdiplus/
-F:	package/mongodb/
 F:	package/pimd/
 F:	package/snort/
 F:	package/stella/
package/Config.in +0 -1
index ebba7b4df2..f079101670 100644
@@ -1217,7 +1217,6 @@ menu "Database"
 	source "package/leveldb/Config.in"
 	source "package/libgit2/Config.in"
 	source "package/libpqxx/Config.in"
-	source "package/mongodb/Config.in"
 	source "package/mysql/Config.in"
 	source "package/postgresql/Config.in"
 	source "package/redis/Config.in"
package/mongodb/0001-add-missing-sysmacros-include.patch deleted +0 -19
deleted file mode 100644
index 3a8bfa16c7..0000000000
@@ -1,19 +0,0 @@
-Add missing <sys/sysmacros.h>
-
-mmap_v1_engine.cpp is using major()/minor(), which are defined by
-<sys/sysmacros.h>. This header file was implicitly included by
-<sys/types.h> in glibc < 2.28. But this glibc 2.28, this is no longer
-the case, so <sys/sysmacros.h> needs to be included explicitly.
-
-Signed-off-by: Florian La Roche <[email protected]>
-
---- ./src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
-+++ ./src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
-@@ -32,6 +32,7 @@
- 
- #include "mongo/db/storage/mmap_v1/mmap_v1_engine.h"
- 
-+#include <sys/sysmacros.h>
- #include <boost/filesystem/path.hpp>
- #include <boost/filesystem/operations.hpp>
- #include <fstream>
package/mongodb/Config.in deleted +0 -30
deleted file mode 100644
index ed3ad56916..0000000000
@@ -1,30 +0,0 @@
-# from src/mongo/platform/bits.h
-config BR2_PACKAGE_MONGODB_ARCH_SUPPORTS
-	bool
-	# ARM needs LDREX/STREX, so ARMv6+
-	default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5
-	default y if BR2_aarch64 || BR2_i386 || BR2_powerpc64 || BR2_x86_64
-
-config BR2_PACKAGE_MONGODB
-	bool "mongodb"
-	depends on BR2_PACKAGE_MONGODB_ARCH_SUPPORTS
-	depends on BR2_TOOLCHAIN_USES_GLIBC # needs glibc malloc_usable_size
-	depends on BR2_USE_WCHAR
-	depends on BR2_TOOLCHAIN_HAS_THREADS
-	depends on BR2_INSTALL_LIBSTDCPP
-	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
-	help
-	  MongoDB is a cross-platform document-oriented database
-	  (NoSQL).
-
-	  It uses JSON-like documents with dynamic schemas (BSON),
-	  making the integration of data in certain types of
-	  applications easier and faster.
-
-	  https://www.mongodb.org/
-
-comment "mongodb needs a glibc toolchain w/ wchar, threads, C++, gcc >= 4.8"
-	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
-		!BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC || \
-		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
-	depends on BR2_PACKAGE_MONGODB_ARCH_SUPPORTS
package/mongodb/mongodb.hash deleted +0 -2
deleted file mode 100644
index b01ad53ab5..0000000000
@@ -1,2 +0,0 @@
-# Locally computed:
-sha256 4764945631bca4ac5c2b239e04e91db00e39716915204349170c37cb7897c564  mongodb-r3.3.4.tar.gz
package/mongodb/mongodb.mk deleted +0 -66

66 lines not on this page · raw message

Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/mongodb: remove package

Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

Fixes:
http://autobuild.buildroot.net/results/dd4/dd412fae45a84e44e7e6a49f8cdb124d0851c1df/

The mongodb version used (3.3.4) is no longer supported by upstream and fails to build with openssl 1.1.1x. On top of that it uses internal copies of boost, pcre and zlib instead of the system ones.

Bumping the version to 3.4.19 (which is still supported until September 2019) has been tried, but it:

- No longer builds for 32bit ARM

- Doesn't build without extra patches, E.G.:
https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/mongodb/mongodb/0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch?h=rocko

Quoted 8 lines

- Doesn't build with the system version of boost (1.69.0)

- Also fails to build with openssl-1.1.1x

So it looks like mongodb needs to be bumped to the 3.6.x series (which changes the license to the SSPL) - Or simply dropped.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard