Bug#1063129: libmicrohttpd: NMU diff for 64-bit time_t transition

2024-03-01 Thread Benjamin Drung
Source: libmicrohttpd
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 libmicrohttpd-1.0.0/debian/changelog 
libmicrohttpd-1.0.0/debian/changelog
--- libmicrohttpd-1.0.0/debian/changelog2024-02-07 05:48:47.0 
+
+++ libmicrohttpd-1.0.0/debian/changelog2024-03-01 12:21:57.0 
+
@@ -1,3 +1,10 @@
+libmicrohttpd (1.0.0-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1063129
+
+ -- Benjamin Drung   Fri, 01 Mar 2024 12:21:57 +
+
 libmicrohttpd (1.0.0-2) sid; urgency=medium
 
   * Uploading to sid.
diff -Nru libmicrohttpd-1.0.0/debian/control libmicrohttpd-1.0.0/debian/control
--- libmicrohttpd-1.0.0/debian/control  2024-02-07 05:48:43.0 +
+++ libmicrohttpd-1.0.0/debian/control  2024-03-01 12:21:57.0 +
@@ -2,7 +2,7 @@
 Section: libs
 Priority: optional
 Maintainer: Debian QA Group 
-Build-Depends:
+Build-Depends: dpkg-dev (>= 1.22.5),
  autoconf,
  automake,
  debhelper-compat (= 13),
@@ -22,7 +22,7 @@
 Multi-arch: same
 Depends:
  libgnutls28-dev,
- libmicrohttpd12 (= ${binary:Version}),
+ libmicrohttpd12t64 (= ${binary:Version}),
  ${misc:Depends},
 Description: library embedding HTTP server functionality (development)
  GNU libmicrohttpd is a small C library that is supposed to make it easy to run
@@ -30,7 +30,10 @@
  .
  This package contains the development files.
 
-Package: libmicrohttpd12
+Package: libmicrohttpd12t64
+Provides: ${t64:Provides}
+Replaces: libmicrohttpd12
+Breaks: libmicrohttpd12 (<< ${source:Version})
 Section: libs
 Architecture: any
 Multi-arch: same
diff -Nru libmicrohttpd-1.0.0/debian/libmicrohttpd12.install 
libmicrohttpd-1.0.0/debian/libmicrohttpd12.install
--- libmicrohttpd-1.0.0/debian/libmicrohttpd12.install  2024-02-07 
05:48:32.0 +
+++ libmicrohttpd-1.0.0/debian/libmicrohttpd12.install  1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/*.so.*
diff -Nru libmicrohttpd-1.0.0/debian/libmicrohttpd12.symbols 
libmicrohttpd-1.0.0/debian/libmicrohttpd12.symbols
--- libmicrohttpd-1.0.0/debian/libmicrohttpd12.symbols  2024-02-07 
05:48:32.0 +
+++ libmicrohttpd-1.0.0/debian/libmicrohttpd12.symbols  1970-01-01 
00:00:00.0 +
@@ -1,64 +0,0 @@
-libmicrohttpd.so.12 libmicrohttpd12 #MINVER#
-* Build-Depends-Package: libmicrohttp-dev
- MHD_add_connection@Base 0.9.50
- MHD_add_response_footer@Base 0.9.50
- MHD_add_response_header@Base 0.9.50
- MHD_basic_auth_get_username_password@Base 0.9.50
- MHD_create_post_processor@Base 0.9.50
- MHD_create_response_for_upgrade@Base 0.9.52
- MHD_create_response_from_buffer@Base 0.9.50
- MHD_create_response_from_buffer_with_free_callback@Base 0.9.61
- MHD_create_response_from_buffer_with_free_callback_cls@Base 0.9.75-2
- MHD_create_response_from_callback@Base 0.9.50
- MHD_create_response_from_data@Base 0.9.50
- MHD_create_response_from_fd64@Base 0.9.50
- MHD_create_response_from_fd@Base 0.9.50
- MHD_create_response_from_fd_at_offset64@Base 0.9.50
- MHD_create_response_from_fd_at_offset@Base 0.9.50
- MHD_create_response_from_iovec@Base 0.9.75-2
- MHD_create_response_from_pipe@Base 0.9.72
- MHD_del_response_header@Base 0.9.50
- MHD_destroy_post_processor@Base 0.9.50
- MHD_destroy_response@Base 0.9.50
- MHD_digest_auth_check2@Base 0.9.62
- MHD_digest_auth_check@Base 0.9.50
- MHD_digest_auth_check_digest2@Base 0.9.62
- MHD_digest_auth_check_digest@Base 0.9.60
- MHD_digest_auth_get_username@Base 0.9.50
- MHD_free@Base 0.9.56
- MHD_get_connection_info@Base 0.9.50
- MHD_get_connection_values@Base 0.9.50
- MHD_get_connection_values_n@Base 0.9.64
- MHD_get_daemon_info@Base 0.9.50
- MHD_get_fdset2@Base 0.9.50
- MHD_get_fdset@Base 0.9.50
- MHD_get_reason_phrase_for@Base 0.9.50
- MHD_get_reason_phrase_len_for@Base 0.9.75-2
- MHD_get_response_header@Base 0.9.50
- MHD_get_response_headers@Base 0.9.50
- MHD_get_timeout@Base 0.9.50
- MHD_get_version@Base 0.9.50
- MHD_http_unescape@Base 0.9.50
- MHD_is_feature_supported@Base 0.9.50
- MHD_lookup_connection_value@Base 0.9.50
- MHD_lookup_connection_value_n@Base 0.9.64
- MHD_post_process@Base 0.9.50
- MHD_queue_auth_fail_response2@Base 0.9.62
- MHD_queue_auth_fail_response@Base 0.9.50
- MHD_queue_basic_auth_fail_response@Base 0.9.50
- MHD_queue_response@Base 0.9.50
- MHD_quiesce_daemon@Base 

Bug#1063129: libmicrohttpd: NMU diff for 64-bit time_t transition

2024-02-04 Thread Steve Langasek
Source: libmicrohttpd
Version: 1.0.0-1
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
libmicrohttpd 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 libmicrohttpd
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-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 libmicrohttpd-1.0.0/debian/changelog 
libmicrohttpd-1.0.0/debian/changelog
--- libmicrohttpd-1.0.0/debian/changelog2024-02-03 05:32:37.0 
+
+++ libmicrohttpd-1.0.0/debian/changelog2024-02-05 07:55:29.0 
+
@@ -1,3 +1,10 @@
+libmicrohttpd (1.0.0-1.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Mon, 05 Feb 2024 07:55:29 +
+
 libmicrohttpd (1.0.0-1) sid; urgency=medium
 
   * Uploading to sid.
diff -Nru libmicrohttpd-1.0.0/debian/control libmicrohttpd-1.0.0/debian/control
--- libmicrohttpd-1.0.0/debian/control  2024-02-03 05:31:57.0 +
+++ libmicrohttpd-1.0.0/debian/control  2024-02-05 07:55:28.0 +
@@ -24,7 +24,7 @@
 Multi-arch: same
 Depends:
  libgnutls28-dev,
- libmicrohttpd12 (= ${binary:Version}),
+ libmicrohttpd12t64 (= ${binary:Version}),
  ${misc:Depends},
 Description: library embedding HTTP server functionality (development)
  GNU libmicrohttpd is a small C library that is supposed to make it easy to run
@@ -32,7 +32,10 @@
  .
  This package contains the development files.
 
-Package: libmicrohttpd12
+Package: libmicrohttpd12t64
+Provides: ${t64:Provides}
+Replaces: libmicrohttpd12
+Breaks: libmicrohttpd12 (<< ${source:Version})
 Section: libs
 Architecture: any
 Multi-arch: same
diff -Nru libmicrohttpd-1.0.0/debian/libmicrohttpd12.install 
libmicrohttpd-1.0.0/debian/libmicrohttpd12.install
--- libmicrohttpd-1.0.0/debian/libmicrohttpd12.install  2024-02-03 
05:31:57.0 +
+++ libmicrohttpd-1.0.0/debian/libmicrohttpd12.install  1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/*.so.*
diff -Nru libmicrohttpd-1.0.0/debian/libmicrohttpd12.symbols 
libmicrohttpd-1.0.0/debian/libmicrohttpd12.symbols
--- libmicrohttpd-1.0.0/debian/libmicrohttpd12.symbols  2024-02-03 
05:31:57.0 +
+++ libmicrohttpd-1.0.0/debian/libmicrohttpd12.symbols  1970-01-01 
00:00:00.0 +
@@ -1,64 +0,0 @@
-libmicrohttpd.so.12 libmicrohttpd12 #MINVER#
-* Build-Depends-Package: libmicrohttp-dev
- MHD_add_connection@Base 0.9.50
- MHD_add_response_footer@Base 0.9.50
- MHD_add_response_header@Base 0.9.50
- MHD_basic_auth_get_username_password@Base 0.9.50
- MHD_create_post_processor@Base 0.9.50
- MHD_create_response_for_upgrade@Base 0.9.52
- MHD_create_response_from_buffer@Base 0.9.50
- MHD_create_response_from_buffer_with_free_callback@Base 0.9.61
- MHD_create_response_from_buffer_with_free_callback_cls@Base 0.9.75-2
- MHD_create_response_from_callback@Base 0.9.50
- MHD_create_response_from_data@Base 0.9.50
- MHD_create_response_from_fd64@Base 0.9.50
- MHD_create_response_from_fd@Base 0.9.50
- MHD_create_response_from_fd_at_offset64@Base 0.9.50
- MHD_create_response_from_fd_at_offset@Base 0.9.50
- MHD_create_response_from_iovec@Base 0.9.75-2