summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2021-02-03 20:16:13 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2021-02-04 22:07:36 +0100
commita8487d4df8f0df2161305c8971c3cd0f2eb393d7 (patch)
tree154a226ea6381372107b14637020b34d33b7f32a /gnu/packages
parent81763bc101f6e708afb3083dafbac92f8692dc39 (diff)
downloadguix-a8487d4df8f0df2161305c8971c3cd0f2eb393d7.tar.gz
gnu: tor: Update to 0.4.4.7 [mitigates DoSes].
* gnu/packages/tor.scm (tor): Update to 0.4.4.7.
[arguments]: Add a ‘skip-practracker’ phase.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/tor.scm13
1 files changed, 10 insertions, 3 deletions
diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm
index 1ce53a967b..677d31eb14 100644
--- a/gnu/packages/tor.scm
+++ b/gnu/packages/tor.scm
@@ -54,19 +54,26 @@
 (define-public tor
   (package
     (name "tor")
-    (version "0.4.4.6")
+    (version "0.4.4.7")
     (source (origin
              (method url-fetch)
              (uri (string-append "https://dist.torproject.org/tor-"
                                  version ".tar.gz"))
              (sha256
               (base32
-               "1p0zpqmbskygx0wmiijhprg8r45n2wqbbjl7kv4gbb83b0alq5az"))))
+               "1vh5kdx7s74il8a6gr7jydbpv0an01nla4y2r8w7h33z2wk2jv9j"))))
     (build-system gnu-build-system)
     (arguments
      `(#:configure-flags
        (list "--enable-lzma"
-             "--enable-zstd")))
+             "--enable-zstd")
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'skip-practracker
+           ;; This is a style linter.  It doesn't get to throw fatal errors.
+           (lambda _
+             (setenv "TOR_DISABLE_PRACTRACKER" "set")
+             #t)))))
     (native-inputs
      `(("pkg-config" ,pkg-config)
        ("python" ,python)))             ; for tests