Page MenuHomeFreeBSD

D36900.id.diff
No OneTemporary

D36900.id.diff

diff --git a/tools/build/make.py b/tools/build/make.py
--- a/tools/build/make.py
+++ b/tools/build/make.py
@@ -267,5 +267,13 @@
shlex.quote(s) for s in [str(bmake_binary)] + bmake_args)
debug("Running `env ", env_cmd_str, " ", make_cmd_str, "`", sep="")
os.environ.update(new_env_vars)
+
+ # Fedora defines bash function wrapper for some shell commands and this
+ # makes 'which <command>' return the function's source code instead of
+ # the binary path. Undefine it to restore the original behavior.
+ os.unsetenv("BASH_FUNC_which%%")
+ os.unsetenv("BASH_FUNC_ml%%")
+ os.unsetenv("BASH_FUNC_module%%")
+
os.chdir(str(source_root))
os.execv(str(bmake_binary), [str(bmake_binary)] + bmake_args)

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 29, 10:10 AM (19 m, 20 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30482623
Default Alt Text
D36900.id.diff (744 B)

Event Timeline