Current libzstd fails tests when using dpkg-buildpackage

Bug #2028196 reported by Markus Ueberall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libzstd (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

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@...# 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@...# apt update; apt upgrade
(ubuntu-mantic-amd64)root@...# export EDITOR=nano; apt install --yes build-essential devscripts lintian diffutils patch patchutils quilt ca-certificates git equivs less nano
(ubuntu-mantic-amd64)root@...# apt-get build-dep libzstd1
(ubuntu-mantic-amd64)root@...# 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@...# dpkg-source -x lib*.dsc
(ubuntu-mantic-amd64)root@...# cd libzstd-1.5.5+dfsg2/
(ubuntu-mantic-amd64)root@...# script ../libzstd-1.5.5+dfsg2_mantic_amd64_log01-gcc13
(ubuntu-mantic-amd64)root@...# gcc --version | head -1
gcc (Ubuntu 13.1.0-8ubuntu1) 13.1.0
(ubuntu-mantic-amd64)root@...# 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.)

Revision history for this message
Markus Ueberall (ueberall) wrote :
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.