Bug#1064167: ldns: NMU diff for 64-bit time_t transition

2024-02-29 Thread Lukas Märdian
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')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-21-generic (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru ldns-1.8.3/debian/changelog ldns-1.8.3/debian/changelog
--- ldns-1.8.3/debian/changelog 2022-09-05 08:39:52.0 +
+++ ldns-1.8.3/debian/changelog 2024-02-29 08:19:16.0 +
@@ -1,3 +1,10 @@
+ldns (1.8.3-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1064167
+
+ -- Lukas Märdian   Thu, 29 Feb 2024 08:19:16 +
+
 ldns (1.8.3-1) unstable; urgency=medium
 
   * new upstream version 1.8.3
diff -Nru ldns-1.8.3/debian/control ldns-1.8.3/debian/control
--- ldns-1.8.3/debian/control   2022-04-25 08:33:02.0 +
+++ ldns-1.8.3/debian/control   2024-02-29 08:19:16.0 +
@@ -4,7 +4,7 @@
 Uploaders: Ondřej Surý ,
Daniel Kahn Gillmor ,
Michael Tokarev 
-Build-Depends: debhelper-compat (= 13),
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13),
dh-sequence-python3,
doxygen,
libpcap-dev,
@@ -20,7 +20,10 @@
 Vcs-Git: https://salsa.debian.org/dns-team/ldns.git
 Homepage: https://www.nlnetlabs.nl/projects/ldns/about/
 
-Package: libldns3
+Package: libldns3t64
+Provides: ${t64:Provides}
+Replaces: libldns3
+Breaks: libldns3 (<< ${source:Version})
 Section: libs
 Architecture: any
 Multi-Arch: same
@@ -38,7 +41,7 @@
 Section: libdevel
 Architecture: any
 Multi-Arch: same
-Depends: libldns3 (= ${binary:Version}),
+Depends: libldns3t64 (= ${binary:Version}),
  libssl-dev,
  ${misc:Depends},
  ${shlibs:Depends}
diff -Nru ldns-1.8.3/debian/libldns3.install ldns-1.8.3/debian/libldns3.install
--- ldns-1.8.3/debian/libldns3.install  2022-04-12 21:36:03.0 +
+++ ldns-1.8.3/debian/libldns3.install  1970-01-01 00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/libldns.so.*
diff -Nru ldns-1.8.3/debian/libldns3.symbols ldns-1.8.3/debian/libldns3.symbols
--- ldns-1.8.3/debian/libldns3.symbols  2022-09-05 08:34:12.0 +
+++ ldns-1.8.3/debian/libldns3.symbols  1970-01-01 00:00:00.0 +
@@ -1,903 +0,0 @@
-libldns.so.3 libldns3 #MINVER#
-* Build-Depends-Package: libldns-dev
- b32_ntop@Base 1.7.1
- b32_ntop_extended_hex@Base 1.7.1
- b32_pton@Base 1.7.1
- b32_pton_extended_hex@Base 1.7.1
- ldns_algorithm2buffer_str@Base 1.7.1
- ldns_algorithms@Base 1.7.1
- ldns_axfr_abort@Base 1.7.1
- ldns_axfr_complete@Base 1.7.1
- ldns_axfr_last_pkt@Base 1.7.1
- ldns_axfr_next@Base 1.7.1
- ldns_axfr_start@Base 1.7.1
- ldns_b32_ntop@Base 1.7.1
- ldns_b32_ntop_extended_hex@Base 1.7.1
- ldns_b32_pton@Base 1.7.1
- ldns_b32_pton_extended_hex@Base 1.7.1
- ldns_b64_ntop@Base 1.7.1
- ldns_b64_pton@Base 1.7.1
- ldns_bget_keyword_data@Base 1.7.1
- ldns_bget_token@Base 1.7.1
- ldns_bgetc@Base 1.7.1
- ldns_bskipcs@Base 1.7.1
- ldns_bubblebabble@Base 1.7.1
- ldns_buffer2pkt_wire@Base 1.7.1
- ldns_buffer2str@Base 1.7.1
- ldns_buffer_copy@Base 1.7.1
- ldns_buffer_export2str@Base 1.7.1
- ldns_buffer_export@Base 1.7.1
- ldns_buffer_free@Base 1.7.1
- ldns_buffer_new@Base 1.7.1
- ldns_buffer_new_frm_data@Base 1.7.1
- ldns_buffer_printf@Base 1.7.1
- ldns_buffer_reserve@Base 1.7.1
- ldns_buffer_set_capacity@Base 1.7.1
- ldns_calc_keytag@Base 1.7.1
- ldns_calc_keytag_raw@Base 1.7.1
- ldns_cert_algorithm2buffer_str@Base 1.7.1
- ldns_cert_algorithms@Base 1.7.1
- ldns_convert_dsa_rrsig_asn12rdf@Base 1.7.1
- ldns_convert_dsa_rrsig_rdf2asn1@Base 1.7.1
- ldns_convert_ecdsa_rrsig_asn1len2rdf@Base 1.7.1
- ldns_convert_ecdsa_rrsig_rdf2asn1@Base 1.7.1
- ldns_create_empty_rrsig@Base 1.7.1
- ldns_create_nsec3@Base 1.7.1
- ldns_create_nsec@Base 1.7.1
- ldns_dane_cert2rdf@Base 1.7.1
- ldns_dane_create_tlsa_owner@Base 1.7.1
- ldns_dane_create_tlsa_rr@Base 1.7.1
- ldns_dane_select_certificate@Base 1.7.1
- ldns_dane_verify@Base 1.7.1
- ldns_dane_verify_rr@Base 1.7.1
- ldns_digest_evp@Base 1.7.1
- ldns_directive_types@Base 1.7.1
- ldns_dname2buffer_wire@Base 1.7.1
- ldns_dname2buffer_wire_compress@Base 1.7.1
- ldns_dname2canonical@Base 1.7.1
- ldns_dname_absolute@Base 1.7.1
- ldns_dname_cat@Base 1.7.1
- ldns_dname_cat_clone@Base 1.7.1
- ldns_dname_clone_from@Base 1.7.1
- ldns_dname_compare@Base 1.7.1
- ldns_dname_compare_v@Base 1.7.1
- ldns_dname_interval@Base 1.7.1
- ldns_dname_is_subdomain@Base 1.7.1
- ldns_dname_is_wildcard@Base 1.7.1
- ldns_dname_label@Base 

