From 2aa4380dd8c138b8dd4034eab20bff53ac5a047a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cl=C3=A9ment=20Hermann?= Date: Mon, 22 Jul 2019 11:08:42 -0300 Subject: [PATCH] Use system build dependencies instead of embedded modules in inc/ --- debian/control | 1 + debian/rules | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/debian/control b/debian/control index 6e3e2ec..fb718cd 100644 --- a/debian/control +++ b/debian/control @@ -5,6 +5,7 @@ Section: perl Testsuite: autopkgtest-pkg-perl Priority: optional Build-Depends: debhelper-compat (= 12), + libdevel-checklib-perl, libsereal-decoder-perl (>= 4.005), libtest-deep-perl, libtest-differences-perl, diff --git a/debian/rules b/debian/rules index f4bb08d..41f94ba 100755 --- a/debian/rules +++ b/debian/rules @@ -5,5 +5,15 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ + +# we want to use the system version of included modules, so +# we move the inc away and move it back afterwards. +# we do this only in inc/Devel since there is already a mechanism +# to handle system libs in the upstream code. +override_dh_auto_clean: + dh_auto_clean + [ ! -d $(CURDIR)/inc/Devel.save ] || mv $(CURDIR)/inc/Devel.save $(CURDIR)/inc/Devel + override_dh_auto_configure: + [ ! -d $(CURDIR)/inc/Devel ] || mv $(CURDIR)/inc/Devel $(CURDIR)/inc/Devel.save SEREAL_USE_BUNDLED_LIBS=0 SEREAL_USE_BUNDLED_ZSTD=0 dh_auto_configure -- 2.30.2