lists.torproject.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

tbb-commits

Thread Start a new thread
Threads by month
  • ----- 2026 -----
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2021 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2020 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2019 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2018 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2017 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2016 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2015 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2014 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
tbb-commits@lists.torproject.org

  • 1 participants
  • 21411 discussions
[Git][tpo/applications/mullvad-browser] Pushed new tag base-browser-153.8.0esr-16.0-1-build1
by Dan Ballard (@dan) 20 Nov '26

20 Nov '26
Dan Ballard pushed new tag base-browser-153.8.0esr-16.0-1-build1 at The Tor Project / Applications / Mullvad Browser -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/tree/base-… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/mullvad-browser] Pushed new branch mullvad-browser-153.8.0esr-16.0-1
by Dan Ballard (@dan) 20 Nov '26

20 Nov '26
Dan Ballard pushed new branch mullvad-browser-153.8.0esr-16.0-1 at The Tor Project / Applications / Mullvad Browser -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/tree/mullv… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/tor-browser-build][main] Bug 41895&41923: Refactored pt_config.json.
by Pier Angelo Vendrame (@pierov) 19 Nov '26

19 Nov '26
Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build Commits: 0830ce3f by Pier Angelo Vendrame at 2026-11-19T19:23:45+01:00 Bug 41895&41923: Refactored pt_config.json. We now include information about pluggable transport with the various details split, which is useful for configuring arti. We would like to delete the old pluggableTransport object at a certain point. We use a new transports.json, with such information as the source and we generate from it the various ClientTransportPlugin lines. The built-in bridge lines are now generated automatically from the rdsys-admin repository managed by the Anticensorship Team. - - - - - 6 changed files: - projects/moat-settings/build - projects/tor-expert-bundle/build - projects/tor-expert-bundle/config - + projects/tor-expert-bundle/make_pt_config.py - − projects/tor-expert-bundle/pt_config.json - + projects/tor-expert-bundle/transports.json Changes: ===================================== projects/moat-settings/build ===================================== @@ -1,11 +1,15 @@ #!/bin/bash [% c("var/set_default_env") -%] -tar -xf [% project %]-[% c("version") %].tar.[% c('compress_tar') %] [% project %]-[% c("version") %]/conf/circumvention.json +tar -xf [% project %]-[% c("version") %].tar.[% c('compress_tar') %] \ + [% project %]-[% c("version") %]/conf/builtin.json \ + [% project %]-[% c("version") %]/conf/circumvention.json +jq 'del(.["meek-azure"])' [% project %]-[% c("version") %]/conf/builtin.json > builtin.json jq -c keys [% project %]-[% c("version") %]/conf/circumvention.json > moat_countries.json +[% c("touch") %] builtin.json [% c("touch") %] moat_countries.json [% c('tar', { - tar_src => 'moat_countries.json', - tar_args => '-caf ' _ dest_dir _ '/' _ c('filename'), - }) %] + tar_src => 'builtin.json moat_countries.json', + tar_args => '-caf ' _ dest_dir _ '/' _ c('filename'), + }) %] ===================================== projects/tor-expert-bundle/build ===================================== @@ -6,10 +6,14 @@ mkdir -p $distdir output_dir=[% dest_dir %]/[% c('filename') %] mkdir -p $output_dir +tar -xf $rootdir/[% c('input_files_by_name/moat-settings') %] + cd $distdir tar -xkf $rootdir/[% c('input_files_by_name/tor') %] +mv "$rootdir/torrc-defaults" data + cd tor mkdir pluggable_transports && cd pluggable_transports @@ -34,8 +38,8 @@ pt_licenses $distdir/docs/lyrebird.txt pt_licenses $distdir/docs/conjure.txt [% END -%] -# add per-platform pt extension -awk '{gsub(/\$\{pt_extension\}/, "[% c("var/pt_extension") %]"); print}' $rootdir/pt_config.json > pt_config.json +cd $rootdir +python3 make_pt_config.py [% c('var/recommended_transport') %] [% c('var/platform') %] $distdir cd $distdir @@ -71,12 +75,6 @@ cd $distdir cd .. [% END %] -# Write our ClientTransportPlugin lines to torrc-defults -jq --raw-output .pluggableTransports[] "tor/pluggable_transports/pt_config.json" | while read -r line; do - echo "${line/\$\{pt_path\}/[% c("var/pt_path") %]}" >> "$rootdir/torrc-defaults" -done -mv "$rootdir/torrc-defaults" data - [% SET tar_src = [ "tor", "data", "docs" ]; IF c("var/linux"); ===================================== projects/tor-expert-bundle/config ===================================== @@ -2,18 +2,8 @@ filename: '[% project %]-[% c("var/osname") %]-[% c("var/build_id") %]' version: '[% c("var/torbrowser_version") %]' -targets: - linux: - var: - pt_path: ./TorBrowser/Tor/PluggableTransports/ - macos: - var: - pt_path: PluggableTransports/ - windows: - var: - # Backlashes need to be escaped here. - pt_path: TorBrowser\\Tor\\PluggableTransports\\ - pt_extension: .exe +var: + recommended_transport: obfs4 input_files: - name: tor @@ -23,7 +13,10 @@ input_files: - name: conjure project: conjure enable: '[% !c("var/android-x86_64") %]' - - filename: pt_config.json + - filename: make_pt_config.py + - filename: transports.json + - name: moat-settings + project: moat-settings - filename: torrc-defaults enable: '[% !c("var/android") %]' - filename: AndroidManifest.xml ===================================== projects/tor-expert-bundle/make_pt_config.py ===================================== @@ -0,0 +1,53 @@ +#!/usr/bin/env python3 +import argparse +from collections import OrderedDict +import json +from pathlib import Path + +parser = argparse.ArgumentParser() +parser.add_argument("recommended_transport") +parser.add_argument("platform") +parser.add_argument("dest", type=Path) +args = parser.parse_args() + +pt_path = "" +pt_extension = "" +if args.platform == "linux": + pt_path = "./TorBrowser/Tor/PluggableTransports/" +elif args.platform == "macos": + pt_path = "PluggableTransports/" +elif args.platform == "windows": + pt_path = "TorBrowser\\Tor\\PluggableTransports\\" + pt_extension = ".exe" + +pt_lines = OrderedDict() +with open("transports.json") as f: + transports = json.load(f, object_pairs_hook=OrderedDict) +for key, defs in transports.items(): + defs["path"] = ( + defs["path"] + .replace("${pt_path}", pt_path) + .replace("${pt_extension}", pt_extension) + ) + protocols = ",".join(defs["protocols"]) + arguments = " ".join(defs.get("arguments", [])) + if arguments: + arguments = " " + arguments + pt_lines[key] = ( + f'ClientTransportPlugin {protocols} exec {defs["path"]}{arguments}' + ) + +with open("builtin.json") as f: + bridges = json.load(f, object_pairs_hook=OrderedDict) + +output = OrderedDict() +output["recommendedDefault"] = args.recommended_transport +output["transports"] = transports +output["pluggableTransports"] = pt_lines +output["bridges"] = bridges + +with (args.dest / "tor/pluggable_transports/pt_config.json").open("w") as f: + json.dump(output, f, indent=2) +with (args.dest / "data/torrc-defaults").open("a+") as f: + for line in pt_lines.values(): + f.write(line + "\n") ===================================== projects/tor-expert-bundle/pt_config.json deleted ===================================== @@ -1,27 +0,0 @@ -{ - "recommendedDefault" : "obfs4", - "pluggableTransports" : { - "lyrebird" : "ClientTransportPlugin meek_lite,obfs2,obfs3,obfs4,scramblesuit,webtunnel exec ${pt_path}lyrebird${pt_extension}", - "snowflake": "ClientTransportPlugin snowflake exec ${pt_path}lyrebird${pt_extension}", - "conjure" : "ClientTransportPlugin conjure exec ${pt_path}conjure-client${pt_extension} -registerURL https://registration.refraction.network/api" - }, - "bridges" : { - "meek" : [ - "meek_lite 192.0.2.20:80 url=https://1603026938.rsc.cdn77.org front=www.phpmyadmin.net utls=HelloRandomizedALPN" - ], - "obfs4" : [ - "obfs4 37.218.245.14:38224 D9A82D2F9C2F65A18407B1D2B764F130847F8B5D cert=bjRaMrr1BRiAW8IE9U5z27fQaYgOhX1UCmOpg2pFpoMvo6ZgQMzLsaTzzQNTlm7hNcb+Sg iat-mode=0", - "obfs4 209.148.46.65:443 74FAD13168806246602538555B5521A0383A1875 cert=ssH+9rP8dG2NLDN2XuFw63hIO/9MNNinLmxQDpVa+7kTOa9/m+tGWT1SmSYpQ9uTBGa6Hw iat-mode=0", - "obfs4 146.57.248.225:22 10A6CD36A537FCE513A322361547444B393989F0 cert=K1gDtDAIcUfeLqbstggjIw2rtgIKqdIhUlHp82XRqNSq/mtAjp1BIC9vHKJ2FAEpGssTPw iat-mode=0", - "obfs4 45.145.95.6:27015 C5B7CD6946FF10C5B3E89691A7D3F2C122D2117C cert=TD7PbUO0/0k6xYHMPW3vJxICfkMZNdkRrb63Zhl5j9dW3iRGiCx0A7mPhe5T2EDzQ35+Zw iat-mode=0", - "obfs4 51.222.13.177:80 5EDAC3B810E12B01F6FD8050D2FD3E277B289A08 cert=2uplIpLQ0q9+0qMFrK5pkaYRDOe460LL9WHBvatgkuRr/SL31wBOEupaMMJ6koRE6Ld0ew iat-mode=0", - "obfs4 212.83.43.95:443 BFE712113A72899AD685764B211FACD30FF52C31 cert=ayq0XzCwhpdysn5o0EyDUbmSOx3X/oTEbzDMvczHOdBJKlvIdHHLJGkZARtT4dcBFArPPg iat-mode=1", - "obfs4 212.83.43.74:443 39562501228A4D5E27FCA4C0C81A01EE23AE3EE4 cert=PBwr+S8JTVZo6MPdHnkTwXJPILWADLqfMGoVvhZClMq/Urndyd42BwX9YFJHZnBB3H0XCw iat-mode=1" - ], - "snowflake" : [ - "snowflake 192.0.2.3:80 2B280B23E1107BB62ABFC40DDCC8824814F80A72 fingerprint=2B280B23E1107BB62ABFC40DDCC8824814F80A72 url=https://1098762253.rsc.cdn77.org/ fronts=app.datapacket.com,www.datapacket.com ice=stun:stun.epygi.com:3478,stun:stun.uls.co.za:3478,stun:stun.voipgate.com:3478,stun:stun.mixvoip.com:3478,stun:stun.telnyx.com:3478,stun:stun.hot-chilli.net:3478,stun:stun.fitauto.ru:3478,stun:stun.m-online.net:3478 utls-imitate=hellorandomizedalpn", - "snowflake 192.0.2.4:80 8838024498816A039FCBBAB14E6F40A0843051FA fingerprint=8838024498816A039FCBBAB14E6F40A0843051FA url=https://1098762253.rsc.cdn77.org/ fronts=app.datapacket.com,www.datapacket.com ice=stun:stun.epygi.com:3478,stun:stun.uls.co.za:3478,stun:stun.voipgate.com:3478,stun:stun.mixvoip.com:3478,stun:stun.telnyx.com:3478,stun:stun.hot-chilli.net:3478,stun:stun.fitauto.ru:3478,stun:stun.m-online.net:3478 utls-imitate=hellorandomizedalpn" - ] - } -} - ===================================== projects/tor-expert-bundle/transports.json ===================================== @@ -0,0 +1,22 @@ +{ + "lyrebird": { + "protocols": [ + "meek_lite", + "obfs2", + "obfs3", + "obfs4", + "scramblesuit", + "webtunnel" + ], + "path": "${pt_path}lyrebird${pt_extension}" + }, + "snowflake": { + "protocols": ["snowflake"], + "path": "${pt_path}lyrebird${pt_extension}" + }, + "conjure": { + "protocols": ["conjure"], + "path": "${pt_path}conjure-client${pt_extension}", + "arguments": ["-registerURL", "https://registration.refraction.network/api"] + } +} View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/0… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/0… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/tor-browser] Pushed new branch tor-browser-153.8.0esr-16.0-1
by Dan Ballard (@dan) 19 Nov '26

