Skip to content

Update imports to htslib/samtools/bcftools 1.22 #1343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jmarshall
Copy link
Member

@jmarshall jmarshall commented Jun 2, 2025

Import upstream htslib/samtools/bcftools 1.22. Significant additional considerations:

  • Omit the htslib/ref_cache/* code just as we omit htslib/bgzip.c et al. The configure script contains probes for the benefit of ref-cache and absolutely requires libcurl to be available, so we hard-code --disable-ref-cache when invoking configure — as the source code is not present anyway.

  • Continue to take care to preserve removing the regeneration of htscodecs.mk from htslib/Makefile.

The HTSlib 1.22 release contains significant operational changes — it emits CRAM 3.1 by default, and no longer consults EBI's reference server by default — so we will likely observe how the dust settles from those changes before merging this update.

jmarshall added 3 commits June 2, 2025 22:21
Omit the htslib/ref_cache/ source code, and hard-code a configure
--disable-ref-cache argument accordingly.

BCFtools's mpileup2/* is currently used only by plugins/vrfs.c which
we don't wrap, so we can (for now) omit this mpileup2/* code too.
For each package:

rm -rf htslib;   python3 devtools/import.py htslib   .../htslib-1.22
rm -rf samtools; python3 devtools/import.py samtools .../samtools-1.22
rm -rf bcftools; python3 devtools/import.py bcftools .../bcftools-1.22

Take care to preserve the #define additions to bcftools/regidx.h.
(Don't bother adding {sam,bcf}tools/htslib-1.22/{LICENSE,**/README}.)

Also take care to preserve removing the regeneration of htscodecs.mk
from htslib/Makefile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant