Closed tillea closed 2 years ago
I forgot about this, thanks. Io_lib should definitely update to use the newer function names.
In the commentary for the patch, it suggests the correct solution is adding these functions to the public header files for htscodecs.
At the time (IIRC) htscodecs was adopted as a formal part of Samtools et al, we also renamed these functions to not be so generic and make it more robust when htslib is used in conjunction with other packages (see https://github.com/samtools/htscodecs/issues/36). That's quite a common scenario, and we've hit issues before with lack of sensible name-spacing of external symbols. Removing them from the header file is essentially a warning that they're going, and likely in a future release will be culled permanently, while retaining ABI compatibility (but I didn't think that through). Perhaps this would have been better handled with compiler-specific flags to mark them as deprecated, but given the transitory nature I hope for now we can just ignore the change there and deal with it properly whenever we next need to do an ABI-breaking change.
I'll incorporate the patch, along with an additional update. Many thanks.
Hi, as Bernhard Übelacker nicely explained in a Debian bug report io_lib either needs a patch or probably better htscodecs2 should expose the said functions explicitly. Kind regards, Andreas.