Drop the debian/libnutclient2.symbols file entierly, generate a shlibs file with strong dependency instead

Managing a .symbols file for C++ libraries is a nightmare

Closes: #1017392
This commit is contained in:
Laurent Bigonville 2022-09-25 08:44:47 +02:00
parent f2bcd2dbd9
commit 2fc70a35cc
3 changed files with 13 additions and 384 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
nut (2.8.0-3) unstable; urgency=medium
* Drop the debian/libnutclient2.symbols file entierly, managing a .symbols
file for C++ libraries is a nightmare. Generate a shlibs file with strong
dependency instead (Closes: #1017392)
-- Laurent Bigonville <bigon@debian.org> Sun, 25 Sep 2022 09:23:50 +0200
nut (2.8.0-2) unstable; urgency=medium
* debian/libnutclient2.symbols: Update the symbols file, again

File diff suppressed because one or more lines are too long

5
debian/rules vendored
View File

@ -5,6 +5,7 @@ DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
DEB_BUILD_MAINT_OPTIONS=hardening=+all
DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs -Wl,-O1 -Wl,--as-needed
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/pkg-info.mk
DEB_CONFIGURE_EXTRA_FLAGS := --prefix= \
--sysconfdir=/etc/nut \
@ -137,3 +138,7 @@ override_dh_installchangelogs:
# to avoid that
dh_installchangelogs -pnut -Xhistory.txt
dh_installchangelogs --remaining-packages
override_dh_makeshlibs:
dh_makeshlibs -plibnutclient2 -V'libnutclient2 (= ${DEB_VERSION})'
dh_makeshlibs -Nlibnutclient2