Bug#1063299: xwiimote: NMU diff for 64-bit time_t transition

2024-02-29 Thread Steve Langasek
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-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 xwiimote-2/debian/changelog xwiimote-2/debian/changelog
--- xwiimote-2/debian/changelog 2020-11-30 06:39:54.0 +
+++ xwiimote-2/debian/changelog 2024-02-29 08:07:03.0 +
@@ -1,3 +1,10 @@
+xwiimote (2-4.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1063299
+
+ -- Steve Langasek   Thu, 29 Feb 2024 08:07:03 +
+
 xwiimote (2-4) unstable; urgency=medium
 
   [ Ondřej Nový ]
diff -Nru xwiimote-2/debian/control xwiimote-2/debian/control
--- xwiimote-2/debian/control   2020-11-30 06:39:54.0 +
+++ xwiimote-2/debian/control   2024-02-29 08:07:03.0 +
@@ -2,7 +2,7 @@
 Section: devel
 Priority: optional
 Maintainer: Nobuhiro Iwamatsu 
-Build-Depends: debhelper-compat (= 13),
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13),
libncurses5-dev, libudev-dev, pkg-config
 Standards-Version: 4.5.0
 Homepage: https://github.com/dvdhrm/xwiimote
@@ -12,8 +12,8 @@
 Package: xwiimote
 Architecture: linux-any
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Breaks: libxwiimote2 (<< 2-2), libxwiimote1
-Replaces: libxwiimote2 (<< 2-2), libxwiimote1
+Breaks: libxwiimote2t64 (<< 2-2), libxwiimote1
+Replaces: libxwiimote2t64 (<< 2-2), libxwiimote1
 Description: Nintendo Wii Remote Linux Device Driver Tools
  This provides tools related to the open source Nintendo Wii
  Remote linux device driver.
@@ -21,13 +21,15 @@
  This contains the tool for displaying Wii remote connected and the setting
  tool which uses operation of Wii remote as keyboard.
 
-Package: libxwiimote2
+Package: libxwiimote2t64
+Provides: ${t64:Provides}
+Replaces: libxwiimote2
 Section: libs
 Architecture: linux-any
 Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Breaks: libxwiimote1 (<< 0.3+20120630-6)
+Breaks: libxwiimote2 (<< ${source:Version}), libxwiimote1 (<< 0.3+20120630-6)
 Description: xwiimote library - runtime
  This package contains the runtime library files needed to run software
  using xwiimote.
@@ -35,9 +37,9 @@
 Package: libxwiimote-dev
 Section: libdevel
 Architecture: linux-any
-Depends: ${shlibs:Depends}, ${misc:Depends}, libxwiimote2 (= 
${binary:Version}), libudev-dev
-Breaks: libxwiimote2 (<< 2-2)
-Replaces: libxwiimote2 (<< 2-2)
+Depends: ${shlibs:Depends}, ${misc:Depends}, libxwiimote2t64 (= 
${binary:Version}), libudev-dev
+Breaks: libxwiimote2t64 (<< 2-2)
+Replaces: libxwiimote2t64 (<< 2-2)
 Description: xwiimote library - development
  This package contains the header and development files needed to build
  programs and packages using xwiimote.
diff -Nru xwiimote-2/debian/libxwiimote2.install 
xwiimote-2/debian/libxwiimote2.install
--- xwiimote-2/debian/libxwiimote2.install  2020-11-30 06:39:54.0 
+
+++ xwiimote-2/debian/libxwiimote2.install  1970-01-01 00:00:00.0 
+
@@ -1,2 +0,0 @@
-usr/lib/*/libxwiimote.so.2
-usr/lib/*/libxwiimote.so.2.*
diff -Nru xwiimote-2/debian/libxwiimote2.symbols 
xwiimote-2/debian/libxwiimote2.symbols
--- xwiimote-2/debian/libxwiimote2.symbols  2020-11-30 06:39:54.0 
+
+++ xwiimote-2/debian/libxwiimote2.symbols  1970-01-01 00:00:00.0 
+
@@ -1,26 +0,0 @@
-libxwiimote.so.2 libxwiimote2 #MINVER#
- LIBXWIIMOTE_2@LIBXWIIMOTE_2 2
- xwii_iface_available@LIBXWIIMOTE_2 2
- xwii_iface_close@LIBXWIIMOTE_2 2
- xwii_iface_dispatch@LIBXWIIMOTE_2 2
- xwii_iface_get_battery@LIBXWIIMOTE_2 2
- xwii_iface_get_devtype@LIBXWIIMOTE_2 2
- xwii_iface_get_extension@LIBXWIIMOTE_2 2
- xwii_iface_get_fd@LIBXWIIMOTE_2 2
- xwii_iface_get_led@LIBXWIIMOTE_2 2
- xwii_iface_get_mp_normalization@LIBXWIIMOTE_2 2
- xwii_iface_new@LIBXWIIMOTE_2 2
- xwii_iface_open@LIBXWIIMOTE_2 2
- xwii_iface_opened@LIBXWIIMOTE_2 2
- xwii_iface_poll@LIBXWIIMOTE_2 2
- xwii_iface_ref@LIBXWIIMOTE_2 2
- xwii_iface_rumble@LIBXWIIMOTE_2 2
- xwii_iface_set_led@LIBXWIIMOTE_2 2
- xwii_iface_set_mp_normalization@LIBXWIIMOTE_2 2
- xwii_iface_unref@LIBXWIIMOTE_2 2
- xwii_iface_watch@LIBXWIIMOTE_2 2
- xwii_monitor_get_fd@LIBXWIIMOTE_2 2
- xwii_monitor_new@LIBXWIIMOTE_2 2
- xwii_monitor_poll@LIBXWIIMOTE_2 2
- xwii_monitor_ref@LIBXWIIMOTE_2 2
- xwii_monitor_unref@LIBXWIIMOTE_2 2
diff -Nru xwiimote-2/debian/libxwiimote2t64.install 

