Bug#1062395: libktoblzcheck: NMU diff for 64-bit time_t transition

2024-02-28 Thread Benjamin Drung
Source: libktoblzcheck
Dear maintainer,

Please find attached a final version of this patch for the time_t
transition.  This patch is being uploaded to unstable.

Note that this adds a versioned build-dependency on dpkg-dev, to guard
against accidental backports with a wrong ABI.

Thanks!


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-21-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
diff -Nru libktoblzcheck-1.53/debian/changelog 
libktoblzcheck-1.53/debian/changelog
--- libktoblzcheck-1.53/debian/changelog2022-04-15 15:29:52.0 
+
+++ libktoblzcheck-1.53/debian/changelog2024-02-28 13:32:23.0 
+
@@ -1,3 +1,10 @@
+libktoblzcheck (1.53-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1062395
+
+ -- Benjamin Drung   Wed, 28 Feb 2024 13:32:23 +
+
 libktoblzcheck (1.53-3) unstable; urgency=medium
 
   [ Debian Janitor ]
diff -Nru libktoblzcheck-1.53/debian/control libktoblzcheck-1.53/debian/control
--- libktoblzcheck-1.53/debian/control  2022-04-15 15:26:11.0 +
+++ libktoblzcheck-1.53/debian/control  2024-02-28 13:32:22.0 +
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Micha Lenk 
 Uploaders: Henning Glawe 
-Build-Depends: debhelper-compat (= 13),
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13),
  dh-python,
  cmake,
  python3-all-dev
@@ -11,13 +11,16 @@
 Vcs-Browser: https://salsa.debian.org/aqbanking-team/pkg-ktoblzcheck
 Vcs-Git: https://salsa.debian.org/aqbanking-team/pkg-ktoblzcheck.git
 
-Package: libktoblzcheck1v5
+Package: libktoblzcheck1t64
+Provides: ${t64:Provides}
+X-Time64-Compat: libktoblzcheck1v5
+Breaks: libktoblzcheck1v5 (<< ${source:Version})
 Architecture: any
 Multi-Arch: same
 Depends: ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends}
 Suggests: ktoblzcheck
 Conflicts: libktoblzcheck1c2a
-Replaces: libktoblzcheck1c2a
+Replaces: libktoblzcheck1v5, libktoblzcheck1c2a
 Description: library for verification of account numbers and bank codes
  libktoblzcheck is a library for verification of bank account numbers and bank
  codes (BLZ) of German Banks. It is based on the specifications of the
@@ -28,7 +31,7 @@
 Section: libdevel
 Architecture: any
 Multi-Arch: same
-Depends: libktoblzcheck1v5 (= ${binary:Version}), ${misc:Depends}
+Depends: libktoblzcheck1t64 (= ${binary:Version}), ${misc:Depends}
 Description: library for verification of account numbers and bank codes 
(development files)
  libktoblzcheck is a library for verification of bank account numbers and bank
  codes (BLZ) of German Banks. It is based on the specifications of the
