mongodb3: NetBSD/aarch64 build fixdiff -r1.15 -r1.16 pkgsrc/databases/mongodb3/Makefile
(tnn)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.15 2021/01/01 08:24:38 ryoon Exp $ | 1 | # $NetBSD: Makefile,v 1.16 2021/04/09 14:30:09 tnn Exp $ | |
2 | 2 | |||
3 | # This package is intentionally old to avoid: | 3 | # This package is intentionally old to avoid: | |
4 | # Server Side Public License | 4 | # Server Side Public License | |
5 | # c++14 | 5 | # c++14 | |
6 | # and further exists to support net/unifi. | 6 | # and further exists to support net/unifi. | |
7 | DISTNAME= mongodb-src-r3.4.24 | 7 | DISTNAME= mongodb-src-r3.4.24 | |
8 | PKGNAME= ${DISTNAME:S/src-r//} | 8 | PKGNAME= ${DISTNAME:S/src-r//} | |
9 | PKGREVISION= 6 | 9 | PKGREVISION= 6 | |
10 | CATEGORIES= databases | 10 | CATEGORIES= databases | |
11 | MASTER_SITES= http://fastdl.mongodb.org/src/ | 11 | MASTER_SITES= http://fastdl.mongodb.org/src/ | |
12 | 12 | |||
13 | MAINTAINER= gdt@NetBSD.org | 13 | MAINTAINER= gdt@NetBSD.org | |
14 | HOMEPAGE= https://www.mongodb.com/ | 14 | HOMEPAGE= https://www.mongodb.com/ | |
@@ -96,26 +96,28 @@ SUBST_SED.varbase+= -e 's,/var/log,${VAR | @@ -96,26 +96,28 @@ SUBST_SED.varbase+= -e 's,/var/log,${VAR | |||
96 | 96 | |||
97 | NOT_PAX_MPROTECT_SAFE+= bin/mongo bin/mongod | 97 | NOT_PAX_MPROTECT_SAFE+= bin/mongo bin/mongod | |
98 | 98 | |||
99 | RCD_SCRIPTS= mongodb | 99 | RCD_SCRIPTS= mongodb | |
100 | 100 | |||
101 | INSTALLATION_DIRS+= share/doc/mongodb share/examples/mongodb ${PKGMANDIR}/man1 | 101 | INSTALLATION_DIRS+= share/doc/mongodb share/examples/mongodb ${PKGMANDIR}/man1 | |
102 | 102 | |||
103 | CONF_FILES+= share/examples/mongodb/mongod.conf \ | 103 | CONF_FILES+= share/examples/mongodb/mongod.conf \ | |
104 | ${PKG_SYSCONFDIR}/mongod.conf | 104 | ${PKG_SYSCONFDIR}/mongod.conf | |
105 | 105 | |||
106 | # Copy system specific files for NetBSD and DragonFly | 106 | # Copy system specific files for NetBSD and DragonFly | |
107 | post-extract: | 107 | post-extract: | |
108 | ${CHMOD} -R g-w ${WRKSRC} | 108 | ${CHMOD} -R g-w ${WRKSRC} | |
109 | ${CP} -R ${WRKSRC}/src/third_party/mozjs-45/platform/aarch64/linux \ | |||
110 | ${WRKSRC}/src/third_party/mozjs-45/platform/aarch64/netbsd | |||
109 | ${CP} -R ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/freebsd \ | 111 | ${CP} -R ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/freebsd \ | |
110 | ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/dragonfly | 112 | ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/dragonfly | |
111 | ${CP} -R ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/openbsd \ | 113 | ${CP} -R ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/openbsd \ | |
112 | ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/netbsd | 114 | ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/netbsd | |
113 | ${CP} ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_openbsd.cpp \ | 115 | ${CP} ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_openbsd.cpp \ | |
114 | ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_netbsd.cpp | 116 | ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_netbsd.cpp | |
115 | ${CP} ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_freebsd.cpp \ | 117 | ${CP} ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_freebsd.cpp \ | |
116 | ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_dragonfly.cpp | 118 | ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_dragonfly.cpp | |
117 | ${CP} ${WRKSRC}/src/mongo/util/processinfo_openbsd.cpp \ | 119 | ${CP} ${WRKSRC}/src/mongo/util/processinfo_openbsd.cpp \ | |
118 | ${WRKSRC}/src/mongo/util/processinfo_netbsd.cpp | 120 | ${WRKSRC}/src/mongo/util/processinfo_netbsd.cpp | |
119 | ${CP} ${WRKSRC}/src/mongo/util/processinfo_freebsd.cpp \ | 121 | ${CP} ${WRKSRC}/src/mongo/util/processinfo_freebsd.cpp \ | |
120 | ${WRKSRC}/src/mongo/util/processinfo_dragonfly.cpp | 122 | ${WRKSRC}/src/mongo/util/processinfo_dragonfly.cpp | |
121 | ${CP} ${WRKSRC}/src/mongo/platform/stack_locator_freebsd.cpp \ | 123 | ${CP} ${WRKSRC}/src/mongo/platform/stack_locator_freebsd.cpp \ |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: distinfo,v 1.9 2020/03/31 14:34:41 gdt Exp $ | 1 | $NetBSD: distinfo,v 1.10 2021/04/09 14:30:09 tnn Exp $ | |
2 | 2 | |||
3 | SHA1 (mongodb-src-r3.4.24.tar.gz) = 86909b211998f0cbc8104df774aecb3d00a01763 | 3 | SHA1 (mongodb-src-r3.4.24.tar.gz) = 86909b211998f0cbc8104df774aecb3d00a01763 | |
4 | RMD160 (mongodb-src-r3.4.24.tar.gz) = f7e4bfe1e2bd046f1a6c0f2695762076ffee5ae5 | 4 | RMD160 (mongodb-src-r3.4.24.tar.gz) = f7e4bfe1e2bd046f1a6c0f2695762076ffee5ae5 | |
5 | SHA512 (mongodb-src-r3.4.24.tar.gz) = c19d5215f514ad0c1bd33f17f9d79198e07657260c0a8399c9a84bbf274ec4f6e61a94b36bb132e93a46e96ee8b4d994a1bed70b2d26f906ffe8e78343394226 | 5 | SHA512 (mongodb-src-r3.4.24.tar.gz) = c19d5215f514ad0c1bd33f17f9d79198e07657260c0a8399c9a84bbf274ec4f6e61a94b36bb132e93a46e96ee8b4d994a1bed70b2d26f906ffe8e78343394226 | |
6 | Size (mongodb-src-r3.4.24.tar.gz) = 40232175 bytes | 6 | Size (mongodb-src-r3.4.24.tar.gz) = 40232175 bytes | |
7 | SHA1 (patch-SConstruct) = b6c2893d82d9b954c889d867ec909a05728af83d | 7 | SHA1 (patch-SConstruct) = b6c2893d82d9b954c889d867ec909a05728af83d | |
8 | SHA1 (patch-src_mongo_base_initializer.h) = f82d58895251f7be08a09012ed7db64e3863a1fe | 8 | SHA1 (patch-src_mongo_base_initializer.h) = f82d58895251f7be08a09012ed7db64e3863a1fe | |
9 | SHA1 (patch-src_mongo_db_matcher_expression__leaf.cpp) = 52064034fabb5de63eccf87ddd140303c54f0312 | 9 | SHA1 (patch-src_mongo_db_matcher_expression__leaf.cpp) = 52064034fabb5de63eccf87ddd140303c54f0312 | |
10 | SHA1 (patch-src_mongo_db_query_collation_collator__interface__icu.h) = 43c94a970fb91d45441a206b5d774e9e7ea55ad5 | 10 | SHA1 (patch-src_mongo_db_query_collation_collator__interface__icu.h) = 43c94a970fb91d45441a206b5d774e9e7ea55ad5 | |
11 | SHA1 (patch-src_mongo_db_repl_isself.c) = 82321c918b91ce1a68ce79c14589126aca6baf96 | 11 | SHA1 (patch-src_mongo_db_repl_isself.c) = 82321c918b91ce1a68ce79c14589126aca6baf96 | |
12 | SHA1 (patch-src_mongo_db_repl_master__slave.cpp) = 2f37f0819a2b2743df01f6b6ab0b3013b3b7d726 | 12 | SHA1 (patch-src_mongo_db_repl_master__slave.cpp) = 2f37f0819a2b2743df01f6b6ab0b3013b3b7d726 | |
13 | SHA1 (patch-src_mongo_db_repl_oplog__fetcher.cpp) = e12dbfbd4e70ee210cdd4eb0582661666e8eb06a | 13 | SHA1 (patch-src_mongo_db_repl_oplog__fetcher.cpp) = e12dbfbd4e70ee210cdd4eb0582661666e8eb06a | |
14 | SHA1 (patch-src_mongo_db_storage_mmap__v1_durop.h) = fb4c0fa1cbd1c2f362e04bcee49f9c3db77d7874 | 14 | SHA1 (patch-src_mongo_db_storage_mmap__v1_durop.h) = fb4c0fa1cbd1c2f362e04bcee49f9c3db77d7874 | |
@@ -16,15 +16,15 @@ SHA1 (patch-src_mongo_installer_msi_SCon | @@ -16,15 +16,15 @@ SHA1 (patch-src_mongo_installer_msi_SCon | |||
16 | SHA1 (patch-src_mongo_platform_random.cpp) = 9af0fd82a653bf4f273ce107e54c5e63eaeb3b85 | 16 | SHA1 (patch-src_mongo_platform_random.cpp) = 9af0fd82a653bf4f273ce107e54c5e63eaeb3b85 | |
17 | SHA1 (patch-src_mongo_platform_stack__locator__netbsd.cpp) = 3f67bbae82c0f3cae410a21219589bc082e7b9b1 | 17 | SHA1 (patch-src_mongo_platform_stack__locator__netbsd.cpp) = 3f67bbae82c0f3cae410a21219589bc082e7b9b1 | |
18 | SHA1 (patch-src_mongo_shell_bench.cpp) = c0fd15347d35e37daf87b642148215dee3ab7220 | 18 | SHA1 (patch-src_mongo_shell_bench.cpp) = c0fd15347d35e37daf87b642148215dee3ab7220 | |
19 | SHA1 (patch-src_mongo_shell_linenoise__utf8.h) = 952b1599364893d9fd0be915e3d0c2faabb9153f | 19 | SHA1 (patch-src_mongo_shell_linenoise__utf8.h) = 952b1599364893d9fd0be915e3d0c2faabb9153f | |
20 | SHA1 (patch-src_mongo_util_intrusive__counter.h) = 9f1af59e1bc86e33bf183a6dda1737007afc7a18 | 20 | SHA1 (patch-src_mongo_util_intrusive__counter.h) = 9f1af59e1bc86e33bf183a6dda1737007afc7a18 | |
21 | SHA1 (patch-src_mongo_util_processinfo__netbsd.cpp) = 6c01ad839ff31e7500d76af6622dfa726fcc8264 | 21 | SHA1 (patch-src_mongo_util_processinfo__netbsd.cpp) = 6c01ad839ff31e7500d76af6622dfa726fcc8264 | |
22 | SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_dpml__exception.c) = ef3b260e8a49227cbbabf427500b7c70bce15083 | 22 | SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_dpml__exception.c) = ef3b260e8a49227cbbabf427500b7c70bce15083 | |
23 | SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_op__system.h) = 39f6fba82e2870ee4a5d99785033621225a72a16 | 23 | SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_op__system.h) = 39f6fba82e2870ee4a5d99785033621225a72a16 | |
24 | SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_src_bid__functions.h) = d3a85d3a3b33691466c65cdf51c56f221429aea9 | 24 | SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_src_bid__functions.h) = d3a85d3a3b33691466c65cdf51c56f221429aea9 | |
25 | SHA1 (patch-src_third__party_asio-master_asio_include_asio_detail_impl_kqueue__reactor.ipp) = b942286acd85ca8cf5fd03bc9f70a5dff0943243 | 25 | SHA1 (patch-src_third__party_asio-master_asio_include_asio_detail_impl_kqueue__reactor.ipp) = b942286acd85ca8cf5fd03bc9f70a5dff0943243 | |
26 | SHA1 (patch-src_third__party_mozjs-38_platform_x86__64_netbsd_build_js-confdefs.h) = c2ad1041b5c1ff9fac9085d2a8963781f51873a8 | 26 | SHA1 (patch-src_third__party_mozjs-38_platform_x86__64_netbsd_build_js-confdefs.h) = c2ad1041b5c1ff9fac9085d2a8963781f51873a8 | |
27 | SHA1 (patch-src_third__party_mozjs-38_platform_x86__64_netbsd_include_js-config.h) = 7ddbb4e3bf4126a1be2195acc82ff859e8130a01 | 27 | SHA1 (patch-src_third__party_mozjs-38_platform_x86__64_netbsd_include_js-config.h) = 7ddbb4e3bf4126a1be2195acc82ff859e8130a01 | |
28 | SHA1 (patch-src_third__party_s2_base_port.h) = 892ce91b5aaa432f34e1e7c169b7fd6eea2a3e94 | 28 | SHA1 (patch-src_third__party_s2_base_port.h) = 892ce91b5aaa432f34e1e7c169b7fd6eea2a3e94 | |
29 | SHA1 (patch-src_third__party_wiredtiger_SConscript) = 71fd2326a4e95fec674326225bce5ccf5793aa5a | 29 | SHA1 (patch-src_third__party_wiredtiger_SConscript) = f135c502c11a1d33da3a5e4c61db00dba85c27c4 | |
30 | SHA1 (patch-src_third__party_wiredtiger_src_os__posix_os__fs.c) = 6da1014613231a0e56dd3449bd5d61014340575a | 30 | SHA1 (patch-src_third__party_wiredtiger_src_os__posix_os__fs.c) = 6da1014613231a0e56dd3449bd5d61014340575a |
@@ -1,27 +1,25 @@ | @@ -1,27 +1,25 @@ | |||
1 | # $NetBSD: options.mk,v 1.2 2019/07/09 07:28:30 adam Exp $ | 1 | # $NetBSD: options.mk,v 1.3 2021/04/09 14:30:09 tnn Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.mongodb | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.mongodb | |
4 | PKG_SUPPORTED_OPTIONS= ssl wiredtiger | 4 | PKG_SUPPORTED_OPTIONS= ssl | |
5 | 5 | |||
6 | .if ${MACHINE_ARCH} == "x86_64" | 6 | # The prospect of using databases/wiredtiger is unclear yet; | |
7 | # MongoDB doesn't provide guarantees for non-bundled WiredTiger: | |||
8 | # https://groups.google.com/forum/#!msg/mongodb-dev/31FQSo4KVCI/Fx-WtJ9fzU4J | |||
9 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "aarch64" | |||
10 | PKG_SUPPORTED_OPTIONS+= wiredtiger | |||
7 | PKG_SUGGESTED_OPTIONS+= wiredtiger | 11 | PKG_SUGGESTED_OPTIONS+= wiredtiger | |
8 | .endif | 12 | .endif | |
9 | 13 | |||
10 | .include "../../mk/bsd.options.mk" | 14 | .include "../../mk/bsd.options.mk" | |
11 | 15 | |||
12 | .if !empty(PKG_OPTIONS:Mssl) | 16 | .if !empty(PKG_OPTIONS:Mssl) | |
13 | .include "../../security/openssl/buildlink3.mk" | 17 | .include "../../security/openssl/buildlink3.mk" | |
14 | SCONS_ARGS+= --ssl | 18 | SCONS_ARGS+= --ssl | |
15 | .endif | 19 | .endif | |
16 | 20 | |||
17 | # The prospect of using databases/wiredtiger is unclear yet; | |||
18 | # MongoDB doesn't provide guarantees for non-bundled WiredTiger: | |||
19 | # https://groups.google.com/forum/#!msg/mongodb-dev/31FQSo4KVCI/Fx-WtJ9fzU4J | |||
20 | .if !empty(PKG_OPTIONS:Mwiredtiger) | 21 | .if !empty(PKG_OPTIONS:Mwiredtiger) | |
21 | . if ${MACHINE_ARCH} != "x86_64" | |||
22 | PKG_FAIL_REASON+= "WiredTiger is not supported on 32-bit platforms" | |||
23 | . endif | |||
24 | SCONS_ARGS+= --wiredtiger=on | 22 | SCONS_ARGS+= --wiredtiger=on | |
25 | .else | 23 | .else | |
26 | SCONS_ARGS+= --wiredtiger=off | 24 | SCONS_ARGS+= --wiredtiger=off | |
27 | .endif | 25 | .endif |
@@ -1,28 +1,37 @@ | @@ -1,28 +1,37 @@ | |||
1 | $NetBSD: patch-src_third__party_wiredtiger_SConscript,v 1.1 2019/06/28 16:30:56 gdt Exp $ | 1 | $NetBSD: patch-src_third__party_wiredtiger_SConscript,v 1.2 2021/04/09 14:30:09 tnn Exp $ | |
2 | 2 | |||
3 | * Add NetBSD case. | 3 | * Add NetBSD case. | |
4 | 4 | |||
5 | --- src/third_party/wiredtiger/SConscript.orig 2017-04-20 21:43:42.000000000 +0000 | 5 | --- src/third_party/wiredtiger/SConscript.orig 2020-01-08 16:30:41.000000000 +0000 | |
6 | +++ src/third_party/wiredtiger/SConscript | 6 | +++ src/third_party/wiredtiger/SConscript | |
7 | @@ -62,8 +62,12 @@ elif env.TargetOSIs('solaris'): | 7 | @@ -62,8 +62,12 @@ elif env.TargetOSIs('solaris'): | |
8 | # For an explanation of __EXTENSIONS__, | 8 | # For an explanation of __EXTENSIONS__, | |
9 | # see http://docs.oracle.com/cd/E19253-01/816-5175/standards-5/index.html | 9 | # see http://docs.oracle.com/cd/E19253-01/816-5175/standards-5/index.html | |
10 | env.Append(CPPDEFINES=["__EXTENSIONS__"]) | 10 | env.Append(CPPDEFINES=["__EXTENSIONS__"]) | |
11 | +elif env.TargetOSIs('dragonfly'): | 11 | +elif env.TargetOSIs('dragonfly'): | |
12 | + env.Append(CPPPATH=["build_dragonfly"]) | 12 | + env.Append(CPPPATH=["build_dragonfly"]) | |
13 | elif env.TargetOSIs('freebsd'): | 13 | elif env.TargetOSIs('freebsd'): | |
14 | env.Append(CPPPATH=["build_freebsd"]) | 14 | env.Append(CPPPATH=["build_freebsd"]) | |
15 | +elif env.TargetOSIs('netbsd'): | 15 | +elif env.TargetOSIs('netbsd'): | |
16 | + env.Append(CPPPATH=["build_netbsd"]) | 16 | + env.Append(CPPPATH=["build_netbsd"]) | |
17 | elif env.TargetOSIs('openbsd'): | 17 | elif env.TargetOSIs('openbsd'): | |
18 | env.Append(CPPPATH=["build_openbsd"]) | 18 | env.Append(CPPPATH=["build_openbsd"]) | |
19 | elif env.TargetOSIs('linux'): | 19 | elif env.TargetOSIs('linux'): | |
20 | @@ -93,7 +97,7 @@ if (VERSION_MAJOR == None or | 20 | @@ -93,7 +97,7 @@ if (VERSION_MAJOR == None or | |
21 | VERSION_MINOR == None or | 21 | VERSION_MINOR == None or | |
22 | VERSION_PATCH == None or | 22 | VERSION_PATCH == None or | |
23 | VERSION_STRING == None): | 23 | VERSION_STRING == None): | |
24 | - print "Failed to find version variables in " + version_file | 24 | - print "Failed to find version variables in " + version_file | |
25 | + print("Failed to find version variables in " + version_file) | 25 | + print("Failed to find version variables in " + version_file) | |
26 | Exit(1) | 26 | Exit(1) | |
27 | 27 | |||
28 | wiredtiger_includes = """ | 28 | wiredtiger_includes = """ | |
29 | @@ -169,7 +173,7 @@ if useSnappy: | |||
30 | # If not available at runtime, we fall back to software in some cases. | |||
31 | # | |||
32 | # On zSeries we may disable because SLES 11 kernel doe not support the instructions. | |||
33 | -if not (env['TARGET_ARCH'] == 's390x' and get_option("use-s390x-crc32") == "off"): | |||
34 | +if not (env['TARGET_ARCH'] == 's390x' and get_option("use-s390x-crc32") == "off") and not (env.TargetOSIs('netbsd') and env['TARGET_ARCH'] == 'aarch64'): | |||
35 | env.Append(CPPDEFINES=["HAVE_CRC32_HARDWARE"]) | |||
36 | ||||
37 | wtlib = env.Library( |