Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149960452
D36900.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
744 B
Referenced Files
None
Subscribers
None
D36900.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D36900: tools/build/make.py: fix cross build on Fedora Linux
Attached
Detach File
Event Timeline
Log In to Comment