diff -Nru libktoblzcheck-1.53/debian/libktoblzcheck1t64.install 
libktoblzcheck-1.53/debian/libktoblzcheck1t64.install
--- libktoblzcheck-1.53/debian/libktoblzcheck1t64.install   1970-01-01 
00:00:00.0 +
+++ libktoblzcheck-1.53/debian/libktoblzcheck1t64.install   2019-10-06 
18:52:09.0 +
@@ -0,0 +1,2 @@
+usr/lib/*/lib*.so.*
+usr/share/ktoblzcheck
diff -Nru libktoblzcheck-1.53/debian/libktoblzcheck1t64.lintian-overrides 
libktoblzcheck-1.53/debian/libktoblzcheck1t64.lintian-overrides
--- libktoblzcheck-1.53/debian/libktoblzcheck1t64.lintian-overrides 
1970-01-01 00:00:00.0 +
+++ libktoblzcheck-1.53/debian/libktoblzcheck1t64.lintian-overrides 
2024-02-28 13:32:16.0 +
@@ -0,0 +1 @@
+libktoblzcheck1t64: package-name-doesnt-match-sonames libktoblzcheck1v5
diff -Nru libktoblzcheck-1.53/debian/libktoblzcheck1t64.postrm 
libktoblzcheck-1.53/debian/libktoblzcheck1t64.postrm
--- libktoblzcheck-1.53/debian/libktoblzcheck1t64.postrm1970-01-01 
00:00:00.0 +
+++ libktoblzcheck-1.53/debian/libktoblzcheck1t64.postrm2019-10-06 
13:42:00.0 +
@@ -0,0 +1,32 @@
+#!/bin/sh
+# postrm script for libktoblzcheck
+
+set -e
+
+bankdatadir=/var/lib/ktoblzcheck1
+
+case "$1" in
+purge)
+   # remove out-of-package bankdata files possibly generated by
+   # online_update.pl script:
+   if [ -d $bankdatadir ]; then
+   rm 
$bankdatadir/bankdata_[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].txt 2> /dev/null 
|| true
+   rmdir $bankdatadir 2> /dev/null || true
+   fi
+;;
+
+remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+;;
+
+*)
+echo "postrm called with unknown argument \`$1'" >&2
+exit 1
+;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff -Nru libktoblzcheck-1.53/debian/libktoblzcheck1v5.install 

Bug#1062395: libktoblzcheck: NMU diff for 64-bit time_t transition

2024-02-01 Thread Steve Langasek
Source: libktoblzcheck
Version: 1.53-3
Severity: serious
Tags: patch pending
Justification: library ABI skew on upgrade
User: debian-...@lists.debian.org
Usertags: time-t

Dear maintainer,

As part of the 64-bit time_t transition required to support 32-bit
architectures in 2038 and beyond
(https://wiki.debian.org/ReleaseGoals/64bit-time), we have identified
libktoblzcheck as a source package shipping runtime libraries whose ABI
either is affected by the change in size of time_t, or could not be
analyzed via abi-compliance-checker (and therefore to be on the safe
side we assume is affected).

To ensure that inconsistent combinations of libraries with their
reverse-dependencies are never installed together, it is necessary to
have a library transition, which is most easily done by renaming the
runtime library package.

Since turning on 64-bit time_t is being handled centrally through a change
to the default dpkg-buildflags (https://bugs.debian.org/1037136), it is
important that libraries affected by this ABI change all be uploaded close
together in time.  Therefore I have prepared a 0-day NMU for libktoblzcheck
which will initially be uploaded to experimental if possible, then to
unstable after packages have cleared binary NEW.

Please find the patch for this NMU attached.

If you have any concerns about this patch, please reach out ASAP.  Although
this package will be uploaded to experimental immediately, there will be a
period of several days before we begin uploads to unstable; so if information
becomes available that your package should not be included in the transition,
there is time for us to amend the planned uploads.



-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-14-generic (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru libktoblzcheck-1.53/debian/changelog 
libktoblzcheck-1.53/debian/changelog
--- libktoblzcheck-1.53/debian/changelog2022-04-15 15:29:52.0 
+
+++ libktoblzcheck-1.53/debian/changelog2024-02-01 08:53:42.0 
+
@@ -1,3 +1,10 @@
+libktoblzcheck (1.53-3.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Thu, 01 Feb 2024 08:53:42 +
+
 libktoblzcheck (1.53-3) unstable; urgency=medium
 
   [ Debian Janitor ]
diff -Nru libktoblzcheck-1.53/debian/control libktoblzcheck-1.53/debian/control
--- libktoblzcheck-1.53/debian/control  2022-04-15 15:26:11.0 +
+++ libktoblzcheck-1.53/debian/control  2024-02-01 08:53:42.0 +
@@ -11,13 +11,16 @@
 Vcs-Browser: https://salsa.debian.org/aqbanking-team/pkg-ktoblzcheck
 Vcs-Git: https://salsa.debian.org/aqbanking-team/pkg-ktoblzcheck.git
 
-Package: libktoblzcheck1v5
+Package: libktoblzcheck1t64
+Provides: ${t64:Provides}
+X-Time64-Compat: libktoblzcheck1v5
+Breaks: libktoblzcheck1v5 (<< ${source:Version})
 Architecture: any
 Multi-Arch: same
 Depends: ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends}
 Suggests: ktoblzcheck
 Conflicts: libktoblzcheck1c2a
-Replaces: libktoblzcheck1c2a
+Replaces: libktoblzcheck1v5, libktoblzcheck1c2a
 Description: library for verification of account numbers and bank codes
  libktoblzcheck is a library for verification of bank account numbers and bank
  codes (BLZ) of German Banks. It is based on the specifications of the
@@ -28,7 +31,7 @@
 Section: libdevel
 Architecture: any
 Multi-Arch: same
-Depends: libktoblzcheck1v5 (= ${binary:Version}), ${misc:Depends}
+Depends: libktoblzcheck1t64 (= ${binary:Version}), ${misc:Depends}
 Description: library for verification of account numbers and bank codes 
(development files)
  libktoblzcheck is a library for verification of bank account numbers and bank
  codes (BLZ) of German Banks. It is based on the specifications of the
diff -Nru libktoblzcheck-1.53/debian/libktoblzcheck1t64.install 
libktoblzcheck-1.53/debian/libktoblzcheck1t64.install
--- libktoblzcheck-1.53/debian/libktoblzcheck1t64.install   1970-01-01 
00:00:00.0 +
+++ libktoblzcheck-1.53/debian/libktoblzcheck1t64.install   2019-10-06 
18:52:09.0 +
@@ -0,0 +1,2 @@
+usr/lib/*/lib*.so.*
+usr/share/ktoblzcheck
diff -Nru libktoblzcheck-1.53/debian/libktoblzcheck1t64.lintian-overrides 
libktoblzcheck-1.53/debian/libktoblzcheck1t64.lintian-overrides
--- libktoblzcheck-1.53/debian/libktoblzcheck1t64.lintian-overrides 
1970-01-01 00:00:00.0 +
+++ libktoblzcheck-1.53/debian/libktoblzcheck1t64.lintian-overrides 
2024-02-01 08:53:42.0 +
@@ -0,0 +1 @@
+libktoblzcheck1t64: package-name-doesnt-match-sonames libktoblzcheck1v5
diff -Nru