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 <andreas@enge.fr>
This commit is contained in:
Jean-Baptiste Note 2025-09-18 17:41:03 +02:00 committed by Andreas Enge
parent 1aa6da547d
commit eb893dbdd5
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -1684,7 +1684,8 @@ your online accounts makes it necessary.")
(snippet (snippet
;; TODO: Unbundle LZMA-SDK as well ;; TODO: Unbundle LZMA-SDK as well
#~(for-each delete-file-recursively #~(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)) (inputs (list minizip opencl-headers xxhash zlib))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
@ -1692,6 +1693,7 @@ your online accounts makes it necessary.")
#:make-flags #~(list (string-append "PREFIX=" #$output) #:make-flags #~(list (string-append "PREFIX=" #$output)
(string-append "AR=" #$(ar-for-target)) (string-append "AR=" #$(ar-for-target))
(string-append "CC=" #$(cc-for-target)) (string-append "CC=" #$(cc-for-target))
(string-append "ENABLE_UNRAR=0")
(string-append "USE_SYSTEM_ZLIB=1") (string-append "USE_SYSTEM_ZLIB=1")
(string-append "USE_SYSTEM_OPENCL=1") (string-append "USE_SYSTEM_OPENCL=1")
(string-append "USE_SYSTEM_XXHASH=1")) (string-append "USE_SYSTEM_XXHASH=1"))