guix_mirror_bot pushed a commit to branch master
in repository guix.

commit eb893dbdd5ceae1e51c8b611e122e717f974a5c4
Author: Jean-Baptiste Note <[email protected]>
AuthorDate: Thu Sep 18 17:41:03 2025 +0200

    gnu: hashcat: Remove nonfree unrar bundled dependency.
    
    Fixes: guix/guix#2784.
    
    * gnu/packages/password-utils.scm (hashcat)[source]: Remove "deps/unrar"
    from compiled directories.
    [arguments]<#:make-flags>: Add "ENABLE_UNRAR=0".
    
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/password-utils.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index fd43198994..566e484915 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -1684,7 +1684,8 @@ your online accounts makes it necessary.")
               (snippet
                ;; TODO: Unbundle LZMA-SDK as well
                #~(for-each delete-file-recursively
-                           '("deps/zlib" "deps/xxHash" 
"deps/OpenCL-Headers")))))
+                           '("deps/unrar" ;; nonfree license
+                             "deps/zlib" "deps/xxHash" 
"deps/OpenCL-Headers")))))
     (inputs (list minizip opencl-headers xxhash zlib))
     (build-system gnu-build-system)
     (arguments
@@ -1692,6 +1693,7 @@ your online accounts makes it necessary.")
            #:make-flags #~(list (string-append "PREFIX=" #$output)
                                 (string-append "AR=" #$(ar-for-target))
                                 (string-append "CC=" #$(cc-for-target))
+                                (string-append "ENABLE_UNRAR=0")
                                 (string-append "USE_SYSTEM_ZLIB=1")
                                 (string-append "USE_SYSTEM_OPENCL=1")
                                 (string-append "USE_SYSTEM_XXHASH=1"))

Reply via email to