[dev-db/mongodb] sync with tree, untested
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
https://phabricator.services.mozilla.com/D209108
|
||||
https://github.com/mozilla/gecko-dev/commit/33cdc6655b0de44cb7a431216dcbb0d5a552aec6
|
||||
|
||||
clang 19 will report error if w/o this patch:
|
||||
|
||||
src/third_party/mozjs-60/extract/js/src/threading/ExclusiveData.h:124:33: error: reference to non-static member function must be called
|
||||
|
||||
diff --git a/src/third_party/mozjs-60/extract/js/src/threading/ExclusiveData.h b/src/third_party/mozjs-60/extract/js/src/threading/ExclusiveData.h
|
||||
index 25b977e..379a509 100644
|
||||
--- a/src/third_party/mozjs-60/extract/js/src/threading/ExclusiveData.h
|
||||
+++ b/src/third_party/mozjs-60/extract/js/src/threading/ExclusiveData.h
|
||||
@@ -120,13 +120,6 @@ class ExclusiveData
|
||||
release();
|
||||
}
|
||||
|
||||
- ExclusiveData(ExclusiveData&& rhs)
|
||||
- : lock_(mozilla::Move(rhs.lock))
|
||||
- {
|
||||
- MOZ_ASSERT(&rhs != this, "self-move disallowed!");
|
||||
- new (mozilla::KnownNotNull, value_.addr()) T(mozilla::Move(*rhs.value_.addr()));
|
||||
- }
|
||||
-
|
||||
ExclusiveData& operator=(ExclusiveData&& rhs) {
|
||||
this->~ExclusiveData();
|
||||
new (mozilla::KnownNotNull, this) ExclusiveData(mozilla::Move(rhs));
|
||||
27
dev-db/mongodb/files/mongodb-5.0.26-scons.patch
Normal file
27
dev-db/mongodb/files/mongodb-5.0.26-scons.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
https://jira.mongodb.org/browse/SERVER-94430 Upstream respond:
|
||||
|
||||
> we intentionally do not ingest the environment PATH as this makes build
|
||||
> reproducibility and hermiticity much harder. Instead, you should set the
|
||||
> absolute paths to the tools you want to use on the command line, instead of
|
||||
> relying on the PATH.
|
||||
|
||||
Gentoo bug https://bugs.gentoo.org/829340
|
||||
|
||||
In Gentoo, we have LLVM slotted and we put clang in /usr/lib/llvm/18/bin (or
|
||||
whatever), not in /usr/bin, and if upstream strip PATH and construct it
|
||||
themselves, they surely won't contain this location.
|
||||
|
||||
So we add PATH backup for scons.
|
||||
diff --git a/SConstruct b/SConstruct
|
||||
index 3d831c9..f07feeb 100644
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -1201,7 +1201,7 @@ envDict = dict(BUILD_ROOT=buildDir,
|
||||
if get_option('build-tools') == 'next':
|
||||
SCons.Tool.DefaultToolpath.insert(0, os.path.abspath('site_scons/site_tools/next'))
|
||||
|
||||
-env = Environment(variables=env_vars, **envDict)
|
||||
+env = Environment(variables=env_vars, ENV={'PATH': os.environ['PATH']}, **envDict)
|
||||
del envDict
|
||||
|
||||
if get_option('cache-signature-mode') == 'validate':
|
||||
Reference in New Issue
Block a user