19 Nov '26
Dan Ballard pushed new branch tor-browser-153.8.0esr-16.0-1 at The Tor Project / Applications / Tor Browser -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/tree/tor-brows… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/mullvad-browser] Pushed new tag FIREFOX_153_8_0esr_BUILD1
by Dan Ballard (@dan) 19 Nov '26

19 Nov '26
Dan Ballard pushed new tag FIREFOX_153_8_0esr_BUILD1 at The Tor Project / Applications / Mullvad Browser -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/tree/FIREF… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/tor-browser] Pushed new tag FIREFOX_153_8_0esr_BUILD1
by Dan Ballard (@dan) 19 Nov '26

19 Nov '26
Dan Ballard pushed new tag FIREFOX_153_8_0esr_BUILD1 at The Tor Project / Applications / Tor Browser -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/tree/FIREFOX_1… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/mullvad-browser][mullvad-browser-153.7.0esr-16.0-1] 2 commits: fixup! Mullvad Browser Strings
by morgan (@morgan) 19 Nov '26

19 Nov '26
morgan pushed to branch mullvad-browser-153.7.0esr-16.0-1 at The Tor Project / Applications / Mullvad Browser Commits: 1b1be8d8 by june wilde at 2026-11-19T14:40:47+00:00 fixup! Mullvad Browser Strings - - - - - 0905ed17 by june wilde at 2026-11-19T14:40:48+00:00 fixup! MB 594: Add Quad9 resolution guidance to about:neterror - - - - - 3 changed files: - toolkit/content/aboutNetError.html - toolkit/locales/en-US/toolkit/global/mullvad-browser.ftl - toolkit/themes/shared/aboutNetError.css Changes: ===================================== toolkit/content/aboutNetError.html ===================================== @@ -61,7 +61,12 @@ </p> </div> <p data-l10n-id="neterror-dns-not-found-trr-third-party-warning2"></p> - <p data-l10n-id="mullvad-quad9-france-dns-error-warning"></p> + <moz-message-bar + id="mullvadQuad9DNSInfo" + type="" + data-l10n-id="mullvad-quad9-france-dns-error-warning" + data-l10n-attrs="heading,message" + ></moz-message-bar> </div> <p id="tlsVersionNotice" hidden=""></p> ===================================== toolkit/locales/en-US/toolkit/global/mullvad-browser.ftl ===================================== @@ -58,5 +58,6 @@ mullvad-doh-notification-settings-button = ## DNS over HTTPS migration notification for french quad9 users -# The first sentence should be wrapped in '<strong>' and '</strong>'. -mullvad-quad9-france-dns-error-warning = 🇫🇷 <strong>Are you in France?</strong> You might need to change your DNS provider to Cloudflare in the DNS settings. +mullvad-quad9-france-dns-error-warning = + .heading = 🇫🇷 Are you in France? + .message = You might need to change your DNS provider to Cloudflare in the DNS settings. ===================================== toolkit/themes/shared/aboutNetError.css ===================================== @@ -185,6 +185,12 @@ button:disabled { margin-block-end: var(--space-large); } +#mullvadQuad9DNSInfo { + --message-bar-background-color: var(--background-color-information); + --message-bar-icon-background-color: var(--background-color-information); + --message-bar-icon-color: var(--icon-color-information); +} + /* Felt Privacy v1 LARGER SCREEN! */ @media -moz-pref("security.certerrors.felt-privacy-v1") { .felt-privacy-body { View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/d1… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/d1… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/mullvad-browser][mullvad-browser-156.0a1-17.0-2] 2 commits: fixup! Mullvad Browser Strings
by morgan (@morgan) 19 Nov '26

19 Nov '26
morgan pushed to branch mullvad-browser-156.0a1-17.0-2 at The Tor Project / Applications / Mullvad Browser Commits: f93c5c12 by june wilde at 2026-11-18T21:27:54-08:00 fixup! Mullvad Browser Strings - - - - - f18b8e3a by june wilde at 2026-11-18T21:29:21-08:00 fixup! MB 594: Add Quad9 resolution guidance to about:neterror - - - - - 3 changed files: - toolkit/content/aboutNetError.html - toolkit/locales/en-US/toolkit/global/mullvad-browser.ftl - toolkit/themes/shared/aboutNetError.css Changes: ===================================== toolkit/content/aboutNetError.html ===================================== @@ -71,7 +71,12 @@ </p> </div> <p data-l10n-id="neterror-dns-not-found-trr-third-party-warning2"></p> - <p data-l10n-id="mullvad-quad9-france-dns-error-warning"></p> + <moz-message-bar + id="mullvadQuad9DNSInfo" + type="" + data-l10n-id="mullvad-quad9-france-dns-error-warning" + data-l10n-attrs="heading,message" + ></moz-message-bar> </div> <p id="tlsVersionNotice" hidden=""></p> ===================================== toolkit/locales/en-US/toolkit/global/mullvad-browser.ftl ===================================== @@ -58,5 +58,6 @@ mullvad-doh-notification-settings-button = ## DNS over HTTPS migration notification for french quad9 users -# The first sentence should be wrapped in '<strong>' and '</strong>'. -mullvad-quad9-france-dns-error-warning = 🇫🇷 <strong>Are you in France?</strong> You might need to change your DNS provider to Cloudflare in the DNS settings. +mullvad-quad9-france-dns-error-warning = + .heading = 🇫🇷 Are you in France? + .message = You might need to change your DNS provider to Cloudflare in the DNS settings. ===================================== toolkit/themes/shared/aboutNetError.css ===================================== @@ -244,6 +244,12 @@ button:disabled { margin-block-end: var(--space-large); } +#mullvadQuad9DNSInfo { + --message-bar-background-color: var(--background-color-information); + --message-bar-icon-background-color: var(--background-color-information); + --message-bar-icon-color: var(--icon-color-information); +} + /* Felt Privacy v1 LARGER SCREEN! */ @media -moz-pref("security.certerrors.felt-privacy-v1") { .felt-privacy-body { View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/40… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/40… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/tor-browser-build][main] Bug 41931: Refactor our patch to hfsplus-tools.
by Pier Angelo Vendrame (@pierov) 19 Nov '26

