Bug#1062042: cddlib: NMU diff for 64-bit time_t transition

2024-02-27 Thread Steve Langasek
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-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 cddlib-094m/debian/changelog cddlib-094m/debian/changelog
--- cddlib-094m/debian/changelog2021-12-27 22:39:19.0 +
+++ cddlib-094m/debian/changelog2024-02-28 05:59:09.0 +
@@ -1,3 +1,10 @@
+cddlib (094m-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1062042
+
+ -- Steve Langasek   Wed, 28 Feb 2024 05:59:09 +
+
 cddlib (094m-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru cddlib-094m/debian/control cddlib-094m/debian/control
--- cddlib-094m/debian/control  2021-12-27 22:07:50.0 +
+++ cddlib-094m/debian/control  2024-02-28 05:59:09.0 +
@@ -4,7 +4,7 @@
 Maintainer: Debian Math Team 
 Uploaders: Tobias Hansen 
 Homepage: https://github.com/cddlib/cddlib
-Build-Depends: debhelper (>= 13), debhelper-compat (= 13), libgmp-dev, 
latexmk, latex2html
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper (>= 13), debhelper-compat (= 
13), libgmp-dev, latexmk, latex2html
 # latex2html is required due to html.sty.
 Standards-Version: 4.6.0
 Vcs-Git: https://salsa.debian.org/math-team/cddlib.git
@@ -13,7 +13,7 @@
 Package: libcdd-dev
 Section: libdevel
 Architecture: any
-Depends: ${misc:Depends}, libgmp-dev, libcdd0d (= ${binary:Version})
+Depends: ${misc:Depends}, libgmp-dev, libcdd0t64 (= ${binary:Version})
 Suggests: libcdd-doc
 Multi-Arch: same
 Description: Library for finding vertices of convex polytopes, development
@@ -25,7 +25,11 @@
  .
  This package contains the cddlib development files.
 
-Package: libcdd0d
+Package: libcdd0t64
+Provides: ${t64:Provides}
+X-Time64-Compat: libcdd0d
+Replaces: libcdd0d
+Breaks: libcdd0d (<< ${source:Version})
 Section: libs
 Architecture: any
 Conflicts: libcdd0
diff -Nru cddlib-094m/debian/libcdd0d.install 
cddlib-094m/debian/libcdd0d.install
--- cddlib-094m/debian/libcdd0d.install 2018-09-29 19:06:44.0 +
+++ cddlib-094m/debian/libcdd0d.install 1970-01-01 00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/*.so.*
diff -Nru cddlib-094m/debian/libcdd0d.lintian-overrides 
cddlib-094m/debian/libcdd0d.lintian-overrides
--- cddlib-094m/debian/libcdd0d.lintian-overrides   2018-09-29 
19:06:44.0 +
+++ cddlib-094m/debian/libcdd0d.lintian-overrides   1970-01-01 
00:00:00.0 +
@@ -1,5 +0,0 @@
-# The soname libcdd.so.0 is now used by upstream, but
-# was used before in Debian for another ABI. Since the
-# package is only used by gfan, I think it is ok
-# to only rename the package and keep the soname.
-libcdd0d binary: package-name-doesnt-match-sonames
diff -Nru cddlib-094m/debian/libcdd0d.shlibs cddlib-094m/debian/libcdd0d.shlibs
--- cddlib-094m/debian/libcdd0d.shlibs  2018-09-29 19:06:44.0 +
+++ cddlib-094m/debian/libcdd0d.shlibs  1970-01-01 00:00:00.0 +
@@ -1,2 +0,0 @@
-libcdd 0 libcdd0d
-libcddgmp 0 libcdd0d
diff -Nru cddlib-094m/debian/libcdd0t64.install 
cddlib-094m/debian/libcdd0t64.install
--- cddlib-094m/debian/libcdd0t64.install   1970-01-01 00:00:00.0 
+
+++ cddlib-094m/debian/libcdd0t64.install   2018-09-29 19:06:44.0 
+
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
diff -Nru cddlib-094m/debian/libcdd0t64.lintian-overrides 
cddlib-094m/debian/libcdd0t64.lintian-overrides
--- cddlib-094m/debian/libcdd0t64.lintian-overrides 1970-01-01 
00:00:00.0 +
+++ cddlib-094m/debian/libcdd0t64.lintian-overrides 2024-02-28 
05:56:54.0 +
@@ -0,0 +1,6 @@
+# The soname libcdd.so.0 is now used by upstream, but
+# was used before in Debian for another ABI. Since the
+# package is only used by gfan, I think it is ok
+# to only rename the package and keep the soname.
+libcdd0t64 binary: package-name-doesnt-match-sonames
+libcdd0t64: package-name-doesnt-match-sonames libcdd0d
diff -Nru cddlib-094m/debian/libcdd0t64.shlibs 
cddlib-094m/debian/libcdd0t64.shlibs
--- cddlib-094m/debian/libcdd0t64.shlibs1970-01-01 00:00:00.0 
+
+++ cddlib-094m/debian/libcdd0t64.shlibs2024-02-28 05:56:54.0 
+
@@ -0,0 +1,2 @@
+libcdd 0 libcdd0t64
+libcddgmp 0 libcdd0t64


Bug#1062042: cddlib: NMU diff for 64-bit time_t transition

2024-01-30 Thread Steve Langasek
Source: cddlib
Version: 094m-1
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
cddlib 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 cddlib
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'), (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 cddlib-094m/debian/changelog cddlib-094m/debian/changelog
--- cddlib-094m/debian/changelog2021-12-27 22:39:19.0 +
+++ cddlib-094m/debian/changelog2024-01-31 03:46:00.0 +
@@ -1,3 +1,10 @@
+cddlib (094m-1.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Wed, 31 Jan 2024 03:46:00 +
+
 cddlib (094m-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru cddlib-094m/debian/control cddlib-094m/debian/control
--- cddlib-094m/debian/control  2021-12-27 22:07:50.0 +
+++ cddlib-094m/debian/control  2024-01-31 03:45:59.0 +
@@ -13,7 +13,7 @@
 Package: libcdd-dev
 Section: libdevel
 Architecture: any
-Depends: ${misc:Depends}, libgmp-dev, libcdd0d (= ${binary:Version})
+Depends: ${misc:Depends}, libgmp-dev, libcdd0t64 (= ${binary:Version})
 Suggests: libcdd-doc
 Multi-Arch: same
 Description: Library for finding vertices of convex polytopes, development
@@ -25,7 +25,11 @@
  .
  This package contains the cddlib development files.
 
-Package: libcdd0d
+Package: libcdd0t64
+Provides: ${t64:Provides}
+X-Time64-Compat: libcdd0d
+Replaces: libcdd0d
+Breaks: libcdd0d (<< ${source:Version})
 Section: libs
 Architecture: any
 Conflicts: libcdd0
diff -Nru cddlib-094m/debian/libcdd0d.install 
cddlib-094m/debian/libcdd0d.install
--- cddlib-094m/debian/libcdd0d.install 2018-09-29 19:06:44.0 +
+++ cddlib-094m/debian/libcdd0d.install 1970-01-01 00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/*.so.*
diff -Nru cddlib-094m/debian/libcdd0d.lintian-overrides 
cddlib-094m/debian/libcdd0d.lintian-overrides
--- cddlib-094m/debian/libcdd0d.lintian-overrides   2018-09-29 
19:06:44.0 +
+++ cddlib-094m/debian/libcdd0d.lintian-overrides   1970-01-01 
00:00:00.0 +
@@ -1,5 +0,0 @@
-# The soname libcdd.so.0 is now used by upstream, but
-# was used before in Debian for another ABI. Since the
-# package is only used by gfan, I think it is ok
-# to only rename the package and keep the soname.
-libcdd0d binary: package-name-doesnt-match-sonames
diff -Nru cddlib-094m/debian/libcdd0d.shlibs cddlib-094m/debian/libcdd0d.shlibs
--- cddlib-094m/debian/libcdd0d.shlibs  2018-09-29 19:06:44.0 +
+++ cddlib-094m/debian/libcdd0d.shlibs  1970-01-01 00:00:00.0 +
@@ -1,2 +0,0 @@
-libcdd 0 libcdd0d
-libcddgmp 0 libcdd0d
diff -Nru cddlib-094m/debian/libcdd0t64.install 
cddlib-094m/debian/libcdd0t64.install
--- cddlib-094m/debian/libcdd0t64.install   1970-01-01 00:00:00.0 
+
+++ cddlib-094m/debian/libcdd0t64.install   2018-09-29 19:06:44.0 
+
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
diff -Nru cddlib-094m/debian/libcdd0t64.lintian-overrides 
cddlib-094m/debian/libcdd0t64.lintian-overrides
--- cddlib-094m/debian/libcdd0t64.lintian-overrides 1970-01-01 
00:00:00.0 +
+++