Bug#1062364: dieharder: NMU diff for 64-bit time_t transition

2024-02-28 Thread Dirk Eddelbuettel


On 28 February 2024 at 21:28, mwhud...@fastmail.fm wrote:
| 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 a lot for managing this well.  I replaced the earlier patch with this
one and force-pushed over the previous commit.  The repo is current.

Really appreciate the handling of the 64-bit time_t issue by all.

Cheers, Dirk
 
| 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
| 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)
| x[DELETED ATTACHMENT nmu_dieharder.debdiff, plain text]

-- 
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org



Bug#1062364: dieharder: NMU diff for 64-bit time_t transition

2024-02-28 Thread mwhudson
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
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)
diff -Nru dieharder-3.31.1.4/debian/changelog 
dieharder-3.31.1.4/debian/changelog
--- dieharder-3.31.1.4/debian/changelog 2022-12-21 13:10:53.0 +
+++ dieharder-3.31.1.4/debian/changelog 2024-02-28 21:27:51.0 +
@@ -1,3 +1,10 @@
+dieharder (3.31.1.4-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Michael Hudson-Doyle   Wed, 28 Feb 2024 21:27:51 +
+
 dieharder (3.31.1.4-1) unstable; urgency=medium
 
   * New upstream minor release, now sync'ed with 'public' github
diff -Nru dieharder-3.31.1.4/debian/control dieharder-3.31.1.4/debian/control
--- dieharder-3.31.1.4/debian/control   2022-12-21 13:10:53.0 +
+++ dieharder-3.31.1.4/debian/control   2024-02-28 21:27:51.0 +
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Dirk Eddelbuettel 
 Standards-Version: 4.6.2
-Build-Depends: debhelper-compat (= 12), libgsl-dev, automake, libtool, 
ghostscript, texlive-base, texlive-latex-base, texlive-plain-generic
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 12), libgsl-dev, 
automake, libtool, ghostscript, texlive-base, texlive-latex-base, 
texlive-plain-generic
 Vcs-Browser: https://salsa.debian.org/edd/dieharder
 Vcs-Git: https://salsa.debian.org/edd/dieharder.git
 Homepage: https://github.com/eddelbuettel/dieharder
@@ -23,7 +23,10 @@
  .
  This package provides the command-line frontend.
 
-Package: libdieharder3
+Package: libdieharder3t64
+Provides: ${t64:Provides}
+Replaces: libdieharder3
+Breaks: libdieharder3 (<< ${source:Version})
 Section: libs
 Architecture: any
 Depends: ${misc:Depends}, ${shlibs:Depends}
@@ -49,7 +52,7 @@
 
 Package: libdieharder-dev
 Architecture: any
-Depends: ${misc:Depends}, libdieharder3 (= ${binary:Version}), libgsl-dev
+Depends: ${misc:Depends}, libdieharder3t64 (= ${binary:Version}), libgsl-dev
 Section: libdevel
 Replaces: libdieharder2 (<= 2.28.1-3)
 Description:  Random-number generator test library -- development package
diff -Nru dieharder-3.31.1.4/debian/libdieharder3.files 
dieharder-3.31.1.4/debian/libdieharder3.files
--- dieharder-3.31.1.4/debian/libdieharder3.files   2020-07-25 
17:39:48.0 +
+++ dieharder-3.31.1.4/debian/libdieharder3.files   1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/libdieharder.so.*
diff -Nru dieharder-3.31.1.4/debian/libdieharder3.postinst 
dieharder-3.31.1.4/debian/libdieharder3.postinst
--- dieharder-3.31.1.4/debian/libdieharder3.postinst2020-07-25 
17:39:48.0 +
+++ dieharder-3.31.1.4/debian/libdieharder3.postinst1970-01-01 
00:00:00.0 +
@@ -1,26 +0,0 @@
-#!/bin/sh -e
-#
-# postinst script for the Debian GNU/Linux libdieharder3 package
-#
-# Written and GPL'ed by Dirk Eddelbuettel
-
-#DEBHELPER#
-
-ldconfig
-
-case "$1" in
-
-configure) 
-   ;;
-
-upgrade|abort-upgrade|abort-remove|abort-deconfigure)
-   ;;
-
-*)
-echo "postinst called with unknown argument \`$1'" >&2
-;;
-
-esac
-
-exit 0 
-
diff -Nru dieharder-3.31.1.4/debian/libdieharder3t64.files 
dieharder-3.31.1.4/debian/libdieharder3t64.files
--- dieharder-3.31.1.4/debian/libdieharder3t64.files1970-01-01 
00:00:00.0 +
+++ dieharder-3.31.1.4/debian/libdieharder3t64.files2024-02-28 
21:27:47.0 +
@@ -0,0 +1 @@
+usr/lib/libdieharder.so.*
diff -Nru dieharder-3.31.1.4/debian/libdieharder3t64.lintian-overrides 
dieharder-3.31.1.4/debian/libdieharder3t64.lintian-overrides
--- dieharder-3.31.1.4/debian/libdieharder3t64.lintian-overrides
1970-01-01 00:00:00.0 +
+++ dieharder-3.31.1.4/debian/libdieharder3t64.lintian-overrides
2024-02-28 21:27:47.0 +
@@ -0,0 +1 @@
+libdieharder3t64: package-name-doesnt-match-sonames libdieharder3
diff -Nru dieharder-3.31.1.4/debian/libdieharder3t64.postinst 
dieharder-3.31.1.4/debian/libdieharder3t64.postinst
--- dieharder-3.31.1.4/debian/libdieharder3t64.postinst 1970-01-01 
00:00:00.0 +
+++ dieharder-3.31.1.4/debian/libdieharder3t64.postinst 2024-02-28 
21:27:47.0 +
@@ -0,0 +1,26 @@
+#!/bin/sh -e
+#
+# postinst script for the Debian GNU/Linux libdieharder3 package
+#
+# Written and GPL'ed by Dirk Eddelbuettel
+

