summaryrefslogtreecommitdiff
path: root/dev-db/mongodb/files/mongodb-8.0.29-fix-toolchain-environment.patch
blob: e841fc9d23e66aef69765bb8da884656deab8e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
This code ends up calling external programs with an empty environment (other than SDKROOT), which breaks
anything that requires the PATH variable to be set (such as ccache).

diff '--color=auto' -ur a/bazel/config/generate_config_header.bzl b/bazel/config/generate_config_header.bzl
--- a/bazel/config/generate_config_header.bzl	2026-08-11 15:14:12.000000000 -0400
+++ b/bazel/config/generate_config_header.bzl	2026-08-28 12:06:48.341631610 -0400
@@ -92,7 +92,7 @@
                         "--compiler-args",
                         " ".join(compiler_flags),
                         "--env-vars",
-                        json.encode(env_flags | {"SDKROOT": ctx.attr._sdkroot[sdkroot_provider].path}),
+                        json.encode(ctx.configuration.default_shell_env | env_flags | {"SDKROOT": ctx.attr._sdkroot[sdkroot_provider].path}),
                     ],
     )