Bug#1062055: chemps2: 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 chemps2-1.8.12/debian/changelog chemps2-1.8.12/debian/changelog
--- chemps2-1.8.12/debian/changelog 2024-01-16 07:45:40.0 +
+++ chemps2-1.8.12/debian/changelog 2024-02-28 15:31:17.0 +
@@ -1,3 +1,10 @@
+chemps2 (1.8.12-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1062055
+
+ -- Steve Langasek   Wed, 28 Feb 2024 15:31:17 +
+
 chemps2 (1.8.12-3) unstable; urgency=medium
 
   * Team upload.
diff -Nru chemps2-1.8.12/debian/control chemps2-1.8.12/debian/control
--- chemps2-1.8.12/debian/control   2024-01-16 07:45:40.0 +
+++ chemps2-1.8.12/debian/control   2024-02-28 15:31:17.0 +
@@ -4,7 +4,7 @@
 Maintainer: Debichem Team 
 Uploaders: Sebastian Wouters ,
Michael Banck 
-Build-Depends: debhelper-compat (= 13),
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13),
cmake,
libblas-dev,
liblapack-dev,
@@ -26,7 +26,10 @@
 Vcs-Git: https://salsa.debian.org/debichem-team/chemps2.git
 Vcs-Browser: https://salsa.debian.org/debichem-team/chemps2
 
-Package: libchemps2-3
+Package: libchemps2-3t64
+Provides: ${t64:Provides}
+Replaces: libchemps2-3
+Breaks: libchemps2-3 (<< ${source:Version})
 Architecture: any
 Multi-Arch: same
 Depends: ${shlibs:Depends},
@@ -60,9 +63,9 @@
 Architecture: any
 Depends: ${shlibs:Depends},
  ${misc:Depends},
- libchemps2-3 (= ${binary:Version})
+ libchemps2-3t64 (= ${binary:Version})
 Suggests: chemps2-doc
-Description: C++ headers, static library, and symlink for libchemps2-3
+Description: C++ headers, static library, and symlink for libchemps2-3t64
  chemps2 is a scientific library which contains a spin-adapted
  implementation of the density matrix renormalization group (DMRG)
  for ab initio quantum chemistry. This wavefunction method allows one
@@ -94,7 +97,7 @@
 Multi-Arch: foreign
 Depends: ${sphinxdoc:Depends},
  ${misc:Depends}
-Description: Documentation of the libchemps2-3 package
+Description: Documentation of the libchemps2-3t64 package
  chemps2 is a scientific library which contains a spin-adapted
  implementation of the density matrix renormalization group (DMRG)
  for ab initio quantum chemistry. This wavefunction method allows one
@@ -124,11 +127,11 @@
 Architecture: any
 Depends: ${shlibs:Depends},
  ${misc:Depends},
- libchemps2-3 (= ${binary:Version})
+ libchemps2-3t64 (= ${binary:Version})
 Breaks: libchemps2-1 (<< 1.7-1~)
 Replaces: libchemps2-1 (<< 1.7-1~)
 Suggests: chemps2-doc
-Description: Executable to call libchemps2-3 from the command line
+Description: Executable to call libchemps2-3t64 from the command line
  chemps2 is a scientific library which contains a spin-adapted
  implementation of the density matrix renormalization group (DMRG)
  for ab initio quantum chemistry. This wavefunction method allows one
@@ -162,9 +165,9 @@
 Depends: ${python3:Depends},
  ${shlibs:Depends},
  ${misc:Depends},
- libchemps2-3 (= ${binary:Version})
+ libchemps2-3t64 (= ${binary:Version})
 Suggests: chemps2-doc
-Description: Python 3 interface for libchemps2-3
+Description: Python 3 interface for libchemps2-3t64
  chemps2 is a scientific library which contains a spin-adapted
  implementation of the density matrix renormalization group (DMRG)
  for ab initio quantum chemistry. This wavefunction method allows one