Bug#1063299: xwiimote: NMU diff for 64-bit time_t transition

2024-02-05 Thread Steve Langasek
Source: xwiimote
Version: 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
xwiimote 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 xwiimote
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 xwiimote-2/debian/changelog xwiimote-2/debian/changelog
--- xwiimote-2/debian/changelog 2020-11-30 06:39:54.0 +
+++ xwiimote-2/debian/changelog 2024-02-06 03:14:11.0 +
@@ -1,3 +1,10 @@
+xwiimote (2-4.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Tue, 06 Feb 2024 03:14:11 +
+
 xwiimote (2-4) unstable; urgency=medium
 
   [ Ondřej Nový ]
diff -Nru xwiimote-2/debian/control xwiimote-2/debian/control
--- xwiimote-2/debian/control   2020-11-30 06:39:54.0 +
+++ xwiimote-2/debian/control   2024-02-06 03:14:11.0 +
@@ -12,8 +12,8 @@
 Package: xwiimote
 Architecture: linux-any
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Breaks: libxwiimote2 (<< 2-2), libxwiimote1
-Replaces: libxwiimote2 (<< 2-2), libxwiimote1
+Breaks: libxwiimote2t64 (<< 2-2), libxwiimote1
+Replaces: libxwiimote2t64 (<< 2-2), libxwiimote1
 Description: Nintendo Wii Remote Linux Device Driver Tools
  This provides tools related to the open source Nintendo Wii
  Remote linux device driver.
@@ -21,13 +21,15 @@
  This contains the tool for displaying Wii remote connected and the setting
  tool which uses operation of Wii remote as keyboard.
 
-Package: libxwiimote2
+Package: libxwiimote2t64
+Provides: ${t64:Provides}
+Replaces: libxwiimote2
 Section: libs
 Architecture: linux-any
 Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Breaks: libxwiimote1 (<< 0.3+20120630-6)
+Breaks: libxwiimote2 (<< ${source:Version}), libxwiimote1 (<< 0.3+20120630-6)
 Description: xwiimote library - runtime
  This package contains the runtime library files needed to run software
  using xwiimote.
@@ -35,9 +37,9 @@
 Package: libxwiimote-dev
 Section: libdevel
 Architecture: linux-any
-Depends: ${shlibs:Depends}, ${misc:Depends}, libxwiimote2 (= 
${binary:Version}), libudev-dev
-Breaks: libxwiimote2 (<< 2-2)
-Replaces: libxwiimote2 (<< 2-2)
+Depends: ${shlibs:Depends}, ${misc:Depends}, libxwiimote2t64 (= 
${binary:Version}), libudev-dev
+Breaks: libxwiimote2t64 (<< 2-2)
+Replaces: libxwiimote2t64 (<< 2-2)
 Description: xwiimote library - development
  This package contains the header and development files needed to build
  programs and packages using xwiimote.
diff -Nru xwiimote-2/debian/libxwiimote2.install 
xwiimote-2/debian/libxwiimote2.install
--- xwiimote-2/debian/libxwiimote2.install  2020-11-30 06:39:54.0 
+
+++ xwiimote-2/debian/libxwiimote2.install  1970-01-01 00:00:00.0 
+
@@ -1,2 +0,0 @@
-usr/lib/*/libxwiimote.so.2
-usr/lib/*/libxwiimote.so.2.*
diff -Nru xwiimote-2/debian/libxwiimote2.symbols 
xwiimote-2/debian/libxwiimote2.symbols
--- xwiimote-2/debian/libxwiimote2.symbols  2020-11-30