unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#65869] [PATCH] gnu: xxhash: Update to 0.8.2.
       [not found] <4c5c02439c0e000ad59bbf512d5326fa249b726f.1694447118.git.hendursaga.ref@aol.com>
@ 2023-09-11 15:47 ` Hendursaga via Guix-patches via
  2023-10-05 15:13   ` Mathieu Othacehe
  0 siblings, 1 reply; 2+ messages in thread
From: Hendursaga via Guix-patches via @ 2023-09-11 15:47 UTC (permalink / raw)
  To: 65869

* gnu/packages/digest.scm (xxhash): Update to 0.8.2.
[arguments]: Use Gexp.
<#:phases>: Remove 'fix-man-page-links phase.
[home-page]: Update URL.
---
 gnu/packages/digest.scm | 58 ++++++++++++++++++-----------------------
 1 file changed, 26 insertions(+), 32 deletions(-)

diff --git a/gnu/packages/digest.scm b/gnu/packages/digest.scm
index 481771804b..9ed3b895a2 100644
--- a/gnu/packages/digest.scm
+++ b/gnu/packages/digest.scm
@@ -69,46 +69,40 @@ (define-public wyhash
 (define-public xxhash
   (package
     (name "xxhash")
-    ;; XXX Remove the 'fix-man-page-links phase when updating.
-    (version "0.8.1")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/Cyan4973/xxHash")
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32 "1h6080lvcr5mpbvy4fhb4i7wvhpy72nrixk3djmpai4hxq41hsnr"))))
+    (version "0.8.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/Cyan4973/xxHash")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1ljsmxcxfyxzxzk435qnjiyy441bgrxirn285lymyvv39nrwz1wj"))))
     (build-system gnu-build-system)
     (arguments
-     (list #:make-flags
-           #~(list #$(string-append "CC=" (cc-for-target))
-                   #$(match (or (%current-target-system)
-                                (%current-system))
-                       ;; Detect vector instruction set at run time.
-                       ((or "i686-linux" "x86_64-linux") "DISPATCH=1")
-                       (_ "DISPATCH=0"))
-                   "XXH_FORCE_MEMORY_ACCESS=1" ; improved performance with GCC
-                   (string-append "prefix=" (assoc-ref %outputs "out")))
-           #:phases
-           #~(modify-phases %standard-phases
-               (add-after 'unpack 'fix-man-page-links
-                 ;; https://github.com/Cyan4973/xxHash/issues/647
-                 (lambda _
-                   (substitute* "Makefile"
-                     (("ln -sf \\$\\(MAN\\)")
-                      "ln -sf xxhsum.1"))))
-               (delete 'configure))))         ; no configure script
-    (home-page "https://cyan4973.github.io/xxHash/")
+     (list #:make-flags #~(list #$(string-append "CC="
+                                                 (cc-for-target))
+                                #$(match (or (%current-target-system)
+                                             (%current-system))
+                                    ;; Detect vector instruction set at run time.
+                                    ((or "i686-linux" "x86_64-linux")
+                                     "DISPATCH=1")
+                                    (_ "DISPATCH=0"))
+                                "XXH_FORCE_MEMORY_ACCESS=1" ;improved performance with GCC
+                                (string-append "prefix="
+                                               (assoc-ref %outputs "out")))
+           #:phases #~(modify-phases %standard-phases
+                        (delete 'configure)))) ;no configure script
+    (home-page "https://xxhash.com/")
     (synopsis "Extremely fast hash algorithm")
     (description
      "xxHash is an extremely fast non-cryptographic hash algorithm.  It works
 at speeds close to RAM limits, and comes in both 32- and 64-bit flavours.
 The code is highly portable, and hashes of the same length are identical on all
 platforms (both big and little endian).")
-    (license (list license:bsd-2        ; xxhash library (xxhash.[ch])
-                   license:gpl2+))))    ; xxhsum.c
+    (license (list license:bsd-2 ;xxhash library (xxhash.[ch])
+                   license:gpl2+)))) ;xxhsum.c
 
 (define-public python-xxhash
   (package

base-commit: 2eb6df537c36da8bf8e81ff698421f6fb1bfd1ab
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [bug#65869] [PATCH] gnu: xxhash: Update to 0.8.2.
  2023-09-11 15:47 ` [bug#65869] [PATCH] gnu: xxhash: Update to 0.8.2 Hendursaga via Guix-patches via
@ 2023-10-05 15:13   ` Mathieu Othacehe
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Othacehe @ 2023-10-05 15:13 UTC (permalink / raw)
  To: Hendursaga; +Cc: 65869


Hey,

> -           #~(list #$(string-append "CC=" (cc-for-target))
> -                   #$(match (or (%current-target-system)
> -                                (%current-system))
> -                       ;; Detect vector instruction set at run time.
> -                       ((or "i686-linux" "x86_64-linux") "DISPATCH=1")
> -                       (_ "DISPATCH=0"))

Could you conserve the original indentation here, not to introduce
noise?

> -                   "XXH_FORCE_MEMORY_ACCESS=1" ; improved performance with GCC
> -                   (string-append "prefix=" (assoc-ref %outputs "out")))

> +                                (string-append "prefix="
> +                                               (assoc-ref %outputs "out")))

You can use #$output here.

Could you please send an updated version :)?

Thanks,

Mathieu




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-05 15:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4c5c02439c0e000ad59bbf512d5326fa249b726f.1694447118.git.hendursaga.ref@aol.com>
2023-09-11 15:47 ` [bug#65869] [PATCH] gnu: xxhash: Update to 0.8.2 Hendursaga via Guix-patches via
2023-10-05 15:13   ` Mathieu Othacehe

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).