[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: b2sum: Produce generic binaries and enable t
From: |
guix-commits |
Subject: |
branch master updated: gnu: b2sum: Produce generic binaries and enable tuning. |
Date: |
Fri, 18 Mar 2022 13:01:51 -0400 |
This is an automated email from the git hooks/post-receive script.
lfam pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 386adb6df0 gnu: b2sum: Produce generic binaries and enable tuning.
386adb6df0 is described below
commit 386adb6df0e00e7170df0cdfaf0e04c38d0f3e11
Author: Leo Famulari <leo@famulari.name>
AuthorDate: Fri Mar 18 12:56:28 2022 -0400
gnu: b2sum: Produce generic binaries and enable tuning.
* gnu/packages/crypto.scm (b2sum)[arguments]: Add 'de-tune' phase.
[properties]: Mark the package as tunable.
---
gnu/packages/crypto.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index cf8bc111e1..63be51f86a 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -873,6 +873,11 @@ BLAKE.")
(add-before 'build 'change-directory
(lambda _
(chdir "b2sum")))
+ ;; Produce generic binaries
+ (add-after 'change-directory 'de-tune
+ (lambda _
+ (substitute* "makefile"
+ ((" -march=native") ""))))
(delete 'configure)))) ; No ./configure script
(home-page "https://www.blake2.net/")
(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.")
;; You may also choose to redistribute this program as Apache 2.0 or the
;; 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
(package
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: b2sum: Produce generic binaries and enable tuning.,
guix-commits <=