Text of issues.guix.gnu.org › 42380 as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

[WIP] gnu: Add torbrowser-unbundle.

André 6 years ago André 6 years ago André 6 years ago Ludovic 6 years ago André 6 years ago Ludovic 6 years ago Efraim 6 years ago Raghav 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago André 6 years ago Xinglu 5 years ago Leo 5 years ago Ludovic 5 years ago André 5 years ago André 5 years ago André 5 years ago André 5 years ago André 5 years ago André 5 years ago André 5 years ago André 5 years ago André 5 years ago André 5 years ago André 5 years ago André 5 years ago Ludovic 5 years ago Maxime 5 years ago Maxime 5 years ago André 5 years ago Clément 3 years ago André 3 years ago André 3 years ago André 3 years ago Clément 3 years ago Clément 3 years ago Clément 3 years ago André 3 years ago Clément 3 years ago André 3 years ago Clément 3 years ago Anonymousemail 3 years ago Clément 3 years ago Clément 3 years ago [WIP] gnu: Add torbrowser-unbundle.

Done Details 9 participants Clément Lassieur Efraim Flashner Leo Famulari Ludovic Courtès Maxime Devos André Batista Anonymousemail Xinglu Chen Raghav Gururajan Owner unassigned Submitted by André Batista Severity normal Debbugs page Hello Guix! The patch bellow adds a torbrowser-unbundle variable, but it needs a bit of working before merging into master. I've inserted many comments on the code regarding issues which need attention and questions that remained.

I've decided to send this early notice so I can ask some questions and get criticism before I go too deep on the wrong direction. As the name implies it does not bundle tor and to use it, you need to have a properly configured system instance. You also need to configure a ControlPort and a HashedControlPassword if you want to be able to get new identities while browsing and if you don't want to keep seeing a warning on startup page.

It will create/change permissions on ${HOME}/Data and use the native Downloads dir. It does not have bundled fonts, so you will be fingerprintable on levels bellow safest. It does not have support for obfs4 bridges yet. There is no startup script for now, you are advised to invoke it with '--class "Tor Browser"'. Now for the questions: - Should it keep unbundled? If so, should we try to unbundle the https-everywhere and noscript extensions? - Is it acceptable to use to use the noscript .xpi, instead of building?

Upstream just grabs it from addons.mozilla. There does not appear to be blobs and the GPL full text is inside it. - Should we try change the app name at build time or is it enough to adapt the name of the startup script (which is not the for now, but is certainly needed)? - Any other things that I've been blind to? If you don't have time to review the code, but has processing power available, build it with rounds=2 or try to cross compile for i686 and comment back.

Thanks, From 2a9d31c9422de3d7486da6c2ef3e15c3496c7e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Batista?= <nandre@riseup.net> Date: Wed, 15 Jul 2020 17:24:04 -0300 Subject: [PATCH] gnu: Add torbrowser-unbundle. To: guix-patches@gnu.org * gnu/packages/tor.scm (torbrowser-unbundle): New variable. --- gnu/packages/tor.scm | 634 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 633 insertions(+), 1 deletion(-) Toggle diff (437 lines) diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm index c852c54a5b..528a528403 100644 --- a/gnu/packages/tor.scm +++ b/gnu/packages/tor.scm @@ -49,7 +49,49 @@ #:use-module (gnu packages qt) #:use-module (gnu packages autotools) #:use-module (gnu packages tls) - #:use-module (gnu packages w3m)) + #:use-module (gnu packages w3m) + ;; New flags start here.

Verify if they are all needed. + #:use-module ((srfi srfi-1) #:hide (zip)) + #:use-module (ice-9 match) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix gexp) + #:use-module (guix store) + #:use-module (guix monads) + #:use-module (guix build-system cargo) + #:use-module (guix build-system trivial) + #:use-module (gnu packages admin) + #:use-module (gnu packages audio) + #:use-module (gnu packages autotools) + #:use-module (gnu packages bash) + #:use-module (gnu packages databases) + #:use-module (gnu packages glib) + #:use-module (gnu packages gtk) + #:use-module (gnu packages gnome) + #:use-module (gnu packages libcanberra) + #:use-module (gnu packages cups) + #:use-module (gnu packages kerberos) + #:use-module (gnu packages perl) + #:use-module (gnu packages compression) + #:use-module (gnu packages fontutils) + #:use-module (gnu packages libreoffice) ;for hunspell + #:use-module (gnu packages image) + #:use-module (gnu packages libffi) + #:use-module (gnu packages pulseaudio) + #:use-module (gnu packages node) + #:use-module (gnu packages xorg) + #:use-module (gnu packages gl) + #:use-module (gnu packages assembly) + #:use-module (gnu packages rust) + #:use-module (gnu packages rust-apps) + #:use-module (gnu packages llvm) + #:use-module (gnu packages nss) + #:use-module (gnu packages icu4c) + #:use-module (gnu packages video) + #:use-module (gnu packages xiph) + #:use-module (gnu packages xdisorg) + #:use-module (gnu packages readline) + #:use-module (gnu packages vim) ; for xxd + #:use-module (gnu packages sqlite)) (define-public tor (package @@ -324,3 +366,593 @@ statistics and status reports on: Potential client and exit connections are scrubbed of sensitive information.") (license license:gpl3+))) + +;; Imported from gnuzilla.scm, make it public there? +(define* (computed-origin-method gexp-promise hash-algo hash + #:optional (name "source") + #:key (system (%current-system)) + (guile (default-guile))) + "Return a derivation that executes the G-expression that results +from forcing GEXP-PROMISE." + (mlet %store-monad ((guile (package->derivation guile system))) + (gexp->derivation (or name "computed-origin") + (force gexp-promise) + #:graft? #f ;nothing to graft + #:system system + #:guile-for-build guile))) + +(define %torbrowser-version "68.10.0esr-9.5-1") +(define %torbrowser-build-id "20200709000000") ;must be of the form YYYYMMDDhhmmss + +;; (Un)fortunatly TorBrowser has it's own reproducible build system - RBM - which +;; automates the build process for them and compiles TorBrowser from a range of +;; repositories and produces a range of tarballs for different architectures and +;; locales.

So we need to nit-pick what is needed for guix and produce our own +;; tarball. See https://gitweb.torproject.org/builders/tor-browser-build.git/projects/\ +;; {tor-browser,firefox}/{build,config} for the rationale applied here. When built from its +;; unpatched repo, the 'mozconfig' is different and it errors out on missing +;; torbutton source code. If we patch 'toolkit/moz.build', it compiles successfuly +;; but the browser does not run and even if it ran, it would be missing most of +;; its funcionality.

See also the Hacking on TorBrowser document for a high level +;; introduction (https://trac.torproject.org/projects/tor/wiki/doc/TorBrowser/Hacking). +;; +;; WARNING: For now it still lacks the bundled fonts, obfs4 bridge and locales. +;; If used on level below safest, the browser accessible fonts are fingerprintable. +;; On safest, it doesn't seem to be distinguishable from upstream bundle according +;; to https://panopticlick.eff.org.

To access some features, users need to +;; configure the ControlPort and HashedControlPassword in system torrc and set +;; TOR_CONTROL_PASSWD accordingly before launching the Browser (ControlPort defaults to +;; 9051). Without this, the browser will work (try https://check.torproject.org) but +;; user is presented with a startup page that tells something is wrong. +(define torbrowser-source + (let* ((torbrowser-commit "75c2bb720d4ceb76231e8ecc3455754bf05ba19b") + (torbrowser-version %torbrowser-version) + (upstream-torbrowser

The rest of this page is on the live site.