1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DH_OPTIONS
include /usr/share/dpkg/architecture.mk
LIBGUESTFS_ARCHITECTURES := amd64 arm64 riscv64 ppc64el s390x
ifeq "" "$(findstring x$(DEB_HOST_ARCH)x,$(patsubst %,x%x,$(LIBGUESTFS_ARCHITECTURES)))"
EXTRA_CONFIG_ARGS := --disable-libguestfs-tests
endif
%:
dh $@ --with autoreconf
override_dh_auto_configure:
dh_auto_configure -- --sbindir=/usr/bin MKE2FS=/sbin/mke2fs $(EXTRA_CONFIG_ARGS)
override_dh_auto_test: PATH := $(PATH):/sbin
override_dh_auto_test:
if ! test -w /dev/kvm; then export LIBGUESTFS_BACKEND_SETTINGS=force_tcg; fi; \
dh_auto_test --no-parallel
override_dh_missing:
dh_missing -X.la --fail-missing
override_dh_install:
dh_install -X.la
# Don't run dh_makeshlibs since no "real" shared libraries are built
# Thus avoid Lintian warnings/errors:
# - pkg-has-shlibs-control-file-but-no-actual-shared-libs
# - post{inst,rm}-has-useless-call-to-ldconfig
override_dh_makeshlibs:
|