[Pkg-net-snmp-devel] Bug#912685: debian/rules is not binNMU safe
Laurent Bigonville
bigon at debian.org
Fri Nov 2 20:07:04 GMT 2018
Source: net-snmp
Version: 5.7.3+dfsg-4
Severity: serious
Hi,
In debian/rules you have the following:
UPSTREAM_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ':' | sed 's/ //' | sed 's/~dfsg.*$$//')
COMPAT_VERSION = $(UPSTREAM_VERSION)~dfsg
[...]
override_dh_makeshlibs:
dh_makeshlibs -plibsnmp$(LIB_VERSION) -V"libsnmp$(LIB_VERSION) (>= $(COMPAT_VERSION))"
When a binNMU is scheduled, UPSTREAM_VERSION is set to 5.7.3+dfsg-4+b1
and then COMPAT_VERSION is set to 5.7.3+dfsg-4+b1~dfsg which is
completely boggus
All the reverse-dependency will have this boggus version in their
generated dependency list.
Why aren't you using "dh_makeshlibs -V" or the version macro that are
present in /usr/share/dpkg/pkg-info.mk ?
Kind regards,
Laurent Bigonville
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.18.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Permissive - Policy name: refpolicy
More information about the Pkg-net-snmp-devel
mailing list