Bug#1062364: dieharder: NMU diff for 64-bit time_t transition

2024-01-31 Thread mwhudson
Source: dieharder
Version: 3.31.1.4-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
dieharder 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 dieharder
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-15-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)
diff -Nru dieharder-3.31.1.4/debian/changelog 
dieharder-3.31.1.4/debian/changelog
--- dieharder-3.31.1.4/debian/changelog 2022-12-21 13:10:53.0 +
+++ dieharder-3.31.1.4/debian/changelog 2024-02-01 04:37:08.0 +
@@ -1,3 +1,10 @@
+dieharder (3.31.1.4-1.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Michael Hudson-Doyle   Thu, 01 Feb 2024 04:37:08 +
+
 dieharder (3.31.1.4-1) unstable; urgency=medium
 
   * New upstream minor release, now sync'ed with 'public' github
diff -Nru dieharder-3.31.1.4/debian/control dieharder-3.31.1.4/debian/control
--- dieharder-3.31.1.4/debian/control   2022-12-21 13:10:53.0 +
+++ dieharder-3.31.1.4/debian/control   2024-02-01 04:37:08.0 +
@@ -23,7 +23,10 @@
  .
  This package provides the command-line frontend.
 
-Package: libdieharder3
+Package: libdieharder3t64
+Provides: ${t64:Provides}
+Replaces: libdieharder3
+Breaks: libdieharder3 (<< ${source:Version})
 Section: libs
 Architecture: any
 Depends: ${misc:Depends}, ${shlibs:Depends}
@@ -49,7 +52,7 @@
 
 Package: libdieharder-dev
 Architecture: any
-Depends: ${misc:Depends}, libdieharder3 (= ${binary:Version}), libgsl-dev
+Depends: ${misc:Depends}, libdieharder3t64 (= ${binary:Version}), libgsl-dev
 Section: libdevel
 Replaces: libdieharder2 (<= 2.28.1-3)
 Description:  Random-number generator test library -- development package
diff -Nru dieharder-3.31.1.4/debian/libdieharder3.files 
dieharder-3.31.1.4/debian/libdieharder3.files
--- dieharder-3.31.1.4/debian/libdieharder3.files   2020-07-25 
17:39:48.0 +
+++ dieharder-3.31.1.4/debian/libdieharder3.files   1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/libdieharder.so.*
diff -Nru dieharder-3.31.1.4/debian/libdieharder3.postinst 
dieharder-3.31.1.4/debian/libdieharder3.postinst
--- dieharder-3.31.1.4/debian/libdieharder3.postinst2020-07-25 
17:39:48.0 +
+++ dieharder-3.31.1.4/debian/libdieharder3.postinst1970-01-01 
00:00:00.0 +
@@ -1,26 +0,0 @@
-#!/bin/sh -e
-#
-# postinst script for the Debian GNU/Linux libdieharder3 package
-#
-# Written and GPL'ed by Dirk Eddelbuettel
-
-#DEBHELPER#
-
-ldconfig
-
-case "$1" in
-
-configure) 
-   ;;
-
-upgrade|abort-upgrade|abort-remove|abort-deconfigure)
-   ;;
-
-*)
-echo "postinst called with unknown argument \`$1'" >&2
-;;
-
-esac
-
-exit 0 
-
diff -Nru dieharder-3.31.1.4/debian/libdieharder3t64.files 
dieharder-3.31.1.4/debian/libdieharder3t64.files
--- dieharder-3.31.1.4/debian/libdieharder3t64.files1970-01-01 
00:00:00.0 +
+++ dieharder-3.31.1.4/debian/libdieharder3t64.files2020-07-25 
17:39:48.0 +
@@ -0,0 +1 @@
+usr/lib/libdieharder.so.*
diff -Nru dieharder-3.31.1.4/debian/libdieharder3t64.lintian-overrides