Bug#1062973: testu01: NMU diff for 64-bit time_t transition

2024-02-29 Thread Benjamin Drung
Source: testu01
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 testu01-1.2.3+ds1/debian/changelog testu01-1.2.3+ds1/debian/changelog
--- testu01-1.2.3+ds1/debian/changelog  2022-12-12 09:46:23.0 +
+++ testu01-1.2.3+ds1/debian/changelog  2024-02-29 18:08:34.0 +
@@ -1,3 +1,10 @@
+testu01 (1.2.3+ds1-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1062973
+
+ -- Benjamin Drung   Thu, 29 Feb 2024 18:08:34 +
+
 testu01 (1.2.3+ds1-2) unstable; urgency=medium
 
   [Jerome Benoit]
diff -Nru testu01-1.2.3+ds1/debian/control testu01-1.2.3+ds1/debian/control
--- testu01-1.2.3+ds1/debian/control2022-12-12 09:29:37.0 +
+++ testu01-1.2.3+ds1/debian/control2024-02-29 18:08:34.0 +
@@ -4,7 +4,7 @@
 Maintainer: Debian Science Maintainers 

 Uploaders: Jerome Benoit 
 Rules-Requires-Root: no
-Build-Depends:
+Build-Depends: dpkg-dev (>= 1.22.5),
  debhelper-compat (= 12),
  gnulib, libtool, cproto,
  libgmp-dev
@@ -16,8 +16,10 @@
 Vcs-Browser: https://salsa.debian.org/science-team/testu01
 XS-Autobuild: yes
 
-Package: libtestu01-0
-Provides: libtestu01
+Package: libtestu01-0t64
+Replaces: libtestu01-0
+Breaks: libtestu01-0 (<< ${source:Version})
+Provides: ${t64:Provides}, libtestu01
 Section: non-free/libs
 Architecture: any
 Pre-Depends: ${misc:Pre-Depends}
@@ -48,7 +50,7 @@
 Package: testu01-data
 Architecture: all
 Depends: ${misc:Depends}
-Recommends: libtestu01-0 (=${binary:Version})
+Recommends: libtestu01-0t64 (=${binary:Version})
 Multi-Arch: foreign
 Description: testing suite for uniform random number generators -- data
  TestU01 is a software library, implemented in the ANSI C language, and
@@ -73,7 +75,7 @@
 Provides: libtestu01-dev
 Section: non-free/libdevel
 Architecture: any
-Depends: libtestu01-0 (= ${binary:Version}), libtestu01-0-dev-common (= 
${source:Version}), ${misc:Depends}
+Depends: libtestu01-0t64 (= ${binary:Version}), libtestu01-0-dev-common (= 
${source:Version}), ${misc:Depends}
 Conflicts: libtestu01-dev
 Suggests: testu01-doc
 Multi-Arch: same
@@ -128,7 +130,7 @@
 Architecture: all
 Depends: ${misc:Depends}
 Suggests:
- libtestu01-0 (=${binary:Version}), libtestu01-0-dev (=${binary:Version}),
+ libtestu01-0t64 (=${binary:Version}), libtestu01-0-dev (=${binary:Version}),
  texlive-latex-base, texlive-latex-recommended, texlive-latex-extra,
  pdf-viewer
 Multi-Arch: foreign
@@ -153,7 +155,7 @@
 
 Package: testu01-bin
 Architecture: any
-Depends: libtestu01-0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Depends: libtestu01-0t64 (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
 Suggests: testu01-doc (= ${source:Version})
 Multi-Arch: foreign
 Description: testing suite for uniform random number generators -- utils
diff -Nru testu01-1.2.3+ds1/debian/libtestu01-0.install 
testu01-1.2.3+ds1/debian/libtestu01-0.install
--- testu01-1.2.3+ds1/debian/libtestu01-0.install   2015-05-05 
23:44:11.0 +
+++ testu01-1.2.3+ds1/debian/libtestu01-0.install   1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/libtestu01*.so.*
diff -Nru testu01-1.2.3+ds1/debian/libtestu01-0.links 
testu01-1.2.3+ds1/debian/libtestu01-0.links
--- testu01-1.2.3+ds1/debian/libtestu01-0.links 2015-05-18 19:28:49.0 
+
+++ testu01-1.2.3+ds1/debian/libtestu01-0.links 1970-01-01 00:00:00.0 
+
@@ -1 +0,0 @@
-usr/share/doc/testu01-data/README.Debian 
usr/share/doc/libtestu01-0/README.Debian
diff -Nru testu01-1.2.3+ds1/debian/libtestu01-0.lintian-overrides 
testu01-1.2.3+ds1/debian/libtestu01-0.lintian-overrides
--- testu01-1.2.3+ds1/debian/libtestu01-0.lintian-overrides 2022-12-12 
09:15:35.0 +
+++ testu01-1.2.3+ds1/debian/libtestu01-0.lintian-overrides 1970-01-01 
00:00:00.0 +
@@ -1,7 +0,0 @@
-# Mathematically impossible computations or absurde implementations
-# are managed with exit(3); this looks as a clumsy DEBUG policy rather
-# than a design issue, but still an issue that has to be fixed by the
-# upstream team itself.
-# On the other hand, I/O possible issues are also ended by exit(3) along
-# side improper data input; this is definitely a design issue.
-libtestu01-0 binary: exit-in-shared-library
diff -Nru 

Bug#1062973: testu01: NMU diff for 64-bit time_t transition

2024-02-04 Thread Steve Langasek
Source: testu01
Version: 1.2.3+ds1-2
Severity: serious
Tags: patch pending sid trixie
Justification: library ABI skew on upgrade
User: debian-...@lists.debian.org
Usertags: time-t

NOTICE: these changes must not be uploaded to unstable yet!

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
testu01 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 testu01
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')
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 testu01-1.2.3+ds1/debian/changelog testu01-1.2.3+ds1/debian/changelog
--- testu01-1.2.3+ds1/debian/changelog  2022-12-12 09:46:23.0 +
+++ testu01-1.2.3+ds1/debian/changelog  2024-02-04 08:33:44.0 +
@@ -1,3 +1,10 @@
+testu01 (1.2.3+ds1-2.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Sun, 04 Feb 2024 08:33:44 +
+
 testu01 (1.2.3+ds1-2) unstable; urgency=medium
 
   [Jerome Benoit]
diff -Nru testu01-1.2.3+ds1/debian/control testu01-1.2.3+ds1/debian/control
--- testu01-1.2.3+ds1/debian/control2022-12-12 09:29:37.0 +
+++ testu01-1.2.3+ds1/debian/control2024-02-04 08:33:44.0 +
@@ -16,8 +16,10 @@
 Vcs-Browser: https://salsa.debian.org/science-team/testu01
 XS-Autobuild: yes
 
-Package: libtestu01-0
-Provides: libtestu01
+Package: libtestu01-0t64
+Replaces: libtestu01-0
+Breaks: libtestu01-0 (<< ${source:Version})
+Provides: ${t64:Provides}, libtestu01
 Section: non-free/libs
 Architecture: any
 Pre-Depends: ${misc:Pre-Depends}
@@ -48,7 +50,7 @@
 Package: testu01-data
 Architecture: all
 Depends: ${misc:Depends}
-Recommends: libtestu01-0 (=${binary:Version})
+Recommends: libtestu01-0t64 (=${binary:Version})
 Multi-Arch: foreign
 Description: testing suite for uniform random number generators -- data
  TestU01 is a software library, implemented in the ANSI C language, and
@@ -73,7 +75,7 @@
 Provides: libtestu01-dev
 Section: non-free/libdevel
 Architecture: any
-Depends: libtestu01-0 (= ${binary:Version}), libtestu01-0-dev-common (= 
${source:Version}), ${misc:Depends}
+Depends: libtestu01-0t64 (= ${binary:Version}), libtestu01-0-dev-common (= 
${source:Version}), ${misc:Depends}
 Conflicts: libtestu01-dev
 Suggests: testu01-doc
 Multi-Arch: same
@@ -128,7 +130,7 @@
 Architecture: all
 Depends: ${misc:Depends}
 Suggests:
- libtestu01-0 (=${binary:Version}), libtestu01-0-dev (=${binary:Version}),
+ libtestu01-0t64 (=${binary:Version}), libtestu01-0-dev (=${binary:Version}),
  texlive-latex-base, texlive-latex-recommended, texlive-latex-extra,
  pdf-viewer
 Multi-Arch: foreign
@@ -153,7 +155,7 @@
 
 Package: testu01-bin
 Architecture: any
-Depends: libtestu01-0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Depends: libtestu01-0t64 (= ${binary:Version}), ${shlibs:Depends}, 
${misc:Depends}
 Suggests: testu01-doc (= ${source:Version})
 Multi-Arch: foreign
 Description: testing suite for uniform random number generators -- utils
diff -Nru testu01-1.2.3+ds1/debian/libtestu01-0.install 
testu01-1.2.3+ds1/debian/libtestu01-0.install
--- testu01-1.2.3+ds1/debian/libtestu01-0.install   2015-05-05 
23:44:11.0 +
+++ testu01-1.2.3+ds1/debian/libtestu01-0.install   1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/libtestu01*.so.*
diff -Nru