[MDEV-28022] Missing dependency libzstd-dev not available in Debian 9 Created: 2022-02-18  Updated: 2022-03-10  Resolved: 2022-03-10

Status: Closed
Project: MariaDB Server
Component/s: Packaging
Affects Version/s: 10.3.34
Fix Version/s: 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4, 10.8.3

Type: Bug Priority: Major
Reporter: Vlad Bogolin Assignee: Daniel Black
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDBF-41 Milestone 5: Desirable fixes Open

 Description   

There are some missing dependencies for the aarch64-debian-9 builder (https://buildbot.mariadb.org/#/builders/77/builds/7905)

debian/autobake-deb.sh
 in dir /home/buildbot/aarch64-debian-9-deb-autobake/build (timeout 1200 secs)
 watching logfiles {'CMakeCache.txt': './builddir/CMakeCache.txt'}
 argv: [b'debian/autobake-deb.sh']
 environment:
  BUILDMASTER=buildbot.mariadb.org
  BUILDMASTER_PORT=9992
  CCACHE_DIR=/mnt/ccache
  DEB_BUILD_OPTIONS=parallel=4
  HOME=/home/buildbot
  HOSTNAME=d43a6a8f6114
  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  PWD=/home/buildbot/aarch64-debian-9-deb-autobake/build
  WORKERNAME=aarch64-bbw2-docker-debian-9
 using PTY: False
Incrementing changelog and starting build scripts
libdistro-info-perl is not installed, Debian release names are not known.
libdistro-info-perl is not installed, Ubuntu release names are not known.
Creating package version 1:10.4.25+maria~stretch ... 
dpkg-buildpackage: info: source package mariadb-10.4
dpkg-buildpackage: info: source version 1:10.4.25+maria~stretch
dpkg-buildpackage: info: source distribution stretch
dpkg-buildpackage: info: source changed by Otto Kekäläinen <buildbot@d43a6a8f6114>
 dpkg-source -I --before-build build
dpkg-buildpackage: info: host architecture arm64
dpkg-checkbuilddeps: error: Unmet build dependencies: libzstd-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
program finished with exit code 3
elapsedTime=4.765945



 Comments   
Comment by Faustin Lammler [ 2022-02-18 ]

fix provided in https://github.com/MariaDB/mariadb.org-tools/pull/108

Comment by Faustin Lammler [ 2022-02-18 ]

To build >10.7 branch we need libzstd.dev >= 1.1.3 that is unfortunately not available in debian9 (https://packages.debian.org/stretch/libzstd-dev).

The package is available through backports: https://packages.debian.org/stretch-backports/libzstd-dev

Fix: install the bpo version in the docker image.
https://github.com/MariaDB/mariadb.org-tools/pull/108

Comment by Faustin Lammler [ 2022-02-18 ]

danblack can I kindly ask you to double check if this seems OK?

I have just found https://github.com/MariaDB/server/commit/8c5e5e1be9353b90f341aad73cb3d2ed7c405a96 and now I am not sure if we should have done that.

Comment by Daniel Black [ 2022-02-21 ]

Good call on the double check - buildbot.mariadb.org/ci_build_images/debian.Dockerfile adding dependencies will add a runtime dependency (for the rocksdb package) on the backports to the released binaries from them (if we where releasing from them from bb.org).

So yes, revert that part of the commit and keep centos8.

Comment by Faustin Lammler [ 2022-02-21 ]

Ok, thanks danblack. But then it still unclear to me how we need to fix this. I will check with vladbogo what we can do about it. And maybe also try to understand how old BB is building 10.7 on debian9.

Comment by Daniel Black [ 2022-02-22 ]

Revert the addition of libzstd-dev for debian 9.

Comment by Faustin Lammler [ 2022-02-22 ]

> Revert the addition of libzstd-dev for debian 9.

Sure, but this is not going to resolve the buildbot building problem vladbogo what's your take on that?

Comment by Vlad Bogolin [ 2022-02-22 ]

Not sure. I guess that the only possible option is to remove the dependency from the server side. Buildbot wise not sure what we can do

Comment by Daniel Black [ 2022-03-07 ]

Yes, fix the server debian/autobake.sh to do a distro version (not package version see MDBF-347, MDEV-28011) based removal of libzstd-dev

Comment by Daniel Black [ 2022-03-07 ]

https://github.com/MariaDB/server/pull/2045

Comment by Tuukka Pasanen [ 2022-03-08 ]

Debian 9 end of life is June 30, 2022. So would it be just put on back burner and consider as done?

Comment by Daniel Black [ 2022-03-10 ]

Thanks for the review illuusio

There's still more Debian 9 releases. As MDEV-28014 showed we have a fragility problem with the apt-cache.

While Debian 9 is going to be EOL soon, having the framework of tests against absolute distro versions is a good place to start.

Generated at Thu Feb 08 09:57:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.