-
Notifications
You must be signed in to change notification settings - Fork 83
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
Update to htslib 1.10.2 #184
Merged
johanneskoester
merged 81 commits into
rust-bio:htslib-1.10.2
from
brainstorm:htslib-1.10.2
Mar 17, 2020
Merged
Changes from 22 commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
d3db4fd
Pull 1.10.2 submodule. Initial pass on i32->i64 type conversion, will…
brainstorm bb34638
Fixes issue #109 while I'm at it, long hanging fruit fix
brainstorm 1636ef5
Fix compression levels
juliangehring 18e8e57
Merge pull request #1 from juliangehring/fix-compression
brainstorm 9c2a6d6
Going through https://github.com/samtools/htslib/blob/develop/README.…
brainstorm 115c634
Repoint submodule to upstream release tag
brainstorm 6bf1760
Switch from rust-bio hosted htslib to upstream's samtools htslib.
brainstorm 83c0656
Try to amend submodule
brainstorm 2173a9e
Handle submodules manually on TravisCI, since it is failing now: http…
brainstorm d7c5355
Odd balls that would need review marked with XXX. New htslib seems to…
brainstorm dac8565
Add curl-sys crate for hplugin_curl, aws s3 et al
brainstorm 5678f70
Add conditional libcurl compilation flags
brainstorm bad400b
Be nice with cargo fmt [ci skip]
brainstorm 9e1a315
Try installing libcurl meta-package instead of the openssl dependent …
brainstorm 4c9fddf
Does not work with libcurl-dev metapackage: https://travis-ci.org/rus…
brainstorm 417b672
Add matrix compile support for TravisCI, I would like to know why it …
brainstorm 22fae28
PPA source no longer needed for ubuntu bionic? [ci skip]
brainstorm 1a19c69
Bionic packages htslib with gnutls instead of openssl: https://packag…
brainstorm 6eb623a
sed is not gsed on OSX... not entirely sure this substitution is 100%…
brainstorm 5c31eb8
Add libssl-dev to the mix for the openssl-sys: https://travis-ci.org/…
brainstorm d3eba71
Add build-essential in hopes to fix libcurl issue, incorporate https:…
brainstorm eb2ae94
Add curl on default features for hts-sys
brainstorm 92df799
Point to the right htslib upstream repo, thanks @dlaehnemann [skip ci]
brainstorm 4389e3f
Appease OSX musl-cross toolchain requirements: https://travis-ci.org/…
brainstorm 4f64d69
TravisCI timesout installing brew deps: https://travis-ci.org/rust-bi…
brainstorm 39010b1
Try workaround for https://twitter.com/braincode/status/1226103002550…
brainstorm 9fe358b
Do not update homebrew (time intensive), switch from travis_wait to v…
brainstorm 9d2f381
brew install --verbose is not verbose enough for travis, reverting tr…
brainstorm 949499f
Explicitly install system libcurl on linux and osx
brainstorm 850011e
This .cargo/config makes it test right locally: https://github.com/ru…
brainstorm db42104
Cargo.toml missing quote misshap
brainstorm 89608c6
Same linker flags should apply for Linux builds? build-essential not …
brainstorm e534df6
tid is i64 now, CRAM vs BAM test l_data is off by 3 and m_data is off…
brainstorm bbe490f
There should be no need for travis_wait with -v
brainstorm a741700
Debugging htslib structs with @jkbonfield guidance...
brainstorm 29747e5
Disable osx and musl-cross homebrew on the TravisCI matrix since it t…
brainstorm 77d4765
Mystery solved for test_read_cram, testing some of the struct fields,…
brainstorm 4f2c90c
Extract selective CRAM/BAM field comparison to test helper function
brainstorm 6bd85e0
Formatting
brainstorm de35991
Temporarily commenting the hfile format category detection makes .bed…
brainstorm d89c216
Format detection seems to be broken upstream on htslib, see https://g…
brainstorm f5dd07f
Merge branch 'master' into htslib-1.10.2
brainstorm f6d3679
Revert to libcurl4-openssl-dev instead of gnutls. All TravisCI script…
brainstorm 4ffb8fe
Merge github.com:brainstorm/rust-htslib into htslib-1.10.2
brainstorm 6e92156
Bump up curl-sys version
brainstorm 6c9454b
Experimenting musl cross-compilation with rustembedded cross. Ideally…
brainstorm 642ceba
Remove assert_ne since cannot guarantee that l_data is different on a…
brainstorm 7cf834f
Add minimum deps needed for rustembedded cross docker container
brainstorm e6d0131
Run docker in TravisCI, even if it is only supported on linux jobs :/
brainstorm c0dde9a
Add CFLAGS suggested by @nlhepler
brainstorm 571b457
Separate musl from GNU toolchains on Rust cross
brainstorm b10c48f
Bump up bindgen, vendorize openssl, further experimentation with comp…
brainstorm 81ab53c
Deprecate the mixed GNU/MUSL container
brainstorm 7f87d97
Add minimal explanation on how to use the new docker files [ci skip]
brainstorm 20f6fb1
cross 0.2.0 with openssl vendored. Progress but more htslib compile t…
brainstorm 77d06f9
Make sure libzma is present in both containers [ci skip]
brainstorm 47fee89
Focusing on LLVMv8 GNU cross build first, musl will come later on (if…
brainstorm 78c41d2
Two more usize that should be u64
brainstorm 6b79b72
Amend and settle BED header debate
brainstorm 116c3dd
Rename test name accordingly
brainstorm f6f2f64
Transition to cross instead of cargo for builds and tests
brainstorm 8127679
All GNU/clang/llvm8 builds and tests seem to succeed, transitioning t…
brainstorm 2f14727
Remove stray (repeated) musl build
brainstorm 0ca9400
Remove @filoSottile musl-cross homebrew formula since it takes too lo…
brainstorm d0837cf
Experiment with toolchain setup in https://gitlab.com/rust_musl_docke…
brainstorm d218b27
Remove build.rs flags noise and different tests, containers should ha…
brainstorm e293ad3
Indicate dependencies and build flags required for OSX [ci skip].
brainstorm ebd1d2e
enable musl builds
johanneskoester fcbbafc
add libclang
johanneskoester 6882797
minor
johanneskoester e0d1edb
dbg
johanneskoester e97d47a
revert
johanneskoester cecbd4a
dbg
johanneskoester e065263
dbg
johanneskoester 8505cfe
Revert cross/docker madness, bottled up musl-cross myself over here: …
brainstorm 665a38e
Remove .travis.yml
brainstorm 999fa0f
Merge branch 'htslib-1.10.2' of github.com:brainstorm/rust-htslib int…
brainstorm 09aec34
Add in openssl to hts-sys
brainstorm 6042c05
Make clippy boolean logic happy
brainstorm fc84cff
Remove homebrew OSX check since we'll just use rustembedded cross
brainstorm 24f694f
Merge branch 'musl-action' of https://github.com/rust-bio/rust-htslib…
brainstorm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.vscode/ | ||
.idea | ||
*~ | ||
target | ||
Cargo.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "htslib"] | ||
path = hts-sys/htslib | ||
url = https://github.com/rust-bio/htslib.git | ||
url = https://github.com/samtools/htslib.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That line now points to the wrong repo, I'm afraid :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jch-13 for the quick insight but as I pointed out earlier I think that rust-htslib should avoid this antipattern, for the following reasons:
htslib
should be upstreamed anyway, so there's no need to keep a local (outdated) fork that needs to be updated periodically.Hope those make sense? I would definitely like to hear more opinions, perhaps I'm missing very valid reasons to keep that htslib repo/fork around?
Cheers!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's some confusion here. The
repository =
entry in thepackage
section of theCargo.toml
merely points to a place, where more information / documentation can be found about this package. Thus, to accurately reflect howhts-sys
currently points to therust-bio
fork ofhtslib
, it should actually read:However, I think we can revert to actually pointing to the original
htslib
repo (see below for the history of this). Thus, this submodule import should be changed to point to thehtslib 1.10.2
release you are updating the wrapper to and the pointer here should be changed to:However, the current suggested change (
repository = "https://github.com/samtools/rust-htslib.git"
) simply doesn't exist (with therust-
prefix remaining in the repo name).As to the history of this, I did a bit of digging:
This was originally introduced to have a commit applied that was not part of the htslib releases at the time. See for example PR #121 and especially the commit that introduced this. However, if you go over to the htslib repo, you will find that the respective commit
52368d672ce4b33a607688fc987ff396bdce68a1
has been released as ofhtslib 1.10
, see e.g. the1.10
release notes and the responsible htslib pull request 766 which contains this commit. Thus, as part of this update ofrust-htslib
tohtslib 1.10.2
, it should be OK to revert to pointing to the originalsamtools/htslib.git
repo in its release1.10.2
state.Hope, I cleared this up a bit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P.S.: I see that the submodule obviously already points to the correct upstream release tag, so just correct the repository entry with the
rust-
prefix released. And we can now all feel safe about doing this, knowing the history of it all... :DThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Argh, you are absolutely right, thanks @dlaehnemann, sorry @jch-13 for the misunderstanding. I'll amend that right now ;)