Depend on libsqlite3-0.

pgloader  --regress allcols.load

debugger invoked on a SIMPLE-ERROR in thread
#<THREAD "main thread" RUNNING {10070C8003}>:
  Error opening shared object "libsqlite3.so.0":
  libsqlite3.so.0: cannot open shared object file: No such file or directory.
This commit is contained in:
Christoph Berg 2022-09-26 11:41:33 +02:00
parent 350bcc09d1
commit 59d2c5c7fd
3 changed files with 14 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
pgloader (3.6.7-2) UNRELEASED; urgency=medium
* Depend on libsqlite3-0.
-- Christoph Berg <myon@debian.org> Mon, 26 Sep 2022 11:09:44 +0200
pgloader (3.6.7-1) unstable; urgency=medium
* New upstream version:

4
debian/control vendored
View File

@ -50,12 +50,13 @@ Build-Depends:
debhelper-compat (= 13),
gawk,
help2man,
libsqlite3-dev,
postgresql-14-ip4r <!nocheck> | postgresql-ip4r <!nocheck>,
python3-sphinx,
python3-sphinx-rtd-theme,
sbcl (>= 1.1.13),
tzdata,
Standards-Version: 4.5.0
Standards-Version: 4.6.0
Homepage: https://github.com/dimitri/pgloader
Vcs-Git: https://github.com/dimitri/pgloader.git
Vcs-Browser: https://github.com/dimitri/pgloader
@ -66,6 +67,7 @@ Depends:
freetds-dev,
${misc:Depends},
${shlibs:Depends},
${sqlite:Depends},
${ssl:Depends},
Description: extract, transform and load data into PostgreSQL
pgloader imports data from different kind of sources and COPY it into

6
debian/rules vendored
View File

@ -2,6 +2,8 @@
include /usr/share/dpkg/pkg-info.mk
# get libsqlite3 package name from libsqlite3-dev
LIBSQLITE := $(shell dpkg-query --showformat='$${Depends}' --show libsqlite3-dev | grep -o 'libsqlite[^ ]*')
# 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[^ ]*')
@ -64,7 +66,9 @@ override_dh_installman-arch:
debian/pgloader/usr/share/man/man1/pgloader.1
override_dh_gencontrol:
dh_gencontrol -- -V"ssl:Depends=$(LIBSSL)"
dh_gencontrol -- \
-V"sqlite:Depends=$(LIBSQLITE)" \
-V"ssl:Depends=$(LIBSSL)"
%:
dh $@