19 Nov '26
Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build Commits: 293435a3 by Pier Angelo Vendrame at 2026-11-19T13:39:09+01:00 Bug 41931: Refactor our patch to hfsplus-tools. With the toolchain update, our patch to hfsplus-tools did not build anymore because of a type mismatch. So, we took this opportunity to improve it, and use the volume creation time rather than the volume name to generate the UUID. That way, different releases will have a different UUID, which seems more correct for its purpose. The creation time was already there, but it used the current time. It worked because we use faketime for the DMG creation, but faketime is the last resort, having a CLI argument or an environment variable is a better solution, therefore we update our patch also to introduce one. Sadly, it is not enough to remove the dependency on faketime because other tools have the same behavior. - - - - - 4 changed files: - projects/browser/ddmg.sh - projects/hfsplus-tools/newfs_hfs.diff - tools/signing/ddmg.sh - tools/signing/functions Changes: ===================================== projects/browser/ddmg.sh ===================================== @@ -20,7 +20,7 @@ directories=$(find "$src_dir" -type d | wc -l) # Give some room to breathe size=$(echo $(($fileblocks + $directories)) | awk '{print int($1 * 1.1)}') dd if=/dev/zero of="$hfsfile" bs=4096 count=$size -newfs_hfs -v "[% c('var/display_name') %]" "$hfsfile" +newfs_hfs -v "[% c('var/display_name') %]" -t [% c('timestamp') %] "$hfsfile" pushd [% src %] ===================================== projects/hfsplus-tools/newfs_hfs.diff ===================================== @@ -23,16 +23,64 @@ diff '--color=auto' -Naur diskdev_cmds-540.1.linux3_orig/newfs_hfs.tproj/makehfs #include <sys/vmmeter.h> #endif -@@ -571,8 +571,10 @@ - /* Adjust free blocks to reflect everything we have allocated. */ +@@ -572,7 +572,18 @@ InitVH(hfsparams_t *defaults, UInt64 sec hp->freeBlocks -= blocksUsed; -- /* Generate and write UUID for the HFS+ disk */ + /* Generate and write UUID for the HFS+ disk */ - GenerateVolumeUUID(&newVolumeUUID); -+ /* Use a deterministic UUID for reproducibility */ -+ memset(&newVolumeUUID, 0, sizeof(newVolumeUUID)); -+ strncpy(&newVolumeUUID, defaults->volumeName, sizeof(newVolumeUUID)); -+ ++ /* ++ * createDate is a 32-bit integer, so spread its value around with ++ * https://rosettacode.org/wiki/Pseudo-random_numbers/Splitmix64 ++ */ ++ { ++ uint64_t z = defaults->createDate + 0x9e3779b97f4a7c15; ++ z = (z ^ (z >> 30)) * 0xbf58476d1ce4e5b9; ++ z = (z ^ (z >> 27)) * 0x94d049bb133111eb; ++ z = z ^ (z >> 31); ++ newVolumeUUID.value[0] = (uint32_t)(z >> 32); ++ newVolumeUUID.value[1] = (uint32_t)z; ++ } finderInfoUUIDPtr = (VolumeUUID *)(&hp->finderInfo[24]); finderInfoUUIDPtr->v.high = OSSwapHostToBigInt32(newVolumeUUID.v.high); finderInfoUUIDPtr->v.low = OSSwapHostToBigInt32(newVolumeUUID.v.low); +diff '--color=auto' -rupN diskdev_cmds-540.1.linux3.orig/newfs_hfs.tproj/newfs_hfs.c diskdev_cmds-540.1.linux3/newfs_hfs.tproj/newfs_hfs.c +--- diskdev_cmds-540.1.linux3_orig/newfs_hfs.tproj/newfs_hfs.c 2026-11-18 09:58:18.436848140 +0100 ++++ diskdev_cmds-540.1.linux3/newfs_hfs.tproj/newfs_hfs.c 2026-11-18 10:21:37.246871550 +0100 +@@ -191,7 +191,7 @@ main(argc, argv) + progname = *argv; + + +- while ((ch = getopt(argc, argv, "G:J:D:M:N:PU:hsb:c:i:n:v:")) != EOF) ++ while ((ch = getopt(argc, argv, "G:J:D:M:N:PU:hsb:c:i:n:v:t:")) != EOF) + switch (ch) { + case 'G': + gGroupID = a_gid(optarg); +@@ -286,6 +286,10 @@ main(argc, argv) + #endif + break; + ++ case 't': ++ createtime = (time_t)strtoull(optarg, NULL, 10); ++ break; ++ + case '?': + default: + usage(); +@@ -763,7 +767,8 @@ hfs_newfs(char *device) + #endif + + dip.sectorOffset = 0; +- time(&createtime); ++ if (!createtime) ++ time(&createtime); + + /* Check to see if the disk is too big */ + u_int64_t secsize = (u_int64_t) dip.sectorSize; +@@ -1270,6 +1275,7 @@ void usage() + fprintf(stderr, "\t\tc=size (catalog b-tree)\n"); + fprintf(stderr, "\t\ta=size (attributes b-tree)\n"); + fprintf(stderr, "\t-v volume name (in ascii or UTF-8)\n"); ++ fprintf(stderr, "\t-t creation time (UNIX timestamp)\n"); + + fprintf(stderr, " examples:\n"); + fprintf(stderr, "\t%s -v Untitled /dev/rdisk0s7 \n", progname); ===================================== tools/signing/ddmg.sh ===================================== @@ -28,6 +28,7 @@ hfsfile="$dmg_tmpdir/tbb-uncompressed.dmg" export LD_PRELOAD=$faketime_path export FAKETIME="$browser_release_date" +release_timestamp=$(date -u -d "$browser_release_date" +%s) echo "Starting: " $(basename $dest_file) @@ -37,7 +38,7 @@ directories=$(find "$src_dir" -type d | wc -l) # Give some room to breathe size=$(echo $(($fileblocks + $directories)) | awk '{print int($1 * 1.1)}') dd if=/dev/zero of="$hfsfile" bs=4096 count=$size -newfs_hfs -v "$volume_label" "$hfsfile" +newfs_hfs -v "$volume_label" -t "$release_timestamp" "$hfsfile" cd $src_dir ===================================== tools/signing/functions ===================================== @@ -92,7 +92,7 @@ function setup_dmg_tools { "You can build it with:" \ " ./rbm/rbm build --target no_containers libdmg-hfsplus" \ "See var/deps in projects/libdmg-hfsplus/config for the list of build dependencies" - local hfstools_file="$script_dir/../../out/hfsplus-tools/hfsplus-tools-540.1.linux3-2acaa4.tar.zst" + local hfstools_file="$script_dir/../../out/hfsplus-tools/hfsplus-tools-540.1.linux3-722a62.tar.zst" test -f "$hfstools_file" || \ exit_error "$hfstools_file is missing." \ "You can build it with:" \ View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/2… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/2… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
[Git][tpo/applications/tor-browser][tor-browser-156.0a1-17.0-2] 2 commits: fixup! BB 43564: Modify ./mach bootstrap for Base Browser
by brizental (@brizental) 19 Nov '26

