Bug#1063199: pacman-package-manager: NMU diff for 64-bit time_t transition

2024-02-29 Thread Benjamin Drung
Source: pacman-package-manager
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 pacman-package-manager-6.0.2/debian/changelog 
pacman-package-manager-6.0.2/debian/changelog
--- pacman-package-manager-6.0.2/debian/changelog   2023-08-16 
04:06:00.0 +
+++ pacman-package-manager-6.0.2/debian/changelog   2024-02-29 
19:16:08.0 +
@@ -1,3 +1,10 @@
+pacman-package-manager (6.0.2-4.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1063199
+
+ -- Benjamin Drung   Thu, 29 Feb 2024 19:16:08 +
+
 pacman-package-manager (6.0.2-4) unstable; urgency=medium
 
   * Add test pycache to clean target (Closes: #1049219)
diff -Nru pacman-package-manager-6.0.2/debian/control 
pacman-package-manager-6.0.2/debian/control
--- pacman-package-manager-6.0.2/debian/control 2023-08-16 04:00:35.0 
+
+++ pacman-package-manager-6.0.2/debian/control 2024-02-29 19:16:08.0 
+
@@ -2,7 +2,7 @@
 Section: admin
 Priority: optional
 Maintainer: Ben Westover 
-Build-Depends:
+Build-Depends: dpkg-dev (>= 1.22.5),
  debhelper-compat (= 13),
  asciidoc ,
  curl ,
@@ -25,7 +25,10 @@
 Homepage: https://archlinux.org/pacman/
 Rules-Requires-Root: no
 
-Package: libalpm13
+Package: libalpm13t64
+Provides: ${t64:Provides}
+Replaces: libalpm13
+Breaks: libalpm13 (<< ${source:Version})
 Architecture: any
 Multi-Arch: same
 Section: libs
@@ -38,7 +41,7 @@
 Architecture: any
 Multi-Arch: same
 Section: libdevel
-Depends: ${misc:Depends}, libalpm13 (= ${binary:Version})
+Depends: ${misc:Depends}, libalpm13t64 (= ${binary:Version})
 Description: Arch Linux Package Management library (development files)
  Development files for libalpm, a package management library primarily
  used by pacman.
diff -Nru pacman-package-manager-6.0.2/debian/libalpm13.install 
pacman-package-manager-6.0.2/debian/libalpm13.install
--- pacman-package-manager-6.0.2/debian/libalpm13.install   2023-08-16 
03:56:06.0 +
+++ pacman-package-manager-6.0.2/debian/libalpm13.install   1970-01-01 
00:00:00.0 +
@@ -1,2 +0,0 @@
-usr/lib/${DEB_HOST_MULTIARCH}/libalpm.so.13*
-usr/share/locale/*/LC_MESSAGES/libalpm.mo
diff -Nru pacman-package-manager-6.0.2/debian/libalpm13.symbols 
pacman-package-manager-6.0.2/debian/libalpm13.symbols
--- pacman-package-manager-6.0.2/debian/libalpm13.symbols   2023-08-16 
03:56:06.0 +
+++ pacman-package-manager-6.0.2/debian/libalpm13.symbols   1970-01-01 
00:00:00.0 +
@@ -1,216 +0,0 @@
-libalpm.so.13 libalpm13 #MINVER#
-* Build-Depends-Package: libalpm-dev
- alpm_add_pkg@Base 13.0.2
- alpm_capabilities@Base 13.0.2
- alpm_checkconflicts@Base 13.0.2
- alpm_checkdeps@Base 13.0.2
- alpm_compute_md5sum@Base 13.0.2
- alpm_compute_sha256sum@Base 13.0.2
- alpm_conflict_free@Base 13.0.2
- alpm_db_add_server@Base 13.0.2
- alpm_db_check_pgp_signature@Base 13.0.2
- alpm_db_get_group@Base 13.0.2
- alpm_db_get_groupcache@Base 13.0.2
- alpm_db_get_name@Base 13.0.2
- alpm_db_get_pkg@Base 13.0.2
- alpm_db_get_pkgcache@Base 13.0.2
- alpm_db_get_servers@Base 13.0.2
- alpm_db_get_siglevel@Base 13.0.2
- alpm_db_get_usage@Base 13.0.2
- alpm_db_get_valid@Base 13.0.2
- alpm_db_remove_server@Base 13.0.2
- alpm_db_search@Base 13.0.2
- alpm_db_set_servers@Base 13.0.2
- alpm_db_set_usage@Base 13.0.2
- alpm_db_unregister@Base 13.0.2
- alpm_db_update@Base 13.0.2
- alpm_decode_signature@Base 13.0.2
- alpm_dep_compute_string@Base 13.0.2
- alpm_dep_free@Base 13.0.2
- alpm_dep_from_string@Base 13.0.2
- alpm_depmissing_free@Base 13.0.2
- alpm_errno@Base 13.0.2
- alpm_extract_keyid@Base 13.0.2
- alpm_fetch_pkgurl@Base 13.0.2
- alpm_fileconflict_free@Base 13.0.2
- alpm_filelist_contains@Base 13.0.2
- alpm_find_dbs_satisfier@Base 13.0.2
- alpm_find_group_pkgs@Base 13.0.2
- alpm_find_satisfier@Base 13.0.2
- alpm_get_localdb@Base 13.0.2
- alpm_get_syncdbs@Base 13.0.2
- alpm_initialize@Base 13.0.2
- alpm_list_add@Base 13.0.2
- alpm_list_add_sorted@Base 13.0.2
- alpm_list_append@Base 13.0.2
- alpm_list_append_strdup@Base 13.0.2
- alpm_list_copy@Base 13.0.2
- alpm_list_copy_data@Base 13.0.2
- alpm_list_count@Base 13.0.2
- alpm_list_diff@Base 13.0.2
- alpm_list_diff_sorted@Base 13.0.2
- alpm_list_find@Base 13.0.2
- alpm_list_find_ptr@Base 13.0.2
- 

Bug#1063199: pacman-package-manager: NMU diff for 64-bit time_t transition

2024-02-05 Thread Lucas Kanashiro
Source: pacman-package-manager
Version: 6.0.2-4
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
pacman-package-manager 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 
pacman-package-manager
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.2.0-39-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, 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 pacman-package-manager-6.0.2/debian/changelog 
pacman-package-manager-6.0.2/debian/changelog
--- pacman-package-manager-6.0.2/debian/changelog   2023-08-16 
01:06:00.0 -0300
+++ pacman-package-manager-6.0.2/debian/changelog   2024-02-05 
13:48:07.0 -0300
@@ -1,3 +1,10 @@
+pacman-package-manager (6.0.2-4.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Lucas Kanashiro   Mon, 05 Feb 2024 13:48:07 -0300
+
 pacman-package-manager (6.0.2-4) unstable; urgency=medium
 
   * Add test pycache to clean target (Closes: #1049219)
diff -Nru pacman-package-manager-6.0.2/debian/control 
pacman-package-manager-6.0.2/debian/control
--- pacman-package-manager-6.0.2/debian/control 2023-08-16 01:00:35.0 
-0300
+++ pacman-package-manager-6.0.2/debian/control 2024-02-05 13:48:07.0 
-0300
@@ -25,7 +25,10 @@
 Homepage: https://archlinux.org/pacman/
 Rules-Requires-Root: no
 
-Package: libalpm13
+Package: libalpm13t64
+Provides: ${t64:Provides}
+Replaces: libalpm13
+Breaks: libalpm13 (<< ${source:Version})
 Architecture: any
 Multi-Arch: same
 Section: libs
@@ -38,7 +41,7 @@
 Architecture: any
 Multi-Arch: same
 Section: libdevel
-Depends: ${misc:Depends}, libalpm13 (= ${binary:Version})
+Depends: ${misc:Depends}, libalpm13t64 (= ${binary:Version})
 Description: Arch Linux Package Management library (development files)
  Development files for libalpm, a package management library primarily
  used by pacman.
diff -Nru pacman-package-manager-6.0.2/debian/libalpm13.install 
pacman-package-manager-6.0.2/debian/libalpm13.install
--- pacman-package-manager-6.0.2/debian/libalpm13.install   2023-08-16 
00:56:06.0 -0300
+++ pacman-package-manager-6.0.2/debian/libalpm13.install   1969-12-31 
21:00:00.0 -0300
@@ -1,2 +0,0 @@
-usr/lib/${DEB_HOST_MULTIARCH}/libalpm.so.13*
-usr/share/locale/*/LC_MESSAGES/libalpm.mo
diff -Nru pacman-package-manager-6.0.2/debian/libalpm13.symbols 
pacman-package-manager-6.0.2/debian/libalpm13.symbols
--- pacman-package-manager-6.0.2/debian/libalpm13.symbols   2023-08-16 
00:56:06.0 -0300
+++ pacman-package-manager-6.0.2/debian/libalpm13.symbols   1969-12-31 
21:00:00.0 -0300
@@ -1,216 +0,0 @@
-libalpm.so.13 libalpm13 #MINVER#
-* Build-Depends-Package: libalpm-dev
- alpm_add_pkg@Base 13.0.2
- alpm_capabilities@Base 13.0.2
- alpm_checkconflicts@Base 13.0.2
- alpm_checkdeps@Base 13.0.2
- alpm_compute_md5sum@Base 13.0.2
- alpm_compute_sha256sum@Base 13.0.2
- alpm_conflict_free@Base 13.0.2
- alpm_db_add_server@Base 13.0.2
- alpm_db_check_pgp_signature@Base 13.0.2
- alpm_db_get_group@Base 13.0.2
- alpm_db_get_groupcache@Base 13.0.2
- alpm_db_get_name@Base 13.0.2
- alpm_db_get_pkg@Base 13.0.2
-