Bug#1063291: xdmf: NMU diff for 64-bit time_t transition

2024-02-28 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 xdmf-3.0+git20190531/debian/changelog 
xdmf-3.0+git20190531/debian/changelog
--- xdmf-3.0+git20190531/debian/changelog   2024-02-03 08:04:51.0 
+
+++ xdmf-3.0+git20190531/debian/changelog   2024-02-29 06:23:26.0 
+
@@ -1,3 +1,10 @@
+xdmf (3.0+git20190531-13.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1063291
+
+ -- Steve Langasek   Thu, 29 Feb 2024 06:23:26 +
+
 xdmf (3.0+git20190531-13) unstable; urgency=medium
 
   * Standards-Version: 4.6.2
diff -Nru xdmf-3.0+git20190531/debian/control 
xdmf-3.0+git20190531/debian/control
--- xdmf-3.0+git20190531/debian/control 2024-02-03 08:04:51.0 +
+++ xdmf-3.0+git20190531/debian/control 2024-02-29 06:23:26.0 +
@@ -2,7 +2,7 @@
 Section: science
 Priority: optional
 Maintainer: Alastair McKinstry 
-Build-Depends: debhelper-compat (= 13),
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13),
   dh-sequence-python3, 
   python3-all-dev, 
   cmake(>= 2.4.0), 
@@ -20,7 +20,10 @@
 Vcs-Browser: https://salsa.debian.org/science-team/xdmf
 Vcs-Git: https://salsa.debian.org/science-team/xdmf.git -b debian/latest
 
-Package:  libxdmf3
+Package:  libxdmf3t64
+Provides: ${t64:Provides}
+Replaces: libxdmf3
+Breaks: libxdmf3 (<< ${source:Version})
 Section: libs
 Architecture: any
 Multi-Arch: same
@@ -46,8 +49,8 @@
 Section: libdevel
 Architecture: any
 Conflicts: libloki-dev