Bug#1064167: ldns: NMU diff for 64-bit time_t transition

2024-02-17 Thread Steve Langasek
Source: ldns
Version: 1.8.3-1
Severity: important
Tags: patch pending sid trixie
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
ldns 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 ldns
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'), (500, 'stable'), (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 ldns-1.8.3/debian/changelog ldns-1.8.3/debian/changelog
--- ldns-1.8.3/debian/changelog 2022-09-05 08:39:52.0 +
+++ ldns-1.8.3/debian/changelog 2024-02-17 22:50:26.0 +
@@ -1,3 +1,10 @@
+ldns (1.8.3-1.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Sat, 17 Feb 2024 22:50:26 +
+
 ldns (1.8.3-1) unstable; urgency=medium
 
   * new upstream version 1.8.3
diff -Nru ldns-1.8.3/debian/control ldns-1.8.3/debian/control
--- ldns-1.8.3/debian/control   2022-04-25 08:33:02.0 +
+++ ldns-1.8.3/debian/control   2024-02-17 22:50:26.0 +
@@ -20,7 +20,10 @@
 Vcs-Git: https://salsa.debian.org/dns-team/ldns.git
 Homepage: https://www.nlnetlabs.nl/projects/ldns/about/
 
-Package: libldns3
+Package: libldns3t64
+Provides: ${t64:Provides}
+Replaces: libldns3
+Breaks: libldns3 (<< ${source:Version})
 Section: libs
 Architecture: any
 Multi-Arch: same
@@ -38,7 +41,7 @@
 Section: libdevel
 Architecture: any
 Multi-Arch: same
-Depends: libldns3 (= ${binary:Version}),
+Depends: libldns3t64 (= ${binary:Version}),
  libssl-dev,
  ${misc:Depends},
  ${shlibs:Depends}
diff -Nru ldns-1.8.3/debian/libldns3.install ldns-1.8.3/debian/libldns3.install
--- ldns-1.8.3/debian/libldns3.install  2022-04-12 21:36:03.0 +
+++ ldns-1.8.3/debian/libldns3.install  1970-01-01 00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/libldns.so.*
diff -Nru ldns-1.8.3/debian/libldns3.symbols ldns-1.8.3/debian/libldns3.symbols
--- ldns-1.8.3/debian/libldns3.symbols  2022-09-05 08:34:12.0 +
+++ ldns-1.8.3/debian/libldns3.symbols  1970-01-01 00:00:00.0 +
@@ -1,903 +0,0 @@
-libldns.so.3 libldns3 #MINVER#
-* Build-Depends-Package: libldns-dev
- b32_ntop@Base 1.7.1
- b32_ntop_extended_hex@Base 1.7.1
- b32_pton@Base 1.7.1
- b32_pton_extended_hex@Base 1.7.1
- ldns_algorithm2buffer_str@Base 1.7.1
- ldns_algorithms@Base 1.7.1
- ldns_axfr_abort@Base 1.7.1
- ldns_axfr_complete@Base 1.7.1
- ldns_axfr_last_pkt@Base 1.7.1
- ldns_axfr_next@Base 1.7.1
- ldns_axfr_start@Base 1.7.1
- ldns_b32_ntop@Base 1.7.1
- ldns_b32_ntop_extended_hex@Base 1.7.1
- ldns_b32_pton@Base 1.7.1
- ldns_b32_pton_extended_hex@Base 1.7.1
- ldns_b64_ntop@Base 1.7.1
- ldns_b64_pton@Base 1.7.1
- ldns_bget_keyword_data@Base 1.7.1
- ldns_bget_token@Base 1.7.1
- ldns_bgetc@Base 1.7.1
- ldns_bskipcs@Base 1.7.1
- ldns_bubblebabble@Base 1.7.1
- ldns_buffer2pkt_wire@Base 1.7.1
- ldns_buffer2str@Base 1.7.1
- ldns_buffer_copy@Base 1.7.1
- ldns_buffer_export2str@Base 1.7.1
- ldns_buffer_export@Base 1.7.1
- ldns_buffer_free@Base 1.7.1
- ldns_buffer_new@Base 1.7.1
- ldns_buffer_new_frm_data@Base 1.7.1
- ldns_buffer_printf@Base 1.7.1
- ldns_buffer_reserve@Base 1.7.1
- ldns_buffer_set_capacity@Base 1.7.1
- ldns_calc_keytag@Base 1.7.1
-