civodul pushed a commit to branch master
in repository guix.

commit 93f61013dbf3702554b55087517c916a0835dc1b
Author: Ludovic Courtès <[email protected]>
AuthorDate: Thu Apr 24 10:37:14 2025 +0200

    gnu: libssh: Restore support for cross-compilation.
    
    Partly fixes <https://issues.guix.gnu.org/78029>.
    
    Fixes a regression introduced in
    b12d44dd5e35ac236bf3fbb5619b9c8c2f42c902 where cross-compiling would no
    longer work due to CMocka not being found.
    
    * gnu/packages/ssh.scm (libssh)[arguments]: Pass “-DUNIT_TESTING=ON”
    only when (%current-target-system) is #f.
    
    Reported-by: Yelninei <[email protected]>
    Change-Id: I9c7af784eabb2ae1d6022b134e0252a1e2952bd4
---
 gnu/packages/ssh.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ssh.scm b/gnu/packages/ssh.scm
index 829dd4ec0c..0b1ebfad56 100644
--- a/gnu/packages/ssh.scm
+++ b/gnu/packages/ssh.scm
@@ -161,7 +161,9 @@ file names.
      (list
       #:configure-flags
       #~(list "-DWITH_GCRYPT=ON"
-              "-DUNIT_TESTING=ON"
+              #$@(if (%current-target-system)
+                     #~()
+                     #~("-DUNIT_TESTING=ON"))
               #$@(if (and (%current-target-system)
                           (not (target-64bit?)))
                      #~((string-append

Reply via email to