-Depends: libxdmf3  (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, 
libgzstream-dev
-Breaks: libxdmf3 (<< 3.0+git20190531)
+Depends: libxdmf3t64  (= ${binary:Version}), ${misc:Depends}, 
${shlibs:Depends}, libgzstream-dev
+Breaks: libxdmf3t64 (<< 3.0+git20190531)
 Description: eXtensible Data Model and Format development tools
  This package contains the headers and development tools needed to build
  against the Xdmf libraries.
@@ -55,7 +58,7 @@
 Package: python3-xdmf
 Section: python
 Architecture: any
-Depends: libxdmf3  (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, 
${python3:Depends}
+Depends: libxdmf3t64  (= ${binary:Version}), ${misc:Depends}, 
${shlibs:Depends}, ${python3:Depends}
 Description: Python3 wrappers for the eXtensible Data Model and Format library
  This package provides python3 wrappers for the libXDMF library.
 
diff -Nru xdmf-3.0+git20190531/debian/libxdmf3.install.in 
xdmf-3.0+git20190531/debian/libxdmf3.install.in
--- xdmf-3.0+git20190531/debian/libxdmf3.install.in 2024-02-03 
08:04:51.0 +
+++ xdmf-3.0+git20190531/debian/libxdmf3.install.in 1970-01-01 
00:00:00.0 +
@@ -1,6 +0,0 @@
-/usr/lib/@MULTIARCH@/libXdmf.so.3.0.0  /usr/lib/@MULTIARCH@/xdmf/@MPI@
-/usr/lib/@MULTIARCH@/libXdmfUtils.so.3.0.0 /usr/lib/@MULTIARCH@/xdmf/@MPI@
-/usr/lib/libXdmfCore.so.3.0.0  /usr/lib/@MULTIARCH@/xdmf/@MPI@
-./debian/build-serial-@PY3@/lib/libXdmf.so.3.0.0   
/usr/lib/@MULTIARCH@/xdmf/serial
-./debian/build-serial-@PY3@/lib/libXdmfCore.so.3.0.0   
/usr/lib/@MULTIARCH@/xdmf/serial
-./debian/build-serial-@PY3@/lib/libXdmfUtils.so.3.0.0  
/usr/lib/@MULTIARCH@/xdmf/serial
diff -Nru xdmf-3.0+git20190531/debian/libxdmf3.links.in 
xdmf-3.0+git20190531/debian/libxdmf3.links.in
--- xdmf-3.0+git20190531/debian/libxdmf3.links.in   2024-02-03 
08:04:51.0 +
+++ xdmf-3.0+git20190531/debian/libxdmf3.links.in   1970-01-01 
00:00:00.0 +
@@ -1,12 +0,0 @@
-/usr/lib/@MULTIARCH@/xdmf/@MPI@/libXdmf.so.3.0.0   
/usr/lib/@MULTIARCH@/xdmf/@MPI@/libXdmf.so.3
-/usr/lib/@MULTIARCH@/xdmf/@MPI@/libXdmfCore.so.3.0.0   
/usr/lib/@MULTIARCH@/xdmf/@MPI@/libXdmfCore.so.3
-/usr/lib/@MULTIARCH@/xdmf/@MPI@/libXdmfUtils.so.3.0.0  
/usr/lib/@MULTIARCH@/xdmf/@MPI@/libXdmfUtils.so.3
-/usr/lib/@MULTIARCH@/xdmf/serial/libXdmf.so.3.0.0  
/usr/lib/@MULTIARCH@/xdmf/serial/libXdmf.so.3
-/usr/lib/@MULTIARCH@/xdmf/serial/libXdmfCore.so.3.0.0  
/usr/lib/@MULTIARCH@/xdmf/serial/libXdmfCore.so.3
-/usr/lib/@MULTIARCH@/xdmf/serial/libXdmfUtils.so.3.0.0 
/usr/lib/@MULTIARCH@/xdmf/serial/libXdmfUtils.so.3
-/usr/lib/@MULTIARCH@/xdmf/@MPI@/libXdmf.so.3.0.0   
/usr/lib/@MULTIARCH@/libXdmf.so.3.0.0
-/usr/lib/@MULTIARCH@/xdmf/@MPI@/libXdmfCore.so.3.0.0   
/usr/lib/@MULTIARCH@/libXdmfCore.so.3.0.0

Bug#1063291: xdmf: NMU diff for 64-bit time_t transition

2024-02-05 Thread Steve Langasek
Source: xdmf
Version: 3.0+git20190531-13
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
xdmf 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 xdmf
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'), (500, 'stable'), (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 xdmf-3.0+git20190531/debian/changelog 
xdmf-3.0+git20190531/debian/changelog
--- xdmf-3.0+git20190531/debian/changelog   2024-02-03 08:04:51.0 
+
+++ xdmf-3.0+git20190531/debian/changelog   2024-02-06 00:41:43.0 
+
@@ -1,3 +1,10 @@
+xdmf (3.0+git20190531-13.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Tue, 06 Feb 2024 00:41:43 +
+
 xdmf (3.0+git20190531-13) unstable; urgency=medium
 
   * Standards-Version: 4.6.2
diff -Nru xdmf-3.0+git20190531/debian/control 
xdmf-3.0+git20190531/debian/control
--- xdmf-3.0+git20190531/debian/control 2024-02-03 08:04:51.0 +
+++ xdmf-3.0+git20190531/debian/control 2024-02-06 00:41:43.0 +
@@ -20,7 +20,10 @@
 Vcs-Browser: https://salsa.debian.org/science-team/xdmf
 Vcs-Git: https://salsa.debian.org/science-team/xdmf.git -b debian/latest
 
-Package:  libxdmf3
+Package:  libxdmf3t64
+Provides: ${t64:Provides}
+Replaces: libxdmf3
+Breaks: libxdmf3 (<< ${source:Version})
 Section: libs
 Architecture: any
 Multi-Arch: same
@@ -46,8 +49,8 @@
 Section: libdevel
 Architecture: any
 Conflicts: libloki-dev
-Depends: libxdmf3  (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, 
libgzstream-dev
-Breaks: libxdmf3 (<< 3.0+git20190531)
+Depends: libxdmf3t64  (= ${binary:Version}), ${misc:Depends}, 
${shlibs:Depends}, libgzstream-dev
+Breaks: libxdmf3t64 (<< 3.0+git20190531)
 Description: eXtensible Data Model and Format development tools
  This package contains the headers and development tools needed to build
  against the Xdmf libraries.
@@ -55,7 +58,7 @@
 Package: python3-xdmf
 Section: python
 Architecture: any
-Depends: libxdmf3  (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, 
${python3:Depends}
+Depends: libxdmf3t64  (= ${binary:Version}), ${misc:Depends}, 
${shlibs:Depends}, ${python3:Depends}
 Description: Python3 wrappers for the eXtensible Data Model and Format library
  This package provides python3 wrappers for the libXDMF library.
 
diff -Nru xdmf-3.0+git20190531/debian/libxdmf3.install.in 
xdmf-3.0+git20190531/debian/libxdmf3.install.in
--- xdmf-3.0+git20190531/debian/libxdmf3.install.in 2024-02-03 
08:04:51.0 +
+++ xdmf-3.0+git20190531/debian/libxdmf3.install.in 1970-01-01 
00:00:00.0 +
@@ -1,6 +0,0 @@
-/usr/lib/@MULTIARCH@/libXdmf.so.3.0.0  /usr/lib/@MULTIARCH@/xdmf/@MPI@
-/usr/lib/@MULTIARCH@/libXdmfUtils.so.3.0.0 /usr/lib/@MULTIARCH@/xdmf/@MPI@
-/usr/lib/libXdmfCore.so.3.0.0  /usr/lib/@MULTIARCH@/xdmf/@MPI@
-./debian/build-serial-@PY3@/lib/libXdmf.so.3.0.0   
/usr/lib/@MULTIARCH@/xdmf/serial
-./debian/build-serial-@PY3@/lib/libXdmfCore.so.3.0.0   
/usr/lib/@MULTIARCH@/xdmf/serial