gnu: mash: Update to 2.3 and fix build with gcc-14.

* gnu/packages/bioinformatics.scm (mash): Update to 2.3.
[arguments]<#:phases>{fix-includes}: Add file to substitutions.
* gnu/packages/patches/mash-add-missing-headers.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register new file.

Fixes: guix/guix#2986
Change-Id: I6a37a6b65b0abe9b72663bcafbc034dac0cff0c0
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Trevor Arjeski 2025-09-23 12:26:36 +03:00 committed by Andreas Enge
parent 8c7d8cbd2f
commit 052fab5f0b
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3
3 changed files with 33 additions and 4 deletions

View file

@ -10463,7 +10463,7 @@ technology. Its features include:
(define-public mash
(package
(name "mash")
(version "2.1")
(version "2.3")
(source (origin
(method git-fetch)
(uri (git-reference
@ -10472,12 +10472,13 @@ technology. Its features include:
(file-name (git-file-name name version))
(sha256
(base32
"049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
"00x4pvxwp3isf0qign1qmxwxc9rwzn5b3igjw9hyn3vx17bsx92q"))
(modules '((guix build utils)))
(snippet
;; Delete bundled kseq.
;; TODO: Also delete bundled murmurhash and open bloom filter.
'(delete-file "src/mash/kseq.h"))))
'(delete-file "src/mash/kseq.h"))
(patches (search-patches "mash-add-missing-headers.patch"))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f ; No tests.
@ -10496,7 +10497,8 @@ technology. Its features include:
(lambda _
(substitute* '("src/mash/Sketch.cpp"
"src/mash/CommandFind.cpp"
"src/mash/CommandScreen.cpp")
"src/mash/CommandScreen.cpp"
"src/mash/CommandTaxScreen.cpp")
(("^#include \"kseq\\.h\"")
"#include \"htslib/kseq.h\""))))
(add-after 'fix-includes 'use-c++14