[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/24: gnu: tor: Use G-expressions.
From: |
guix-commits |
Subject: |
05/24: gnu: tor: Use G-expressions. |
Date: |
Sat, 7 May 2022 16:57:43 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit cc796dc3207cfc31a6e605cc7a974a9e67feb120
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun May 1 02:00:00 2022 +0200
gnu: tor: Use G-expressions.
* gnu/packages/tor.scm (tor)[arguments]: Rewrite using (guix gexp).
(tor-client)[arguments]: SUBSTITUTE-KEYWORD-ARGUMENTS accordingly.
---
gnu/packages/tor.scm | 47 ++++++++++++++++++++++++-----------------------
1 file changed, 24 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm
index ca694cc90c..abc33fb68b 100644
--- a/gnu/packages/tor.scm
+++ b/gnu/packages/tor.scm
@@ -28,6 +28,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages tor)
+ #:use-module (guix gexp)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix utils)
@@ -67,27 +68,27 @@
"0i2v3a2h7d0bjn64pi1c6h2x15lb53plf71xwkbkb51bnmc124ry"))))
(build-system gnu-build-system)
(arguments
- `(#:configure-flags
- (list "--enable-lzma"
- "--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")))
- ,@(if (or (target-aarch64?)
- (target-ppc32?))
- ;; Work around upstream issue relating to sandboxing and
glibc-2.33.
- ;; This is similar to the issue the tor-sandbox-i686 patch fixes
- ;; but for other architectures.
- ;; https://gitlab.torproject.org/tpo/core/tor/-/issues/40381
- ;; https://gitlab.torproject.org/tpo/core/tor/-/merge_requests/446
- `((add-before 'check 'adjust-test-suite
+ (list #:configure-flags
+ #~(list "--enable-lzma"
+ "--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 _
- (substitute* "src/test/test_include.sh"
- ((".*Sandbox 1.*") "")))))
- '()))))
+ (setenv "TOR_DISABLE_PRACTRACKER" "set")))
+ #$@(if (or (target-aarch64?)
+ (target-ppc32?))
+ ;; Work around upstream issue relating to sandboxing and
glibc-2.33.
+ ;; This is similar to the issue the tor-sandbox-i686
patch fixes
+ ;; but for other architectures.
+ ;;
https://gitlab.torproject.org/tpo/core/tor/-/issues/40381
+ ;;
https://gitlab.torproject.org/tpo/core/tor/-/merge_requests/446
+ `((add-before 'check 'adjust-test-suite
+ (lambda _
+ (substitute* "src/test/test_include.sh"
+ ((".*Sandbox 1.*") "")))))
+ '()))))
(native-inputs
(list pkg-config python)) ; for tests
(inputs
@@ -120,9 +121,9 @@ instead.")
(name "tor-client")
(arguments
(substitute-keyword-arguments (package-arguments tor)
- ((#:configure-flags flags)
- (append flags
- '("--disable-module-relay")))))
+ ((#:configure-flags flags #~'())
+ #~(append #$flags
+ (list "--disable-module-relay")))))
(synopsis "Client to the anonymous Tor network")
(description
"Tor protects you by bouncing your communications around a distributed
- branch master updated (5320ba2054 -> d2c5754ef1), guix-commits, 2022/05/07
- 02/24: gnu: enblend-enfuse: Remove input labels., guix-commits, 2022/05/07
- 03/24: gnu: enblend-enfuse: Fix build., guix-commits, 2022/05/07
- 05/24: gnu: tor: Use G-expressions.,
guix-commits <=
- 18/24: gnu: lziprecover: Update to 1.23., guix-commits, 2022/05/07
- 12/24: gnu: nsd: Update to 4.4.0., guix-commits, 2022/05/07
- 13/24: gnu: mcelog: Update to 181., guix-commits, 2022/05/07
- 01/24: gnu: Remove linux-libre@4.4 configuration files., guix-commits, 2022/05/07
- 14/24: gnu: rasdaemon: Update to 0.6.8., guix-commits, 2022/05/07
- 23/24: gnu: plzip: Update to 1.10., guix-commits, 2022/05/07
- 17/24: gnu: audit: Update to 3.0.8., guix-commits, 2022/05/07
- 07/24: gnu: epson-inkjet-printer-escpr: Use HTTPS home page., guix-commits, 2022/05/07
- 08/24: gnu: epson-inkjet-printer-escpr: Use new style., guix-commits, 2022/05/07
- 10/24: gnu: gptfdisk: Use new input style., guix-commits, 2022/05/07