[Bug 1983255] Re: samtools-legacy misses 'Remove compressBound assertions' (PR #1258) fix

Frank Heimes 1983255 at bugs.launchpad.net
Wed Aug 10 11:51:36 UTC 2022


Subscribing ubuntu-sponsors for sponsoring the SRU for focal....

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1983255

Title:
  samtools-legacy misses 'Remove compressBound assertions' (PR #1258)
  fix

Status in samtools-legacy package in Ubuntu:
  In Progress

Bug description:
  SRU Justification:
  ==================

  [Impact]

   * zlib requires a fix for 'compressBound() returns an incorrect result
     on z15' (described at LP#1961427 in more detail).

   * But the above patch expects that another fix 'Remove compressBound
     assertions' (PR #1258) is in place for all bgzf.c implementations.

   * The packages htslib and bedtools are covered in LP#1961427.

   * Unfortunately more 'embedded' or better 'bundled' bgzf.c implementations
     exist, that are difficult to find upfront, hence the zlib proposed migration
     now pointed to libbio-samtools-perl.

   * libbio-samtools-perl is linked to libbam-dev from samtools-legacy;
     and samtools-legacy contains another bgzf.c implementation.
   
   * Hence PR #1258 is needed to fix bgzf.c as part of samtools-legacy.

   * And libbio-samtools-perl needs then rebuild to like against the
     fixed libbam-dev.

   * PR #1258 removes the Assert lines and modifies bgzf_compress.

  [Test Plan]

  * An IBM zSystem (LPAR, z/VM guest or KVM virtual machine)
    with Ubuntu Server 20.04 (or 22.04 or 22.10).

  * The easiest way to test this is based on the autopkgtest of the affected
    package, here 'samtools-legacy' (here a manual autopkgtest execution):
        autopkgtest --no-built-binaries --apt-pocket=proposed --apt-upgrade \
        --shell-fail --setup-commands="apt -y -q install \
        software-properties-common; apt-key adv --keyserver \
        hkp://keyserver.ubuntu.com:80 --recv-keys \
        73E9E91F16C43C45C621AE3EDF0A28DEFAFEB468; add-apt-repository -y \
        ppa:fheimes/lp1983255; apt update; apt -y upgrade; apt install -y \
        libbam-dev=0.1.19+dfsg-5ubuntu1" samtools-legacy_0.1.19+dfsg-5ubuntu1.dsc \
        -- lxd autopkgtest/ubuntu/kinetic/s390x
        (for focal and jammy adjust the versions accordingly)

   * Without PR #1258 in place, the error: 'bgzf.c:<line-number>: bgzf_open:
     Assertion `compressBound(BGZF_BLOCK_SIZE) < BGZF_MAX_BLOCK_SIZE'
     will occur.

   * If the above test is successful one can rebuild 'libbio-samtools-perl',
     and run the autopkgtest of 'libbio-samtools-perl' on top.

  [Where problems could occur]

   * The bgzf.c implementation as it is in 'samtools-legacy' is very outdated
     and the code was not touched for close to 10 years.

   * Hence PR #1258 could not directly be applied, and a backport was
  needed.

   * Issues could be that checks (due to missing asserts) are now
  insufficient,

   * or (un-)compress does not work properly anymore, due to the changes in
     bgzf_compress.

   * But the autopkgtest(s) will be helpful to ensure proper
  functionality.

  [Other Info]
   
   * The different bgzf.c versions that are bundled are almost all
     slightly different implementations, hence the backport of PR #1258
     needs to be a bit adjusted here and there.
  __________

  samtools-legacy is the source package for libbam-dev,
  which is used by libbio-samtools-perl (autopkgtests),
  that is for example triggered by a zlib update (proposed-transition).

  zlib requires a fix for 'compressBound() returns an incorrect result
  on z15' LP#1961427 that again requires the 'Remove compressBound
  assertions' (PR #1258) fix in all bgzf.c implementations, like htslib,
  bedtools or even samtools-legacy.

  Problematic is that the code differs quite a bit from the one where
  the PR#1258 was designed for and that is used in the htslib or
  bedtools package (no bgzf_hopen - looks a bit out of date), so it does
  not apply cleanly.

  According to upstream 'https://github.com/lh3/samtools-legacy' the project
  is "For testing only." and marked as "DON'T USE!" and it's last update
  is from Nov 9, 2013.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samtools-legacy/+bug/1983255/+subscriptions




More information about the Ubuntu-sponsors mailing list