Bug#1062283: libetpan: NMU diff for 64-bit time_t transition

2024-02-28 Thread Benjamin Drung
Source: libetpan
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 libetpan-1.9.4/debian/changelog libetpan-1.9.4/debian/changelog
--- libetpan-1.9.4/debian/changelog 2022-12-29 08:42:05.0 +
+++ libetpan-1.9.4/debian/changelog 2024-02-28 11:41:56.0 +
@@ -1,3 +1,10 @@
+libetpan (1.9.4-3.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1062283
+
+ -- Benjamin Drung   Wed, 28 Feb 2024 11:41:56 +
+
 libetpan (1.9.4-3.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru libetpan-1.9.4/debian/control libetpan-1.9.4/debian/control
--- libetpan-1.9.4/debian/control   2022-12-29 08:42:05.0 +
+++ libetpan-1.9.4/debian/control   2024-02-28 11:41:56.0 +
@@ -2,7 +2,7 @@
 Section: mail
 Priority: optional
 Maintainer: Ricardo Mones 
-Build-Depends: debhelper-compat (= 13), pkg-config, libtool, libdb-dev,
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13), pkg-config, 
libtool, libdb-dev,
  libgnutls28-dev, liblockfile-dev, libsasl2-dev, libexpat1-dev,
  libcurl4-gnutls-dev (>= 7.16.4-5)
 Build-Depends-Indep: docbook-dsssl, openjade
@@ -12,7 +12,10 @@
 Vcs-Git: https://salsa.debian.org/claws-mail-team/libetpan.git
 Vcs-Browser: https://salsa.debian.org/claws-mail-team/libetpan
 
-Package: libetpan20
+Package: libetpan20t64
+Provides: ${t64:Provides}
+Replaces: libetpan20
+Breaks: libetpan20 (<< ${source:Version})
 Section: libs
 Architecture: any
 Multi-Arch: same
@@ -29,7 +32,7 @@
 Section: libdevel
 Architecture: any
 Pre-Depends: ${misc:Pre-Depends}
-Depends: ${misc:Depends}, libetpan20 (= ${binary:Version}),
+Depends: ${misc:Depends}, libetpan20t64 (= ${binary:Version}),
  libgnutls28-dev, liblockfile-dev, libsasl2-dev, libexpat1-dev,
  libcurl4-gnutls-dev (>= 7.16.4-5)
 Suggests: libetpan-doc
diff -Nru libetpan-1.9.4/debian/libetpan20.dirs 
libetpan-1.9.4/debian/libetpan20.dirs
--- libetpan-1.9.4/debian/libetpan20.dirs   2022-12-29 08:42:05.0 
+
+++ libetpan-1.9.4/debian/libetpan20.dirs   1970-01-01 00:00:00.0 
+
@@ -1 +0,0 @@
-usr/lib
diff -Nru libetpan-1.9.4/debian/libetpan20.docs 
libetpan-1.9.4/debian/libetpan20.docs
--- libetpan-1.9.4/debian/libetpan20.docs   2022-12-29 08:42:05.0 
+
+++ libetpan-1.9.4/debian/libetpan20.docs   1970-01-01 00:00:00.0 
+
@@ -1,5 +0,0 @@
-NEWS
-doc/DOCUMENTATION
-doc/depend.dot
-doc/layer.fig
-debian/README.apidoc
diff -Nru libetpan-1.9.4/debian/libetpan20.install 
libetpan-1.9.4/debian/libetpan20.install
--- libetpan-1.9.4/debian/libetpan20.install2022-12-29 08:42:05.0 
+
+++ libetpan-1.9.4/debian/libetpan20.install1970-01-01 00:00:00.0 
+
@@ -1 +0,0 @@
-usr/lib/*/libetpan.so.*
diff -Nru libetpan-1.9.4/debian/libetpan20.symbols 
libetpan-1.9.4/debian/libetpan20.symbols
--- libetpan-1.9.4/debian/libetpan20.symbols2022-12-29 08:42:05.0 
+
+++ libetpan-1.9.4/debian/libetpan20.symbols1970-01-01 00:00:00.0 
+
@@ -1,1783 +0,0 @@
-libetpan.so.20 libetpan20 #MINVER#
-* Build-Depends-Package: libetpan-dev
- auth_map_errors@Base 1.0
- carray_add@Base 1.0
- carray_delete@Base 1.0
- carray_delete_fast@Base 1.0
- carray_delete_slow@Base 1.0
- carray_free@Base 1.0
- carray_new@Base 1.0
- carray_set_size@Base 1.0
- charconv@Base 1.0
- charconv_buffer@Base 1.0
- charconv_buffer_free@Base 1.0
- chash_begin@Base 1.0
- chash_clear@Base 1.0
- chash_delete@Base 1.0
- chash_free@Base 1.0
- chash_get@Base 1.0
- chash_new@Base 1.0
- chash_next@Base 1.0
- chash_resize@Base 1.0
- chash_set@Base 1.0
- clist_concat@Base 1.0
- clist_delete@Base 1.0
- clist_foreach@Base 1.0
- clist_free@Base 1.0
- clist_insert_after@Base 1.0
- clist_insert_before@Base 1.0
- clist_new@Base 1.0
- clist_nth@Base 1.0
- clist_nth_data@Base 1.0
- data_message_detach_mime@Base 1.0
- data_message_driver@Base 1.0
- data_message_init@Base 1.0
- db_mailstorage_init@Base 1.0
- db_message_driver@Base 1.0
- db_session_driver@Base 1.0
- decode_base64@Base 1.0
- encode_base64@Base 1.0
- esmtp_address_list_add@Base 1.0
- esmtp_address_list_free@Base 1.0
- esmtp_address_list_new@Base 1.0
- extended_charconv@Base 1.0
- feed_mailstorage_init@Base 1.0
- feed_message_driver@Base 1.0
- feed_session_driver@Base 

Bug#1062283: libetpan: NMU diff for 64-bit time_t transition

2024-01-31 Thread Steve Langasek
Source: libetpan
Version: 1.9.4-3.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
libetpan 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 libetpan
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 libetpan-1.9.4/debian/changelog libetpan-1.9.4/debian/changelog
--- libetpan-1.9.4/debian/changelog 2022-12-29 08:42:05.0 +
+++ libetpan-1.9.4/debian/changelog 2024-02-01 00:10:51.0 +
@@ -1,3 +1,10 @@
+libetpan (1.9.4-3.2) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Thu, 01 Feb 2024 00:10:51 +
+
 libetpan (1.9.4-3.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru libetpan-1.9.4/debian/control libetpan-1.9.4/debian/control
--- libetpan-1.9.4/debian/control   2022-12-29 08:42:05.0 +
+++ libetpan-1.9.4/debian/control   2024-02-01 00:10:51.0 +
@@ -12,7 +12,10 @@
 Vcs-Git: https://salsa.debian.org/claws-mail-team/libetpan.git
 Vcs-Browser: https://salsa.debian.org/claws-mail-team/libetpan
 
-Package: libetpan20
+Package: libetpan20t64
+Provides: ${t64:Provides}
+Replaces: libetpan20
+Breaks: libetpan20 (<< ${source:Version})
 Section: libs
 Architecture: any
 Multi-Arch: same
@@ -29,7 +32,7 @@
 Section: libdevel
 Architecture: any
 Pre-Depends: ${misc:Pre-Depends}
-Depends: ${misc:Depends}, libetpan20 (= ${binary:Version}),
+Depends: ${misc:Depends}, libetpan20t64 (= ${binary:Version}),
  libgnutls28-dev, liblockfile-dev, libsasl2-dev, libexpat1-dev,
  libcurl4-gnutls-dev (>= 7.16.4-5)
 Suggests: libetpan-doc
diff -Nru libetpan-1.9.4/debian/libetpan20.dirs 
libetpan-1.9.4/debian/libetpan20.dirs
--- libetpan-1.9.4/debian/libetpan20.dirs   2022-12-29 08:42:05.0 
+
+++ libetpan-1.9.4/debian/libetpan20.dirs   1970-01-01 00:00:00.0 
+
@@ -1 +0,0 @@
-usr/lib
diff -Nru libetpan-1.9.4/debian/libetpan20.docs 
libetpan-1.9.4/debian/libetpan20.docs
--- libetpan-1.9.4/debian/libetpan20.docs   2022-12-29 08:42:05.0 
+
+++ libetpan-1.9.4/debian/libetpan20.docs   1970-01-01 00:00:00.0 
+
@@ -1,5 +0,0 @@
-NEWS
-doc/DOCUMENTATION
-doc/depend.dot
-doc/layer.fig
-debian/README.apidoc
diff -Nru libetpan-1.9.4/debian/libetpan20.install 
libetpan-1.9.4/debian/libetpan20.install
--- libetpan-1.9.4/debian/libetpan20.install2022-12-29 08:42:05.0 
+
+++ libetpan-1.9.4/debian/libetpan20.install1970-01-01 00:00:00.0 
+
@@ -1 +0,0 @@
-usr/lib/*/libetpan.so.*
diff -Nru libetpan-1.9.4/debian/libetpan20.symbols 
libetpan-1.9.4/debian/libetpan20.symbols
--- libetpan-1.9.4/debian/libetpan20.symbols2022-12-29 08:42:05.0 
+
+++ libetpan-1.9.4/debian/libetpan20.symbols1970-01-01 00:00:00.0 
+
@@ -1,1783 +0,0 @@
-libetpan.so.20 libetpan20 #MINVER#
-* Build-Depends-Package: libetpan-dev
- auth_map_errors@Base 1.0
- carray_add@Base 1.0
- carray_delete@Base 1.0
- carray_delete_fast@Base 1.0
- carray_delete_slow@Base 1.0
- carray_free@Base 1.0
- carray_new@Base 1.0
- carray_set_size@Base 1.0
-