Bug#1062481: libnetconf2: NMU diff for 64-bit time_t transition

2024-02-28 Thread Benjamin Drung
Source: libnetconf2
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 libnetconf2-2.0.24/debian/changelog 
libnetconf2-2.0.24/debian/changelog
--- libnetconf2-2.0.24/debian/changelog 2021-11-25 09:01:26.0 +
+++ libnetconf2-2.0.24/debian/changelog 2024-02-28 14:21:24.0 +
@@ -1,3 +1,10 @@
+libnetconf2 (2.0.24-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1062481
+
+ -- Benjamin Drung   Wed, 28 Feb 2024 14:21:24 +
+
 libnetconf2 (2.0.24-3) unstable; urgency=medium
 
   * Add proper Multi-Arch headers
diff -Nru libnetconf2-2.0.24/debian/control libnetconf2-2.0.24/debian/control
--- libnetconf2-2.0.24/debian/control   2021-11-25 09:01:26.0 +
+++ libnetconf2-2.0.24/debian/control   2024-02-28 14:21:24.0 +
@@ -3,7 +3,7 @@
 Maintainer: Ondřej Surý 
 Priority: optional
 Standards-Version: 4.5.1.0
-Build-Depends: cmake,
+Build-Depends: dpkg-dev (>= 1.22.5), cmake,
debhelper-compat (= 12),
doxygen,
graphviz,
@@ -38,7 +38,10 @@
  .
  This package contains the documentation.
 
-Package: libnetconf2-2
+Package: libnetconf2-2t64
+Provides: ${t64:Provides}
+Replaces: libnetconf2-2
+Breaks: libnetconf2-2 (<< ${source:Version})
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${misc:Depends},
  ${shlibs:Depends}
@@ -66,7 +69,7 @@
  This package contains the shared C library.
 
 Package: libnetconf2-dev
-Depends: libnetconf2-2 (= ${binary:Version}),
+Depends: libnetconf2-2t64 (= ${binary:Version}),
  libyang2-dev,
  ${misc:Depends},
  ${shlibs:Depends}
diff -Nru libnetconf2-2.0.24/debian/libnetconf2-2.install 
libnetconf2-2.0.24/debian/libnetconf2-2.install
--- libnetconf2-2.0.24/debian/libnetconf2-2.install 2021-11-25 
09:01:26.0 +
+++ libnetconf2-2.0.24/debian/libnetconf2-2.install 1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/libnetconf2.so.*
diff -Nru libnetconf2-2.0.24/debian/libnetconf2-2.symbols 
libnetconf2-2.0.24/debian/libnetconf2-2.symbols
--- libnetconf2-2.0.24/debian/libnetconf2-2.symbols 2021-11-25 
09:01:26.0 +
+++ libnetconf2-2.0.24/debian/libnetconf2-2.symbols 1970-01-01 
00:00:00.0 +
@@ -1,249 +0,0 @@
-libnetconf2.so.2 libnetconf2-2 #MINVER#
- nc_accept@Base 1.1.16
- nc_accept_callhome@Base 1.1.16
- nc_accept_inout@Base 1.1.16
- nc_client_destroy@Base 1.1.16
- nc_client_err_clean@Base 1.1.16
- nc_client_get_schema_callback@Base 1.1.16
- nc_client_get_schema_searchpath@Base 1.1.16
- nc_client_get_thread_context@Base 1.1.16
- nc_client_init@Base 1.1.16
- nc_client_session_set_not_strict@Base 1.1.16
- nc_client_set_schema_callback@Base 1.1.16
- nc_client_set_schema_searchpath@Base 1.1.16
- nc_client_set_thread_context@Base 1.1.16
- nc_client_ssh_add_keypair@Base 1.1.16
- nc_client_ssh_ch_add_bind_listen@Base 1.1.16
- nc_client_ssh_ch_add_keypair@Base 1.1.16
- nc_client_ssh_ch_del_bind@Base 1.1.16
- nc_client_ssh_ch_del_keypair@Base 1.1.16
- nc_client_ssh_ch_get_auth_hostkey_check_clb@Base 1.1.16
- nc_client_ssh_ch_get_auth_interactive_clb@Base 1.1.16
- nc_client_ssh_ch_get_auth_password_clb@Base 1.1.16
- nc_client_ssh_ch_get_auth_pref@Base 1.1.16
- nc_client_ssh_ch_get_auth_privkey_passphrase_clb@Base 1.1.16
- nc_client_ssh_ch_get_keypair@Base 1.1.16
- nc_client_ssh_ch_get_keypair_count@Base 1.1.16
- nc_client_ssh_ch_get_username@Base 1.1.16
- nc_client_ssh_ch_set_auth_hostkey_check_clb@Base 1.1.16
- nc_client_ssh_ch_set_auth_interactive_clb@Base 1.1.16
- nc_client_ssh_ch_set_auth_password_clb@Base 1.1.16
- nc_client_ssh_ch_set_auth_pref@Base 1.1.16
- nc_client_ssh_ch_set_auth_privkey_passphrase_clb@Base 1.1.16
- nc_client_ssh_ch_set_username@Base 1.1.16
- nc_client_ssh_del_keypair@Base 1.1.16
- nc_client_ssh_get_auth_hostkey_check_clb@Base 1.1.16
- nc_client_ssh_get_auth_interactive_clb@Base 1.1.16
- nc_client_ssh_get_auth_password_clb@Base 1.1.16
- nc_client_ssh_get_auth_pref@Base 1.1.16
- nc_client_ssh_get_auth_privkey_passphrase_clb@Base 1.1.16
- nc_client_ssh_get_keypair@Base 1.1.16
- nc_client_ssh_get_keypair_count@Base 1.1.16
- nc_client_ssh_get_username@Base 1.1.16
- nc_client_ssh_set_auth_hostkey_check_clb@Base 1.1.16
- nc_client_ssh_set_auth_interactive_clb@Base 1.1.16
- 

Bug#1062481: libnetconf2: NMU diff for 64-bit time_t transition

2024-02-01 Thread Steve Langasek
Source: libnetconf2
Version: 2.0.24-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
libnetconf2 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 libnetconf2
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 libnetconf2-2.0.24/debian/changelog 
libnetconf2-2.0.24/debian/changelog
--- libnetconf2-2.0.24/debian/changelog 2021-11-25 09:01:26.0 +
+++ libnetconf2-2.0.24/debian/changelog 2024-02-01 16:57:10.0 +
@@ -1,3 +1,10 @@
+libnetconf2 (2.0.24-3.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Thu, 01 Feb 2024 16:57:10 +
+
 libnetconf2 (2.0.24-3) unstable; urgency=medium
 
   * Add proper Multi-Arch headers
diff -Nru libnetconf2-2.0.24/debian/control libnetconf2-2.0.24/debian/control
--- libnetconf2-2.0.24/debian/control   2021-11-25 09:01:26.0 +
+++ libnetconf2-2.0.24/debian/control   2024-02-01 16:57:10.0 +
@@ -38,7 +38,10 @@
  .
  This package contains the documentation.
 
-Package: libnetconf2-2
+Package: libnetconf2-2t64
+Provides: ${t64:Provides}
+Replaces: libnetconf2-2
+Breaks: libnetconf2-2 (<< ${source:Version})
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${misc:Depends},
  ${shlibs:Depends}
@@ -66,7 +69,7 @@
  This package contains the shared C library.
 
 Package: libnetconf2-dev
-Depends: libnetconf2-2 (= ${binary:Version}),
+Depends: libnetconf2-2t64 (= ${binary:Version}),
  libyang2-dev,
  ${misc:Depends},
  ${shlibs:Depends}
diff -Nru libnetconf2-2.0.24/debian/libnetconf2-2.install 
libnetconf2-2.0.24/debian/libnetconf2-2.install
--- libnetconf2-2.0.24/debian/libnetconf2-2.install 2021-11-25 
09:01:26.0 +
+++ libnetconf2-2.0.24/debian/libnetconf2-2.install 1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/libnetconf2.so.*
diff -Nru libnetconf2-2.0.24/debian/libnetconf2-2.symbols 
libnetconf2-2.0.24/debian/libnetconf2-2.symbols
--- libnetconf2-2.0.24/debian/libnetconf2-2.symbols 2021-11-25 
09:01:26.0 +
+++ libnetconf2-2.0.24/debian/libnetconf2-2.symbols 1970-01-01 
00:00:00.0 +
@@ -1,249 +0,0 @@
-libnetconf2.so.2 libnetconf2-2 #MINVER#
- nc_accept@Base 1.1.16
- nc_accept_callhome@Base 1.1.16
- nc_accept_inout@Base 1.1.16
- nc_client_destroy@Base 1.1.16
- nc_client_err_clean@Base 1.1.16
- nc_client_get_schema_callback@Base 1.1.16
- nc_client_get_schema_searchpath@Base 1.1.16
- nc_client_get_thread_context@Base 1.1.16
- nc_client_init@Base 1.1.16
- nc_client_session_set_not_strict@Base 1.1.16
- nc_client_set_schema_callback@Base 1.1.16
- nc_client_set_schema_searchpath@Base 1.1.16
- nc_client_set_thread_context@Base 1.1.16
- nc_client_ssh_add_keypair@Base 1.1.16
- nc_client_ssh_ch_add_bind_listen@Base 1.1.16
- nc_client_ssh_ch_add_keypair@Base 1.1.16
- nc_client_ssh_ch_del_bind@Base 1.1.16
- nc_client_ssh_ch_del_keypair@Base 1.1.16
- nc_client_ssh_ch_get_auth_hostkey_check_clb@Base 1.1.16
- nc_client_ssh_ch_get_auth_interactive_clb@Base 1.1.16
- nc_client_ssh_ch_get_auth_password_clb@Base 1.1.16
-