diff options
| author | Sam James <sam@gentoo.org> | 2025-05-06 20:27:34 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-05-06 20:32:06 +0100 |
| commit | 8ee176dbe6fb61293b3b0ac57d859261e0ca902e (patch) | |
| tree | 08dbda928eb75de6235a9c7c37e5ee44ecfde6ee /dev-db/mongodb/files/mongodb-5.0.2-fix-scons.patch | |
| parent | 07da7cbf83135a8830a1da146b594d4b2e615797 (diff) | |
| download | gentoo-8ee176dbe6fb61293b3b0ac57d859261e0ca902e.tar.gz gentoo-8ee176dbe6fb61293b3b0ac57d859261e0ca902e.tar.bz2 gentoo-8ee176dbe6fb61293b3b0ac57d859261e0ca902e.zip | |
dev-db/mongodb: move all patches to devspae
Wanted to do this after because the patches are a mess and having
some history for them is good.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/mongodb/files/mongodb-5.0.2-fix-scons.patch')
| -rw-r--r-- | dev-db/mongodb/files/mongodb-5.0.2-fix-scons.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/dev-db/mongodb/files/mongodb-5.0.2-fix-scons.patch b/dev-db/mongodb/files/mongodb-5.0.2-fix-scons.patch deleted file mode 100644 index f66e52f1c9ed..000000000000 --- a/dev-db/mongodb/files/mongodb-5.0.2-fix-scons.patch +++ /dev/null @@ -1,47 +0,0 @@ -wrt PATH: -""" -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. -""" ---- a/SConstruct -+++ b/SConstruct -@@ -2366,7 +2366,6 @@ if env.TargetOSIs('posix'): - - # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used. - env.Append( CCFLAGS=["-fasynchronous-unwind-tables", -- "-ggdb" if not env.TargetOSIs('emscripten') else "-g", - "-Wall", - "-Wsign-compare", - "-Wno-unknown-pragmas", -@@ -2422,6 +2421,8 @@ if env.TargetOSIs('posix'): - - # env.Append( " -Wconversion" ) TODO: this doesn't really work yet - env.Append( CXXFLAGS=["-Woverloaded-virtual"] ) -+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] ) -+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] ) - - # On OS X, clang doesn't want the pthread flag at link time, or it - # issues warnings which make it impossible for us to declare link -@@ -2473,8 +2474,8 @@ if env.TargetOSIs('posix'): - ], - ) - -- #make scons colorgcc friendly -- for key in ('HOME', 'TERM'): -+ #make scons colorgcc, distcc, ccache friendly -+ for key in ('HOME', 'PATH', 'TERM'): - try: - env['ENV'][key] = os.environ[key] - except KeyError: |
