From 7b4821e26c7c88a4240fcf67f7566e3d76a68bb4 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Fri, 22 Jun 2018 10:55:16 +0200 Subject: [PATCH] debian: Depend on the libssl version cl-plus-ssl depends on. --- debian/changelog | 1 + debian/control | 2 +- debian/rules | 8 +++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index c7e8fde..b463b3a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ pgloader (3.5.1+dfsg-1) UNRELEASED; urgency=medium * New upstream version. * Run wrap-and-sort -st. * Add new B-D cl-mustache, cl-yason, cl-zs3, sync Depends to cl-pgloader. + * Depend on the libssl version cl-plus-ssl depends on. * Priority: optional, move cl-pgloader to Section: lisp. * Update S-V. * Add watch file. diff --git a/debian/control b/debian/control index f4bd3c9..984dc6d 100644 --- a/debian/control +++ b/debian/control @@ -56,7 +56,7 @@ Vcs-Browser: https://github.com/dimitri/pgloader Package: pgloader Architecture: any -Depends: freetds-dev, ${misc:Depends}, ${shlibs:Depends} +Depends: freetds-dev, ${misc:Depends}, ${shlibs:Depends}, ${ssl:Depends} Description: extract, transform and load data into PostgreSQL pgloader imports data from different kind of sources and COPY it into PostgreSQL. diff --git a/debian/rules b/debian/rules index f9cecb8..678334d 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,8 @@ #!/usr/bin/make -f +# make pgloader depend on the libssl package cl-plus-ssl depends on +LIBSSL := $(shell dpkg-query --showformat='$${Depends}' --show cl-plus-ssl | grep -o 'libssl[^ ]*') + BITS = $(shell dpkg-architecture -qDEB_BUILD_ARCH_BITS) ifeq ($(BITS),32) SIZE=1024 @@ -38,5 +41,8 @@ override_dh_auto_test: override_dh_strip: # do nothing +override_dh_gencontrol: + dh_gencontrol -- -V"ssl:Depends=$(LIBSSL)" + %: - dh $@ + dh $@