Bug#1063294: pth: NMU diff for 64-bit time_t transition

2024-02-29 Thread Benjamin Drung
Source: pth
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 pth-2.0.7/debian/changelog pth-2.0.7/debian/changelog
--- pth-2.0.7/debian/changelog  2019-08-20 00:19:42.0 +
+++ pth-2.0.7/debian/changelog  2024-02-29 21:22:47.0 +
@@ -1,3 +1,10 @@
+pth (2.0.7-22.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1063294
+
+ -- Benjamin Drung   Thu, 29 Feb 2024 21:22:47 +
+
 pth (2.0.7-22) unstable; urgency=medium
 
   * debian/watch: Fix the URL.
diff -Nru pth-2.0.7/debian/control pth-2.0.7/debian/control
--- pth-2.0.7/debian/control2019-08-19 00:19:53.0 +
+++ pth-2.0.7/debian/control2024-02-29 21:22:47.0 +
@@ -2,13 +2,16 @@
 Section: devel
 Priority: optional
 Maintainer: NIIBE Yutaka 
-Build-Depends: debhelper (>= 10)
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper (>= 10)
 Standards-Version: 4.4.0
 Homepage: https://www.gnu.org/software/pth/
 Vcs-Git: https://salsa.debian.org/debian/pth.git
 Vcs-Browser: https://salsa.debian.org/debian/pth
 
-Package: libpth20
+Package: libpth20t64
+Provides: ${t64:Provides}
+Replaces: libpth20
+Breaks: libpth20 (<< ${source:Version})
 Section: libs
 Architecture: any
 Depends: ${misc:Depends}, ${shlibs:Depends}
@@ -25,7 +28,7 @@
 Package: libpth-dev
 Section: libdevel
 Architecture: any
-Depends: ${misc:Depends}, libpth20 (= ${binary:Version})
+Depends: ${misc:Depends}, libpth20t64 (= ${binary:Version})
 Description: GNU Portable Threads (development)
  Pth is a very portable POSIX/ANSI-C based library for Unix platforms which
  provides non-preemptive priority-based scheduling for multiple threads of
diff -Nru pth-2.0.7/debian/libpth20.docs pth-2.0.7/debian/libpth20.docs
--- pth-2.0.7/debian/libpth20.docs  2019-08-15 04:17:17.0 +
+++ pth-2.0.7/debian/libpth20.docs  1970-01-01 00:00:00.0 +
@@ -1,8 +0,0 @@
-ANNOUNCE
-AUTHORS
-HISTORY
-NEWS
-README
-SUPPORT
-THANKS
-USERS
diff -Nru pth-2.0.7/debian/libpth20.install pth-2.0.7/debian/libpth20.install
--- pth-2.0.7/debian/libpth20.install   2019-08-15 04:17:25.0 +
+++ pth-2.0.7/debian/libpth20.install   1970-01-01 00:00:00.0 +
@@ -1 +0,0 @@
-/usr/lib/*/*.so.*
diff -Nru pth-2.0.7/debian/libpth20.symbols pth-2.0.7/debian/libpth20.symbols
--- pth-2.0.7/debian/libpth20.symbols   2019-08-15 04:17:24.0 +
+++ pth-2.0.7/debian/libpth20.symbols   1970-01-01 00:00:00.0 +
@@ -1,183 +0,0 @@
-libpth.so.20 libpth20 #MINVER#
- __pth_DQ@Base 2.0.7
- __pth_NQ@Base 2.0.7
- __pth_RQ@Base 2.0.7
- __pth_SQ@Base 2.0.7
- __pth_WQ@Base 2.0.7
- __pth_asprintf@Base 2.0.7
- __pth_attr_ctrl@Base 2.0.7
- __pth_cleanup_popall@Base 2.0.7
- __pth_compat_unit@Base 2.0.7
- __pth_current@Base 2.0.7
- __pth_debug@Base 2.0.7
- __pth_dumpqueue@Base 2.0.7
- __pth_dumpstate@Base 2.0.7
- __pth_errno_flag@Base 2.0.7
- __pth_errno_storage@Base 2.0.7
- __pth_favournew@Base 2.0.7
- __pth_initialized@Base 2.0.7
- __pth_key_destroydata@Base 2.0.7
- __pth_loadval@Base 2.0.7
- __pth_main@Base 2.0.7
- __pth_mctx_set@Base 2.0.7
- __pth_mutex_releaseall@Base 2.0.7
- __pth_pqueue_contains@Base 2.0.7
- __pth_pqueue_delete@Base 2.0.7
- __pth_pqueue_delmax@Base 2.0.7
- __pth_pqueue_favorite@Base 2.0.7
- __pth_pqueue_increase@Base 2.0.7
- __pth_pqueue_init@Base 2.0.7
- __pth_pqueue_insert@Base 2.0.7
- __pth_pqueue_tail@Base 2.0.7
- __pth_pqueue_walk@Base 2.0.7
- __pth_readv_faked@Base 2.0.7
- __pth_ring_append@Base 2.0.7
- __pth_ring_contains@Base 2.0.7
- __pth_ring_delete@Base 2.0.7
- __pth_ring_dequeue@Base 2.0.7
- __pth_ring_favorite@Base 2.0.7
- __pth_ring_init@Base 2.0.7
- __pth_ring_insert_after@Base 2.0.7
- __pth_ring_insert_before@Base 2.0.7
- __pth_ring_pop@Base 2.0.7
- __pth_ring_prepend@Base 2.0.7
- __pth_sched@Base 2.0.7
- __pth_sched_eventmanager@Base 2.0.7
- __pth_sched_eventmanager_sighandler@Base 2.0.7
- __pth_scheduler@Base 2.0.7
- __pth_scheduler_drop@Base 2.0.7
- __pth_scheduler_init@Base 2.0.7
- __pth_scheduler_kill@Base 2.0.7
- __pth_snprintf@Base 2.0.7
- __pth_state_names@Base 2.0.7
- __pth_syscall_init@Base 2.0.7
- __pth_syscall_kill@Base 2.0.7
- __pth_tcb_alloc@Base 2.0.7
- __pth_tcb_free@Base 2.0.7
- __pth_thread_cleanup@Base 2.0.7
- __pth_thread_exists@Base 2.0.7
- __pth_time_cmp@Base 2.0.7
- 

Bug#1063294: pth: NMU diff for 64-bit time_t transition

2024-02-05 Thread Lucas Kanashiro
Source: pth
Version: 2.0.7-22
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
pth 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 pth
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-15-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, 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 pth-2.0.7/debian/changelog pth-2.0.7/debian/changelog
--- pth-2.0.7/debian/changelog  2019-08-19 21:19:42.0 -0300
+++ pth-2.0.7/debian/changelog  2024-02-05 23:34:14.0 -0300
@@ -1,3 +1,10 @@
+pth (2.0.7-22.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Lucas Kanashiro   Mon, 05 Feb 2024 23:34:14 -0300
+
 pth (2.0.7-22) unstable; urgency=medium
 
   * debian/watch: Fix the URL.
diff -Nru pth-2.0.7/debian/control pth-2.0.7/debian/control
--- pth-2.0.7/debian/control2019-08-18 21:19:53.0 -0300
+++ pth-2.0.7/debian/control2024-02-05 23:34:14.0 -0300
@@ -8,7 +8,10 @@
 Vcs-Git: https://salsa.debian.org/debian/pth.git
 Vcs-Browser: https://salsa.debian.org/debian/pth
 
-Package: libpth20
+Package: libpth20t64
+Provides: ${t64:Provides}
+Replaces: libpth20
+Breaks: libpth20 (<< ${source:Version})
 Section: libs
 Architecture: any
 Depends: ${misc:Depends}, ${shlibs:Depends}
@@ -25,7 +28,7 @@
 Package: libpth-dev
 Section: libdevel
 Architecture: any
-Depends: ${misc:Depends}, libpth20 (= ${binary:Version})
+Depends: ${misc:Depends}, libpth20t64 (= ${binary:Version})
 Description: GNU Portable Threads (development)
  Pth is a very portable POSIX/ANSI-C based library for Unix platforms which
  provides non-preemptive priority-based scheduling for multiple threads of
diff -Nru pth-2.0.7/debian/libpth20.docs pth-2.0.7/debian/libpth20.docs
--- pth-2.0.7/debian/libpth20.docs  2019-08-15 01:17:17.0 -0300
+++ pth-2.0.7/debian/libpth20.docs  1969-12-31 21:00:00.0 -0300
@@ -1,8 +0,0 @@
-ANNOUNCE
-AUTHORS
-HISTORY
-NEWS
-README
-SUPPORT
-THANKS
-USERS
diff -Nru pth-2.0.7/debian/libpth20.install pth-2.0.7/debian/libpth20.install
--- pth-2.0.7/debian/libpth20.install   2019-08-15 01:17:25.0 -0300
+++ pth-2.0.7/debian/libpth20.install   1969-12-31 21:00:00.0 -0300
@@ -1 +0,0 @@
-/usr/lib/*/*.so.*
diff -Nru pth-2.0.7/debian/libpth20.symbols pth-2.0.7/debian/libpth20.symbols
--- pth-2.0.7/debian/libpth20.symbols   2019-08-15 01:17:24.0 -0300
+++ pth-2.0.7/debian/libpth20.symbols   1969-12-31 21:00:00.0 -0300
@@ -1,183 +0,0 @@
-libpth.so.20 libpth20 #MINVER#
- __pth_DQ@Base 2.0.7
- __pth_NQ@Base 2.0.7
- __pth_RQ@Base 2.0.7
- __pth_SQ@Base 2.0.7
- __pth_WQ@Base 2.0.7
- __pth_asprintf@Base 2.0.7
- __pth_attr_ctrl@Base 2.0.7
- __pth_cleanup_popall@Base 2.0.7
- __pth_compat_unit@Base 2.0.7
- __pth_current@Base 2.0.7
- __pth_debug@Base 2.0.7
- __pth_dumpqueue@Base 2.0.7
- __pth_dumpstate@Base 2.0.7
- __pth_errno_flag@Base 2.0.7
- __pth_errno_storage@Base 2.0.7
- __pth_favournew@Base 2.0.7
- __pth_initialized@Base 2.0.7
- __pth_key_destroydata@Base 2.0.7
- __pth_loadval@Base 2.0.7
- __pth_main@Base 2.0.7
- __pth_mctx_set@Base 2.0.7
- __pth_mutex_releaseall@Base 2.0.7
-