diff -Nru chemps2-1.8.12/debian/libchemps2-3.install 
chemps2-1.8.12/debian/libchemps2-3.install
--- chemps2-1.8.12/debian/libchemps2-3.install  2024-01-16 07:45:40.0 
+
+++ chemps2-1.8.12/debian/libchemps2-3.install  1970-01-01 00:00:00.0 
+
@@ -1 +0,0 @@
-usr/lib/*/lib*.so.*
diff -Nru chemps2-1.8.12/debian/libchemps2-3.symbols 
chemps2-1.8.12/debian/libchemps2-3.symbols
--- chemps2-1.8.12/debian/libchemps2-3.symbols  2024-01-16 07:45:40.0 
+
+++ chemps2-1.8.12/debian/libchemps2-3.symbols  1970-01-01 00:00:00.0 
+
@@ -1,1078 +0,0 @@
-libchemps2.so.3 libchemps2-3 #MINVER#
- 
_ZN7CheMPS210Excitation10first_leftEiPKNS_12SyBookkeeperES3_dPNS_7SobjectES5_PNS_7TensorLE@Base
 1.8.7
- 

Bug#1062055: chemps2: NMU diff for 64-bit time_t transition

2024-01-31 Thread Steve Langasek
Source: chemps2
Version: 1.8.12-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
chemps2 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 chemps2
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 chemps2-1.8.12/debian/changelog chemps2-1.8.12/debian/changelog
--- chemps2-1.8.12/debian/changelog 2024-01-16 07:45:40.0 +
+++ chemps2-1.8.12/debian/changelog 2024-01-31 08:41:25.0 +
@@ -1,3 +1,10 @@
+chemps2 (1.8.12-3.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Wed, 31 Jan 2024 08:41:25 +
+
 chemps2 (1.8.12-3) unstable; urgency=medium
 
   * Team upload.
diff -Nru chemps2-1.8.12/debian/control chemps2-1.8.12/debian/control
--- chemps2-1.8.12/debian/control   2024-01-16 07:45:40.0 +
+++ chemps2-1.8.12/debian/control   2024-01-31 08:41:25.0 +
@@ -26,7 +26,10 @@
 Vcs-Git: https://salsa.debian.org/debichem-team/chemps2.git
 Vcs-Browser: https://salsa.debian.org/debichem-team/chemps2
 
-Package: libchemps2-3
+Package: libchemps2-3t64
+Provides: ${t64:Provides}
+Replaces: libchemps2-3
+Breaks: libchemps2-3 (<< ${source:Version})
 Architecture: any
 Multi-Arch: same
 Depends: ${shlibs:Depends},
@@ -60,9 +63,9 @@
 Architecture: any
 Depends: ${shlibs:Depends},
  ${misc:Depends},
- libchemps2-3 (= ${binary:Version})
+ libchemps2-3t64 (= ${binary:Version})
 Suggests: chemps2-doc
-Description: C++ headers, static library, and symlink for libchemps2-3
+Description: C++ headers, static library, and symlink for libchemps2-3t64
  chemps2 is a scientific library which contains a spin-adapted
  implementation of the density matrix renormalization group (DMRG)
  for ab initio quantum chemistry. This wavefunction method allows one
@@ -94,7 +97,7 @@
 Multi-Arch: foreign
 Depends: ${sphinxdoc:Depends},
  ${misc:Depends}
-Description: Documentation of the libchemps2-3 package
+Description: Documentation of the libchemps2-3t64 package
  chemps2 is a scientific library which contains a spin-adapted
  implementation of the density matrix renormalization group (DMRG)
  for ab initio quantum chemistry. This wavefunction method allows one
@@ -124,11 +127,11 @@
 Architecture: any
 Depends: ${shlibs:Depends},
  ${misc:Depends},
- libchemps2-3 (= ${binary:Version})
+ libchemps2-3t64 (= ${binary:Version})
 Breaks: libchemps2-1 (<< 1.7-1~)
 Replaces: libchemps2-1 (<< 1.7-1~)
 Suggests: chemps2-doc
-Description: Executable to call libchemps2-3 from the command line
+Description: Executable to call libchemps2-3t64 from the command line
  chemps2 is a scientific library which contains a spin-adapted
  implementation of the density matrix renormalization group (DMRG)
  for ab initio quantum chemistry. This wavefunction method allows one
@@ -162,9 +165,9 @@
 Depends: ${python3:Depends},
  ${shlibs:Depends},
  ${misc:Depends},
- libchemps2-3 (= ${binary:Version})
+ libchemps2-3t64 (= ${binary:Version})
 Suggests: chemps2-doc
-Description: Python 3 interface for