[Bug 2028196] [NEW] Current libzstd fails tests when using dpkg-buildpackage

Markus Ueberall 2028196 at bugs.launchpad.net
Wed Jul 19 21:00:49 UTC 2023


Public bug reported:

When trying to rebuild the current libzstd package on mantic, "dpkg-
buildpackage -us -uc -ui -F" fails to execute the tests.

Output (excerpt):

[...]
d=6
steps=40
split=100
Save dictionary of size 112640 into file dictionary 
make[3]: Leaving directory '/build/packages/libzstd-1.5.5+dfsg2/tests'
make[2]: *** [Makefile:85: test] Error 2
make[2]: Leaving directory '/build/packages/libzstd-1.5.5+dfsg2'
        rm -fr -- /tmp/user/0/dh-xdg-rundir-UWiev_89
dh_auto_test: error: make -j4 test returned exit code 2
make[1]: *** [debian/rules:71: build] Error 255
make[1]: Leaving directory '/build/packages/libzstd-1.5.5+dfsg2'
make: *** [debian/rules:34: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


To reproduce:

# arch
x86_64
# debootstrap --arch=amd64 mantic ubuntu-mantic-amd64
[...]
# schroot -c ubuntu-mantic-amd64 -u root -d /build/packages -s /bin/bash
[...]
(ubuntu-mantic-amd64)root at ...# cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu mantic main restricted universe
deb http://archive.ubuntu.com/ubuntu mantic-updates main restricted universe
deb http://archive.ubuntu.com/ubuntu mantic-security main restricted universe
deb http://archive.ubuntu.com/ubuntu mantic-backports main restricted universe
deb http://archive.ubuntu.com/ubuntu mantic-proposed main restricted universe
deb-src http://archive.ubuntu.com/ubuntu mantic main restricted universe
deb-src http://archive.ubuntu.com/ubuntu mantic-updates main restricted universe
deb-src http://archive.ubuntu.com/ubuntu mantic-security main restricted universe
deb-src http://archive.ubuntu.com/ubuntu mantic-backports main restricted universe
deb-src http://archive.ubuntu.com/ubuntu mantic-proposed main restricted universe
(ubuntu-mantic-amd64)root at ...# apt update; apt upgrade
(ubuntu-mantic-amd64)root at ...# export EDITOR=nano; apt install --yes build-essential devscripts lintian diffutils patch patchutils quilt ca-certificates git equivs less nano
(ubuntu-mantic-amd64)root at ...# apt-get build-dep libzstd1
(ubuntu-mantic-amd64)root at ...# dget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/libzstd/1.5.5+dfsg2-1ubuntu2/libzstd_1.5.5+dfsg2-1ubuntu2.dsc
(ubuntu-mantic-amd64)root at ...# dpkg-source -x lib*.dsc
(ubuntu-mantic-amd64)root at ...# cd libzstd-1.5.5+dfsg2/
(ubuntu-mantic-amd64)root at ...# script ../libzstd-1.5.5+dfsg2_mantic_amd64_log01-gcc13
(ubuntu-mantic-amd64)root at ...# gcc --version | head -1
gcc (Ubuntu 13.1.0-8ubuntu1) 13.1.0
(ubuntu-mantic-amd64)root at ...# dpkg-buildpackage -us -uc -ui -F
[...] (see above)

TBH, I find it rather *unnerving* that the tests fail on Mantic given that this package/compressor is used for e.g. compressing all sorts of archives/backups. (Originally, I tried to rebuild this on Focal and Jammy on x86_64/aarch64/riscv64 hosts and attributed the error shown above to outdated packages, but the above environment is IMHO "as clean as it gets" and the tests *still* fail.)
Shouldn't "dpkg-buildpackage" /always/ work (including passing the enclosed tests) when you rebuild an 
officially released package from the main repository in a clean environment when all dependencies are in place?
Of course, I see that (a) the two weeks old build log (from https://launchpad.net/ubuntu/+source/libzstd/1.5.5+dfsg2-1ubuntu2/+build/26392646) does not show the above error and (b) Mantic isn't a stable release--but this begs the question, whether something changed in the meantime and whether this also might affect the use of the current zstd build.

(The previous package version 1.5.4+dfsg2-5 builds flawlessly in all
aforementioned environments.)

** Affects: libzstd (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Complete transcript generated using "script""
   https://bugs.launchpad.net/bugs/2028196/+attachment/5687237/+files/libzstd-1.5.5+dfsg2_mantic_amd64_log01-gcc13.gz

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libzstd in Ubuntu.
https://bugs.launchpad.net/bugs/2028196

Title:
  Current libzstd fails tests when using dpkg-buildpackage

Status in libzstd package in Ubuntu:
  New

Bug description:
  When trying to rebuild the current libzstd package on mantic, "dpkg-
  buildpackage -us -uc -ui -F" fails to execute the tests.

  Output (excerpt):

  [...]
  d=6
  steps=40
  split=100
  Save dictionary of size 112640 into file dictionary 
  make[3]: Leaving directory '/build/packages/libzstd-1.5.5+dfsg2/tests'
  make[2]: *** [Makefile:85: test] Error 2
  make[2]: Leaving directory '/build/packages/libzstd-1.5.5+dfsg2'
          rm -fr -- /tmp/user/0/dh-xdg-rundir-UWiev_89
  dh_auto_test: error: make -j4 test returned exit code 2
  make[1]: *** [debian/rules:71: build] Error 255
  make[1]: Leaving directory '/build/packages/libzstd-1.5.5+dfsg2'
  make: *** [debian/rules:34: binary] Error 2
  dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

  
  To reproduce:

  # arch
  x86_64
  # debootstrap --arch=amd64 mantic ubuntu-mantic-amd64
  [...]
  # schroot -c ubuntu-mantic-amd64 -u root -d /build/packages -s /bin/bash
  [...]
  (ubuntu-mantic-amd64)root at ...# cat /etc/apt/sources.list
  deb http://archive.ubuntu.com/ubuntu mantic main restricted universe
  deb http://archive.ubuntu.com/ubuntu mantic-updates main restricted universe
  deb http://archive.ubuntu.com/ubuntu mantic-security main restricted universe
  deb http://archive.ubuntu.com/ubuntu mantic-backports main restricted universe
  deb http://archive.ubuntu.com/ubuntu mantic-proposed main restricted universe
  deb-src http://archive.ubuntu.com/ubuntu mantic main restricted universe
  deb-src http://archive.ubuntu.com/ubuntu mantic-updates main restricted universe
  deb-src http://archive.ubuntu.com/ubuntu mantic-security main restricted universe
  deb-src http://archive.ubuntu.com/ubuntu mantic-backports main restricted universe
  deb-src http://archive.ubuntu.com/ubuntu mantic-proposed main restricted universe
  (ubuntu-mantic-amd64)root at ...# apt update; apt upgrade
  (ubuntu-mantic-amd64)root at ...# export EDITOR=nano; apt install --yes build-essential devscripts lintian diffutils patch patchutils quilt ca-certificates git equivs less nano
  (ubuntu-mantic-amd64)root at ...# apt-get build-dep libzstd1
  (ubuntu-mantic-amd64)root at ...# dget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/libzstd/1.5.5+dfsg2-1ubuntu2/libzstd_1.5.5+dfsg2-1ubuntu2.dsc
  (ubuntu-mantic-amd64)root at ...# dpkg-source -x lib*.dsc
  (ubuntu-mantic-amd64)root at ...# cd libzstd-1.5.5+dfsg2/
  (ubuntu-mantic-amd64)root at ...# script ../libzstd-1.5.5+dfsg2_mantic_amd64_log01-gcc13
  (ubuntu-mantic-amd64)root at ...# gcc --version | head -1
  gcc (Ubuntu 13.1.0-8ubuntu1) 13.1.0
  (ubuntu-mantic-amd64)root at ...# dpkg-buildpackage -us -uc -ui -F
  [...] (see above)

  TBH, I find it rather *unnerving* that the tests fail on Mantic given that this package/compressor is used for e.g. compressing all sorts of archives/backups. (Originally, I tried to rebuild this on Focal and Jammy on x86_64/aarch64/riscv64 hosts and attributed the error shown above to outdated packages, but the above environment is IMHO "as clean as it gets" and the tests *still* fail.)
  Shouldn't "dpkg-buildpackage" /always/ work (including passing the enclosed tests) when you rebuild an 
  officially released package from the main repository in a clean environment when all dependencies are in place?
  Of course, I see that (a) the two weeks old build log (from https://launchpad.net/ubuntu/+source/libzstd/1.5.5+dfsg2-1ubuntu2/+build/26392646) does not show the above error and (b) Mantic isn't a stable release--but this begs the question, whether something changed in the meantime and whether this also might affect the use of the current zstd build.

  (The previous package version 1.5.4+dfsg2-5 builds flawlessly in all
  aforementioned environments.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libzstd/+bug/2028196/+subscriptions




More information about the foundations-bugs mailing list