janneke pushed a commit to branch core-packages-team
in repository guix.

commit 319c841179ebd3f8e97f1122c5e0a26e3be5b9b0
Author: Janneke Nieuwenhuizen <jann...@gnu.org>
AuthorDate: Thu Dec 5 16:19:03 2024 +0100

    gnu: torsocks: Fix build with gcc-14.
    
    * gnu/packages/tor.scm (torsocks)[arguments]: Use G-Expressions.  Add
    CFLAGS to #:configure-flags to relax gcc-14's strictness.
    
    Change-Id: I57a955a49665cd37208d5760a8d4c745d15c866b
---
 gnu/packages/tor.scm | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm
index b22daf3140..a3b53cfd3d 100644
--- a/gnu/packages/tor.scm
+++ b/gnu/packages/tor.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2022 Jim Newsome <jnews...@torproject.org>
 ;;; Copyright © 2025 Danial Behzadi <dani.be...@ubuntu.com>
 ;;; Copyright © 2025 Sharlatan Hellseher <sharlata...@gmail.com>
+;;; Copyright © 2024 Janneke Nieuwenhuizen <jann...@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -183,13 +184,15 @@ This package only provides a client to the Tor 
Network.")))
     (native-inputs
      (list autoconf automake libtool))
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'build 'absolutize
-           (lambda* (#:key inputs #:allow-other-keys)
-             (substitute* "src/bin/torsocks"
-               (("getcap=.*")
-                (string-append "getcap=" (which "getcap") "\n"))))))))
+     (list
+      #:configure-flags
+      #~'("CFLAGS=-g -O2 -Wno-error=implicit-function-declaration")
+      #:phases #~(modify-phases %standard-phases
+                   (add-after 'build 'absolutize
+                     (lambda* (#:key inputs #:allow-other-keys)
+                       (substitute* "src/bin/torsocks"
+                         (("getcap=.*")
+                          (string-append "getcap=" (which "getcap") 
"\n"))))))))
     (home-page "https://www.torproject.org/";)
     (synopsis "Transparently route an application's traffic through Tor")
     (description

Reply via email to