Package: sqlite3
Version: 3.8.7.1-1+deb8u1
Severity: wishlist
Tags: patch

Dear Maintainer,

When rebuilding package, I noticed dpkg-shlibdeps warnings about unnecessary dependencies on libncurses5, libtinfo5 in sqlite3 package, which could be avoided with --as-needed linker option, see attached debdiff.

-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sqlite3 depends on:
ii  libc6         2.19-18
ii  libreadline6  6.3-8+b3
ii  libsqlite3-0  3.8.7.1-1+deb8u1
ii  libtinfo5     5.9+20140913-1+b1

sqlite3 recommends no packages.

Versions of packages sqlite3 suggests:
ii  sqlite3-doc  3.8.7.1-1+deb8u1

-- no debconf information

diff -Nru sqlite3-3.8.10.2/debian/rules sqlite3-3.8.10.2/debian/rules
--- sqlite3-3.8.10.2/debian/rules	2015-05-13 00:13:35.000000000 +0300
+++ sqlite3-3.8.10.2/debian/rules	2015-07-13 14:41:20.000000000 +0300
@@ -20,11 +20,13 @@
 export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
+export LDFLAGS += -Wl,--as-needed
 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
   confflags += --build $(DEB_HOST_GNU_TYPE) --with-tcl=/usr/lib/$(DEB_HOST_MULTIARCH)/tcl8.6
   export CROSS_BUILDING=no
 else
-  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) --with-tcl=/usr/lib/$(DEB_HOST_MULTIARCH)/tcl8.6 LDFLAGS=-L/usr/lib/$(DEB_HOST_MULTIARCH)
+  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) --with-tcl=/usr/lib/$(DEB_HOST_MULTIARCH)/tcl8.6
+  LDFLAGS += -L/usr/lib/$(DEB_HOST_MULTIARCH)
   export CROSS_BUILDING=yes
 endif
 
@@ -37,7 +39,7 @@
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
-	dh_autoreconf
+	dh_autoreconf --as-needed
 	dh_autotools-dev_updateconfig
 	./configure --prefix=/usr --mandir="/usr/share/man" \
 	  $(confflags) --enable-threadsafe \

Reply via email to