19 Nov '26
brizental pushed to branch tor-browser-156.0a1-17.0-2 at The Tor Project / Applications / Tor Browser Commits: 47aef959 by Beatriz Rizental at 2026-11-19T09:13:13-03:00 fixup! BB 43564: Modify ./mach bootstrap for Base Browser Bug 45396: Fetch artifacts from our toolchains when building artifact builds. - - - - - 928c2e1e by Beatriz Rizental at 2026-11-19T09:13:14-03:00 fixup! BB 43564: Modify ./mach bootstrap for Base Browser Bug 45396: Remove not about bootstrap being experimental. It's not anymore. - - - - - 6 changed files: - python/mozboot/mozboot/bootstrap.py - python/mozbuild/mozbuild/artifacts.py - python/mozbuild/mozbuild/tbbutils.py - python/mozbuild/mozbuild/test/python.toml - + python/mozbuild/mozbuild/test/test_tbb_artifacts.py - python/mozbuild/mozbuild/test/test_tbbutils.py Changes: ===================================== python/mozboot/mozboot/bootstrap.py ===================================== @@ -54,10 +54,6 @@ Tor Browser for Android frontends, or the GeckoView Java API. They are unsuitabl for those working on C++ code. For more information see: https://firefox-source-docs.mozilla.org/contributing/build/artifact_builds.…. -# Note to Tor Browser developers - -This is still highly experimental. Expect bugs! - Please choose the version of Tor Browser you want to build (see note above): %s Your choice: """ ===================================== python/mozbuild/mozbuild/artifacts.py ===================================== @@ -60,6 +60,7 @@ from mozpack.files import FileFinder, JarFinder, TarFinder from mozpack.mozjar import JarReader, JarWriter from mozpack.packager.unpack import UnpackFinder +from mozbuild import tbbutils from mozbuild.artifact_builds import JOB_CHOICES from mozbuild.artifact_cache import ArtifactCache from mozbuild.dirutils import ensureParentDir, mkdir @@ -1795,6 +1796,23 @@ https://firefox-source-docs.mozilla.org/contributing/vcs/mercurial_bundles.… ) return 1 + def install_from_tor_project_artifacts(self, distdir): + version = self._substs["MOZ_APP_VERSION"] + urls = tbbutils.find_artifact_urls(self._job, version, self._artifact_job) + if not urls: + raise ValueError(f"Unable to fetch list of artifacts for job {self._job}") + for url in urls: + self.log( + logging.INFO, + "artifact", + {"url": url}, + "Installing Tor Project artifact from {url}", + ) + if self.install_from_url(url, distdir): + return 1 + + return 0 + def install_from_recent(self, distdir): hg_pushheads = self._find_pushheads() return self._install_from_hg_pushheads(hg_pushheads, distdir) @@ -1905,7 +1923,7 @@ https://firefox-source-docs.mozilla.org/contributing/vcs/mercurial_bundles.… if var in os.environ: return self.install_from_task(os.environ[var], distdir) - return self.install_from_recent(distdir) + return self.install_from_tor_project_artifacts(distdir) def clear_cache(self): self.log(logging.INFO, "artifact", {}, "Deleting cached artifacts and caches.") ===================================== python/mozbuild/mozbuild/tbbutils.py ===================================== @@ -14,7 +14,7 @@ def list_files_http(url): links = [] for href in re.findall(r'<a href="([^"]+)"', html): - if href == "../": + if href == "../" or href.startswith(("?", "/")): continue if "tor-expert-bundle-aar" in href: @@ -125,3 +125,45 @@ def get_artifact_path(url, artifact, target, prefix="", log=lambda *args, **kwar matches = filter_files(files_per_os, target.cpu) return f"{url}/{artifact}/{matches[0]}" if matches else None + + +TOR_PROJECT_TOOLCHAINS_URL = ( + "https://nightlies.tbb.torproject.org/nightly-builds/toolchains" +) +TOR_PROJECT_BROWSER_PREFIX = "tb" + +# Mozilla job name prefix -> Tor Project toolchain target. Order matters: more +# specific prefixes must come before the prefixes they start with. +TOR_PROJECT_TOOLCHAIN_TARGETS = ( + ("android-arm", "android-armeabi-v7a"), + ("android-aarch64", "android-arm64-v8a"), + ("android-x86_64", "android-x86_64"), + ("linux64-aarch64", "linux-aarch64"), + ("linux64", "linux-x86_64"), + ("macosx64-aarch64", "macos-aarch64"), + ("macosx64", "macos-x86_64"), + ("win32", "windows-i686"), + ("win64", "windows-x86_64"), +) + + +def get_artifacts_dir_url(job, version): + for prefix, target in TOR_PROJECT_TOOLCHAIN_TARGETS: + if job.startswith(prefix): + return f"{TOR_PROJECT_TOOLCHAINS_URL}/{TOR_PROJECT_BROWSER_PREFIX}-{version}/{target}" + raise ValueError(f"No Tor Project toolchain artifacts for {version}, {job}") + + +def find_artifact_urls(job, version, artifact_job): + """ + Return the URLs of the artifacts available for ``job`` that + ``artifact_job`` (a mozbuild.artifacts.ArtifactJob) wants to install. + """ + url = get_artifacts_dir_url(job, version) + artifacts = [ + {"name": f"public/build/{name}"} for name in list_files_http(f"{url}/") + ] + return [ + f"{url}/{artifact.rsplit('/', 1)[-1]}" + for artifact in artifact_job.find_candidate_artifacts(artifacts) + ] ===================================== python/mozbuild/mozbuild/test/python.toml ===================================== @@ -137,6 +137,9 @@ subsuite = "mozbuild" ["test_site_dependency_extractor.py"] +["test_tbb_artifacts.py"] +subsuite = "base-browser" + ["test_tbbutils.py"] subsuite = "base-browser" ===================================== python/mozbuild/mozbuild/test/test_tbb_artifacts.py ===================================== @@ -0,0 +1,80 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import tempfile +from unittest import TestCase, mock + +import mozunit + +from mozbuild import tbbutils +from mozbuild.artifacts import Artifacts +from mozbuild.tbbutils import TOR_PROJECT_BROWSER_PREFIX, TOR_PROJECT_TOOLCHAINS_URL + +BASE_URL = ( + f"{TOR_PROJECT_TOOLCHAINS_URL}/{TOR_PROJECT_BROWSER_PREFIX}-140.0/linux-x86_64" +) + + +class TestTorProjectArtifacts(TestCase): + def setUp(self): + self._tmpdir = tempfile.TemporaryDirectory() + self.addCleanup(self._tmpdir.cleanup) + self.log = mock.Mock() + self.artifacts = self._make_artifacts("linux64-opt") + + def _make_artifacts(self, job): + return Artifacts( + tree=None, + substs={"MOZ_APP_VERSION": "140.0"}, + defines={}, + job=job, + log=self.log, + cache_dir=self._tmpdir.name, + git="git", + ) + + def test_install_from_tor_project_artifacts(self): + with mock.patch.object( + tbbutils, + "find_artifact_urls", + return_value=[f"{BASE_URL}/target.tar.xz", f"{BASE_URL}/target.zip"], + ), mock.patch.object( + self.artifacts, "install_from_url", return_value=0 + ) as install_from_url: + self.assertEqual( + self.artifacts.install_from_tor_project_artifacts("dist"), 0 + ) + + self.assertEqual( + install_from_url.call_args_list, + [ + mock.call(f"{BASE_URL}/target.tar.xz", "dist"), + mock.call(f"{BASE_URL}/target.zip", "dist"), + ], + ) + + def test_install_from_tor_project_artifacts_stops_on_failure(self): + with mock.patch.object( + tbbutils, + "find_artifact_urls", + return_value=[f"{BASE_URL}/a.tar.xz", f"{BASE_URL}/b.tar.xz"], + ), mock.patch.object( + self.artifacts, "install_from_url", return_value=1 + ) as install_from_url: + self.assertEqual( + self.artifacts.install_from_tor_project_artifacts("dist"), 1 + ) + self.assertEqual(install_from_url.call_count, 1) + + def test_install_from_tor_project_artifacts_no_artifacts(self): + with mock.patch.object( + tbbutils, "find_artifact_urls", return_value=[] + ), mock.patch.object(self.artifacts, "install_from_url") as install_from_url: + with self.assertRaises(ValueError): + self.artifacts.install_from_tor_project_artifacts("dist") + install_from_url.assert_not_called() + + +if __name__ == "__main__": + mozunit.main() ===================================== python/mozbuild/mozbuild/test/test_tbbutils.py ===================================== @@ -4,9 +4,14 @@ from unittest.mock import MagicMock, patch import mozunit +from mozbuild.artifacts import LinuxArtifactJob from mozbuild.tbbutils import ( + TOR_PROJECT_BROWSER_PREFIX, + TOR_PROJECT_TOOLCHAINS_URL, + find_artifact_urls, get_artifact_index, get_artifact_path, + get_artifacts_dir_url, list_files_http, ) @@ -140,6 +145,8 @@ class TestListFilesHttp(unittest.TestCase): html = b""" <html><body> <a href="../">Parent</a> + <a href="?C=N;O=D">Name</a> + <a href="/nightly-builds/toolchains/">Up</a> <a href="file1.zip">file1</a> <a href="file2.zip">file2</a> </body></html> @@ -173,5 +180,58 @@ class TestListFilesHttp(unittest.TestCase): ) +class TestTorProjectArtifacts(unittest.TestCase): + def test_get_artifacts_dir_url_for_each_job(self): + expected_targets = { + "android-arm-opt": "android-armeabi-v7a", + "android-aarch64-opt": "android-arm64-v8a", + "android-x86_64-debug": "android-x86_64", + "linux64-opt": "linux-x86_64", + "linux64-aarch64-opt": "linux-aarch64", + "macosx64-opt": "macos-x86_64", + "macosx64-aarch64-debug": "macos-aarch64", + "win32-opt": "windows-i686", + "win64-debug": "windows-x86_64", + } + for job, target in expected_targets.items(): + with self.subTest(job=job): + self.assertEqual( + get_artifacts_dir_url(job, "140.0"), + f"{TOR_PROJECT_TOOLCHAINS_URL}/{TOR_PROJECT_BROWSER_PREFIX}-140.0/{target}", + ) + + def test_get_artifacts_dir_url_unknown_job(self): + with self.assertRaises(ValueError): + get_artifacts_dir_url("freebsd64-opt", "140.0") + + @patch("mozbuild.tbbutils.list_files_http") + def test_find_artifact_urls(self, mock_list_files_http): + mock_list_files_http.return_value = [ + "mozharness.zip", + "target.common.tests.tar.zst", + "target.mochitest.tests.tar.zst", + "target.tar.xz", + "target.xpt_artifacts.zip", + ] + + urls = find_artifact_urls("linux64-opt", "140.0", LinuxArtifactJob()) + + base = f"{TOR_PROJECT_TOOLCHAINS_URL}/{TOR_PROJECT_BROWSER_PREFIX}-140.0/linux-x86_64" + mock_list_files_http.assert_called_once_with(f"{base}/") + self.assertEqual( + urls, + [ + f"{base}/target.common.tests.tar.zst", + f"{base}/target.tar.xz", + f"{base}/target.xpt_artifacts.zip", + ], + ) + + @patch("mozbuild.tbbutils.list_files_http", return_value=["target.tar.xz"]) + def test_find_artifact_urls_missing_tests(self, _): + with self.assertRaises(ValueError): + find_artifact_urls("linux64-opt", "140.0", LinuxArtifactJob()) + + if __name__ == "__main__": mozunit.main() View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/bf25a4… -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/bf25a4… You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
1 0
0 0
  • ← Newer
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 2142
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.