Source: libnatpmp
Version: 20230423-1.1
Severity: serious
Tags: patch pending
Justification: library ABI skew on upgrade
User: [email protected]
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
libnatpmp 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 libnatpmp
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'), (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 libnatpmp-20230423/debian/changelog 
libnatpmp-20230423/debian/changelog
--- libnatpmp-20230423/debian/changelog 2023-09-13 17:23:52.000000000 +0000
+++ libnatpmp-20230423/debian/changelog 2024-02-01 16:18:49.000000000 +0000
@@ -1,3 +1,10 @@
+libnatpmp (20230423-1.2) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek <[email protected]>  Thu, 01 Feb 2024 16:18:49 +0000
+
 libnatpmp (20230423-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru libnatpmp-20230423/debian/control libnatpmp-20230423/debian/control
--- libnatpmp-20230423/debian/control   2023-09-13 17:16:52.000000000 +0000
+++ libnatpmp-20230423/debian/control   2024-02-01 16:18:48.000000000 +0000
@@ -20,7 +20,7 @@
 Architecture: linux-any kfreebsd-any
 Section: libdevel
 Depends:
- libnatpmp1 (= ${binary:Version}),
+ libnatpmp1t64 (= ${binary:Version}),
  ${misc:Depends},
 Multi-Arch: same
 Description: portable and fully compliant implementation of NAT-PMP (dev files)
@@ -38,7 +38,10 @@
  .
  This package contains development files needed to build using libnatpmp.
 
-Package: libnatpmp1
+Package: libnatpmp1t64
+Provides: ${t64:Provides}
+Replaces: libnatpmp1
+Breaks: libnatpmp1 (<< ${source:Version})
 Architecture: linux-any kfreebsd-any
 Section: libs
 Depends:
diff -Nru libnatpmp-20230423/debian/libnatpmp1.install 
libnatpmp-20230423/debian/libnatpmp1.install
--- libnatpmp-20230423/debian/libnatpmp1.install        2023-09-13 
17:16:52.000000000 +0000
+++ libnatpmp-20230423/debian/libnatpmp1.install        1970-01-01 
00:00:00.000000000 +0000
@@ -1 +0,0 @@
-usr/lib/*/libnatpmp*.so.*
diff -Nru libnatpmp-20230423/debian/libnatpmp1.symbols 
libnatpmp-20230423/debian/libnatpmp1.symbols
--- libnatpmp-20230423/debian/libnatpmp1.symbols        2023-09-13 
17:16:52.000000000 +0000
+++ libnatpmp-20230423/debian/libnatpmp1.symbols        1970-01-01 
00:00:00.000000000 +0000
@@ -1,13 +0,0 @@
-libnatpmp.so.1 libnatpmp1 #MINVER#
-* Build-Depends-Package: libnatpmp-dev
- closenatpmp@Base 20150609
- getdefaultgateway@Base 20150609
- getnatpmprequesttimeout@Base 20150609
- initnatpmp@Base 20150609
- readnatpmpresponse@Base 20150609
- readnatpmpresponseorretry@Base 20150609
- sendnatpmprequest@Base 20150609
- sendnewportmappingrequest@Base 20150609
- sendpendingrequest@Base 20150609
- sendpublicaddressrequest@Base 20150609
- strnatpmperr@Base 20150609
diff -Nru libnatpmp-20230423/debian/libnatpmp1t64.install 
libnatpmp-20230423/debian/libnatpmp1t64.install
--- libnatpmp-20230423/debian/libnatpmp1t64.install     1970-01-01 
00:00:00.000000000 +0000
+++ libnatpmp-20230423/debian/libnatpmp1t64.install     2023-09-13 
17:16:52.000000000 +0000
@@ -0,0 +1 @@
+usr/lib/*/libnatpmp*.so.*
diff -Nru libnatpmp-20230423/debian/libnatpmp1t64.lintian-overrides 
libnatpmp-20230423/debian/libnatpmp1t64.lintian-overrides
--- libnatpmp-20230423/debian/libnatpmp1t64.lintian-overrides   1970-01-01 
00:00:00.000000000 +0000
+++ libnatpmp-20230423/debian/libnatpmp1t64.lintian-overrides   2024-02-01 
16:18:48.000000000 +0000
@@ -0,0 +1 @@
+libnatpmp1t64: package-name-doesnt-match-sonames libnatpmp1
diff -Nru libnatpmp-20230423/debian/libnatpmp1t64.symbols 
libnatpmp-20230423/debian/libnatpmp1t64.symbols
--- libnatpmp-20230423/debian/libnatpmp1t64.symbols     1970-01-01 
00:00:00.000000000 +0000
+++ libnatpmp-20230423/debian/libnatpmp1t64.symbols     2024-02-01 
16:18:48.000000000 +0000
@@ -0,0 +1,13 @@
+libnatpmp.so.1 libnatpmp1t64 #MINVER#
+* Build-Depends-Package: libnatpmp-dev
+ closenatpmp@Base 20150609
+ getdefaultgateway@Base 20150609
+ getnatpmprequesttimeout@Base 20150609
+ initnatpmp@Base 20150609
+ readnatpmpresponse@Base 20150609
+ readnatpmpresponseorretry@Base 20150609
+ sendnatpmprequest@Base 20150609
+ sendnewportmappingrequest@Base 20150609
+ sendpendingrequest@Base 20150609
+ sendpublicaddressrequest@Base 20150609
+ strnatpmperr@Base 20150609
diff -Nru libnatpmp-20230423/debian/rules libnatpmp-20230423/debian/rules
--- libnatpmp-20230423/debian/rules     2023-09-13 17:16:52.000000000 +0000
+++ libnatpmp-20230423/debian/rules     2024-02-01 16:18:49.000000000 +0000
@@ -23,5 +23,5 @@
        mv debian/tmp/usr/lib/libnatpmp* 
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
 
 override_dh_installdocs:
-       dh_installdocs -plibnatpmp-dev -plibnatpmp1 --link-doc=libnatpmp1
-       dh_installdocs -Nlibnatpmp-dev -Nlibnatpmp1
+       dh_installdocs -plibnatpmp-dev -plibnatpmp1t64 --link-doc=libnatpmp1t64
+       dh_installdocs -Nlibnatpmp-dev -Nlibnatpmp1t64

Reply via email to