Bug#1067566: Do not hardcode dependency on libhamlib4
Package: cqrlog
Version: 2.5.2-3
Severity: serious
Tags: patch
X-Debbugs-Cc: juliank@ubuntu.com
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
*** /tmp/tmpb0h60c58/bug_body
In Ubuntu, the attached patch was applied to achieve the following:
* Don't hardcode libhamlib4 dependency, determine from libhamlib-dev
As libhamlib4 becomes libhamlib4t64 in the time_t transition, and we
want this package to become binNMUable.
Thanks for considering the patch.
*** /tmp/tmpb0h60c58/cqrlog_2.5.2-3ubuntu1.debdiff
diff -Nru cqrlog-2.5.2/debian/control cqrlog-2.5.2/debian/control
--- cqrlog-2.5.2/debian/control 2024-03-08 05:08:51.000000000 +0100
+++ cqrlog-2.5.2/debian/control 2024-03-22 16:53:55.000000000 +0100
@@ -1,8 +1,7 @@
Source: cqrlog
Section: hamradio
Priority: optional
-Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
-XSBC-Original-Maintainer: Debian Hamradio Maintainers <debian-hams@lists.debian.org>
+Maintainer: Debian Hamradio Maintainers <debian-hams@lists.debian.org>
Uploaders:
Petr Hlozek <petr@ok2cqr.com>,
Build-Depends:
@@ -36,9 +35,9 @@
default-mysql-client-core | virtual-mysql-client-core,
default-mysql-server-core | virtual-mysql-server-core,
libhamlib-utils,
- libhamlib4,
libmariadb-dev-compat,
${misc:Depends},
+ ${lib:Depends},
${shlibs:Depends},
Breaks: cqrlog-data (<< 2.5.2-2)
Replaces: cqrlog-data (<< 2.5.2-2)
diff -Nru cqrlog-2.5.2/debian/rules cqrlog-2.5.2/debian/rules
--- cqrlog-2.5.2/debian/rules 2022-09-07 11:59:57.000000000 +0200
+++ cqrlog-2.5.2/debian/rules 2024-03-22 16:53:55.000000000 +0100
@@ -2,3 +2,10 @@
%:
dh $@
+
+
+override_dh_gencontrol:
+ dh_gencontrol -- \
+ -Vlib:Depends=$(shell dpkg-query -W -f '$${Depends}' libhamlib-dev \
+ | sed -E 's/.*(libhamlib[[:alnum:].-]+).*/\1/')
+
-- System Information:
Debian Release: trixie/sid
APT prefers noble
APT policy: (500, 'noble'), (500, 'mantic-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.8.0-11-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer i speak de, en
Reply to: