buildsys: validate ABI at build time

this commit follows: 93661343d884a5339631afd7b683e232d20b7baf and
0b52b09c6083bd590e46cb9884d06bae1b712a2a from debian-upstream [0].

the `make checkabi` invocation takes < .4s on my workstation - so it
seems worth the change.

[0] https://salsa.debian.org/zfsonlinux-team/zfs

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
Stoiko Ivanov 2021-02-24 22:08:02 +01:00 committed by Thomas Lamprecht
parent c8ca652406
commit 6967bf4185
2 changed files with 8 additions and 1 deletions

3
debian/control vendored
View File

@ -2,7 +2,8 @@ Source: zfs-linux
Section: contrib/kernel Section: contrib/kernel
Priority: optional Priority: optional
Maintainer: Proxmox Support Team <support@proxmox.com> Maintainer: Proxmox Support Team <support@proxmox.com>
Build-Depends: debhelper (>= 10~), Build-Depends: abigail-tools,
debhelper (>= 10~),
dh-python, dh-python,
libblkid-dev, libblkid-dev,
libelf-dev, libelf-dev,

6
debian/rules vendored
View File

@ -47,6 +47,12 @@ override_dh_auto_configure:
done done
override_dh_auto_test: override_dh_auto_test:
override_dh_auto_test:
ifeq (amd64,$(DEB_HOST_ARCH))
# Upstream provides an ABI guarantee that we validate here
$(MAKE) checkabi
endif
# The dh_auto_test rule is disabled because # The dh_auto_test rule is disabled because
# `make check` cannot run in an unprivileged build environment. # `make check` cannot run in an unprivileged build environment.