gnu: b2sum: Produce generic binaries and enable tuning.
* gnu/packages/crypto.scm (b2sum)[arguments]: Add 'de-tune' phase. [properties]: Mark the package as tunable.master
parent
2fb4304ee7
commit
386adb6df0
|
@ -873,6 +873,11 @@ BLAKE.")
|
||||||
(add-before 'build 'change-directory
|
(add-before 'build 'change-directory
|
||||||
(lambda _
|
(lambda _
|
||||||
(chdir "b2sum")))
|
(chdir "b2sum")))
|
||||||
|
;; Produce generic binaries
|
||||||
|
(add-after 'change-directory 'de-tune
|
||||||
|
(lambda _
|
||||||
|
(substitute* "makefile"
|
||||||
|
((" -march=native") ""))))
|
||||||
(delete 'configure)))) ; No ./configure script
|
(delete 'configure)))) ; No ./configure script
|
||||||
(home-page "https://www.blake2.net/")
|
(home-page "https://www.blake2.net/")
|
||||||
(synopsis "BLAKE2 checksum tool")
|
(synopsis "BLAKE2 checksum tool")
|
||||||
|
@ -880,7 +885,11 @@ BLAKE.")
|
||||||
SHA-1, SHA-2, and SHA-3, yet is at least as secure as SHA-3.")
|
SHA-1, SHA-2, and SHA-3, yet is at least as secure as SHA-3.")
|
||||||
;; You may also choose to redistribute this program as Apache 2.0 or the
|
;; You may also choose to redistribute this program as Apache 2.0 or the
|
||||||
;; OpenSSL license. See 'b2sum/b2sum.c' in the source distribution.
|
;; OpenSSL license. See 'b2sum/b2sum.c' in the source distribution.
|
||||||
(license license:cc0))))
|
(license license:cc0)
|
||||||
|
;; There is a significant speedup when the compiler generates
|
||||||
|
;; instructions tuned to the CPU of the running machine:
|
||||||
|
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51198#22
|
||||||
|
(properties '((tunable? . #true))))))
|
||||||
|
|
||||||
(define-public rhash
|
(define-public rhash
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue