brizental pushed to branch tor-browser-147.0a1-16.0-2 at The Tor Project / Applications / Tor Browser
Commits:
-
9eeb936a
by Beatriz Rizental at 2026-01-14T10:36:44-03:00
-
e664fbe8
by Beatriz Rizental at 2026-01-14T10:36:44-03:00
-
7e98980e
by Beatriz Rizental at 2026-01-14T10:36:45-03:00
3 changed files:
Changes:
| ... | ... | @@ -7,6 +7,7 @@ include $(topsrcdir)/config/rules.mk |
| 7 | 7 | ifdef MAKENSISU
|
| 8 | 8 | |
| 9 | 9 | ifdef ENABLE_TESTS
|
| 10 | +libs::
|
|
| 10 | 11 | $(MAKE) -C installer/windows install_deps
|
| 11 | 12 | endif #ENABLE_TESTS
|
| 12 | 13 |
| ... | ... | @@ -165,6 +165,7 @@ def bootstrap_path(path, **kwargs): |
| 165 | 165 | when=when,
|
| 166 | 166 | )
|
| 167 | 167 | @imports("os")
|
| 168 | + @imports("re")
|
|
| 168 | 169 | @imports("subprocess")
|
| 169 | 170 | @imports("sys")
|
| 170 | 171 | @imports("mozbuild.tbbutils")
|
| ... | ... | @@ -356,6 +357,23 @@ def bootstrap_path(path, **kwargs): |
| 356 | 357 | + command["arguments"]
|
| 357 | 358 | + [path_parts[0]]
|
| 358 | 359 | )
|
| 360 | + |
|
| 361 | + # BIG HACK: Replace the Apple CDN link with our mirror,
|
|
| 362 | + # otherwise bootstrapping will fail whenever a new MacOS SDK
|
|
| 363 | + # is released, since Apple seems to retire the previous link everytime.
|
|
| 364 | + # Our mirror serves an _unmodified_ version of the file.
|
|
| 365 | + macosx_sdk_match = re.match(r"^MacOSX(.*)\.sdk$", path_parts[0])
|
|
| 366 | + if macosx_sdk_match:
|
|
| 367 | + version = macosx_sdk_match.group(1)
|
|
| 368 | + command = [
|
|
| 369 | + re.sub(
|
|
| 370 | + r"https://swcdn\.apple\.com/.*/CLTools_macOSNMOS_SDK\.pkg",
|
|
| 371 | + f"https://build-sources.tbb.torproject.org/CLTools_macOSNMOS_SDK-{version}.pkg",
|
|
| 372 | + c,
|
|
| 373 | + )
|
|
| 374 | + for c in command
|
|
| 375 | + ]
|
|
| 376 | + |
|
| 359 | 377 | # Clean up anything that was bootstrapped previously before going
|
| 360 | 378 | # forward. In other cases, that's taken care of by mach artifact toolchain.
|
| 361 | 379 | rmtree(
|
| ... | ... | @@ -4241,9 +4241,8 @@ with only_when(~artifact_builds): |
| 4241 | 4241 | |
| 4242 | 4242 | @depends("--with-onnx-runtime")
|
| 4243 | 4243 | def need_boostrap_onnxruntime(with_onnx_runtime):
|
| 4244 | - return (with_onnx_runtime and len(with_onnx_runtime) == 0) or (
|
|
| 4245 | - with_onnx_runtime.origin == "default"
|
|
| 4246 | - )
|
|
| 4244 | + # tor-browser#44412: Prevent ONNX from ever getting bootstrapped.
|
|
| 4245 | + return False
|
|
| 4247 | 4246 | |
| 4248 | 4247 | @depends(
|
| 4249 | 4248 | "--with-onnx-runtime",
|