Bug#1063315: zydis: 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 zydis-4.0.0/debian/changelog zydis-4.0.0/debian/changelog
--- zydis-4.0.0/debian/changelog2024-01-12 22:36:45.0 +
+++ zydis-4.0.0/debian/changelog2024-02-29 08:51:11.0 +
@@ -1,3 +1,10 @@
+zydis (4.0.0-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1063315
+
+ -- Steve Langasek   Thu, 29 Feb 2024 08:51:11 +
+
 zydis (4.0.0-2) unstable; urgency=medium
 
   * d/patches: add loong64 support.
diff -Nru zydis-4.0.0/debian/control zydis-4.0.0/debian/control
--- zydis-4.0.0/debian/control  2024-01-12 22:36:02.0 +
+++ zydis-4.0.0/debian/control  2024-02-29 08:51:11.0 +
@@ -2,8 +2,8 @@
 Section: libs
 Priority: optional
 Maintainer: Andrea Pappacoda 
-Build-Depends: debhelper-compat (= 13)
-Build-Depends-Arch: cmake,
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13)
+Build-Depends-Arch: dpkg-dev (>= 1.22.5), cmake,
 libzycore-dev (>= 1.1.0-3),
 python3 ,
 ronn
@@ -20,7 +20,10 @@
 Vcs-Browser: https://salsa.debian.org/debian/zydis
 Rules-Requires-Root: no
 
-Package: libzydis4.0
+Package: libzydis4.0t64
+Provides: ${t64:Provides}
+Replaces: libzydis4.0
+Breaks: libzydis4.0 (<< ${source:Version})
 Architecture: any
 Multi-Arch: same
 Depends: ${misc:Depends},
@@ -38,7 +41,7 @@
 Architecture: any
 Multi-Arch: same
 Depends: libzycore-dev (>= 1.0.0-2),
- libzydis4.0 (= ${binary:Version}),
+ libzydis4.0t64 (= ${binary:Version}),
  ${misc:Depends}
 Description: fast and lightweight x86/x86-64 disassembler library - development
  Zydis is a fast x86/x86-64 disassembler library. It supports all x86 and
@@ -65,7 +68,7 @@
 Section: devel
 Architecture: any
 Multi-Arch: foreign
-Depends: libzydis4.0 (= ${binary:Version}),
+Depends: libzydis4.0t64 (= ${binary:Version}),
  ${misc:Depends},
  ${shlibs:Depends}
 Description: fast and lightweight x86/x86-64 disassembler library - tools
diff -Nru zydis-4.0.0/debian/libzydis4.0.install 
zydis-4.0.0/debian/libzydis4.0.install
--- zydis-4.0.0/debian/libzydis4.0.install  2024-01-12 22:19:36.0 
+
+++ zydis-4.0.0/debian/libzydis4.0.install  1970-01-01 00:00:00.0 
+
@@ -1 +0,0 @@
-usr/lib/*/libZydis.so.4.0*
diff -Nru zydis-4.0.0/debian/libzydis4.0.symbols 
zydis-4.0.0/debian/libzydis4.0.symbols
--- zydis-4.0.0/debian/libzydis4.0.symbols  2024-01-12 22:19:36.0 
+
+++ zydis-4.0.0/debian/libzydis4.0.symbols  1970-01-01 00:00:00.0 
+
@@ -1,126 +0,0 @@
-libZydis.so.4.0 libzydis4.0 #MINVER#
-* Build-Depends-Package: libzydis-dev
- FILTERS_ADDRESS_SIZE@Base 4.0.0~rc.1
- FILTERS_EMVEX@Base 4.0.0~rc.1
- FILTERS_EVEX_B@Base 4.0.0~rc.1
- FILTERS_MANDATORY_PREFIX@Base 4.0.0~rc.1
- FILTERS_MODE@Base 4.0.0~rc.1
- FILTERS_MODE_AMD@Base 4.0.0~rc.1
- FILTERS_MODE_CENTAUR@Base 4.0.0~rc.1
- FILTERS_MODE_CET@Base 4.0.0~rc.1
- FILTERS_MODE_CLDEMOTE@Base 4.0.0~rc.1
- FILTERS_MODE_COMPACT@Base 4.0.0~rc.1
- FILTERS_MODE_KNC@Base 4.0.0~rc.1
- FILTERS_MODE_LZCNT@Base 4.0.0~rc.1
- FILTERS_MODE_MPX@Base 4.0.0~rc.1
- FILTERS_MODE_TZCNT@Base 4.0.0~rc.1
- FILTERS_MODE_WBNOINVD@Base 4.0.0~rc.1
- FILTERS_MODRM_MOD@Base 4.0.0~rc.1
- FILTERS_MODRM_MOD_COMPACT@Base 4.0.0~rc.1
- FILTERS_MODRM_REG@Base 4.0.0~rc.1
- FILTERS_MODRM_RM@Base 4.0.0~rc.1
- FILTERS_MVEX_E@Base 4.0.0~rc.1
- FILTERS_OPCODE@Base 4.0.0~rc.1
- FILTERS_OPERAND_SIZE@Base 4.0.0~rc.1
- FILTERS_PREFIX_GROUP1@Base 4.0.0~rc.1
- FILTERS_REX_B@Base 4.0.0~rc.1
- FILTERS_REX_W@Base 4.0.0~rc.1
- FILTERS_VECTOR_LENGTH@Base 4.0.0~rc.1
- FILTERS_VEX@Base 4.0.0~rc.1
- FILTERS_XOP@Base 4.0.0~rc.1
- ISTR_DEFINITIONS_3DNOW@Base 4.0.0~rc.1
- ISTR_DEFINITIONS_EVEX@Base 4.0.0~rc.1
- ISTR_DEFINITIONS_LEGACY@Base 4.0.0~rc.1
- ISTR_DEFINITIONS_MVEX@Base 4.0.0~rc.1
- ISTR_DEFINITIONS_VEX@Base 4.0.0~rc.1
- ISTR_DEFINITIONS_XOP@Base 4.0.0~rc.1
- OPERAND_DEFINITIONS@Base 4.0.0~rc.1
- ZydisBuildRegisterOperand@Base 4.0.0~rc.1
- ZydisCalcAbsoluteAddress@Base 4.0.0~rc.1
- ZydisCalcAbsoluteAddressEx@Base 4.0.0~rc.1
- ZydisCategoryGetString@Base 4.0.0~rc.1
- ZydisDecodeOperands@Base 4.0.0~rc.1
- ZydisDecoderDecodeFull@Base 4.0.0~rc.1
- ZydisDecoderDecodeInstruction@Base 4.0.0~rc.1
- 

Bug#1063315: zydis: NMU diff for 64-bit time_t transition

2024-02-05 Thread Steve Langasek
Source: zydis
Version: 4.0.0-2
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
zydis 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 zydis
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 zydis-4.0.0/debian/changelog zydis-4.0.0/debian/changelog
--- zydis-4.0.0/debian/changelog2024-01-12 22:36:45.0 +
+++ zydis-4.0.0/debian/changelog2024-02-06 04:39:09.0 +
@@ -1,3 +1,10 @@
+zydis (4.0.0-2.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Tue, 06 Feb 2024 04:39:09 +
+
 zydis (4.0.0-2) unstable; urgency=medium
 
   * d/patches: add loong64 support.
diff -Nru zydis-4.0.0/debian/control zydis-4.0.0/debian/control
--- zydis-4.0.0/debian/control  2024-01-12 22:36:02.0 +
+++ zydis-4.0.0/debian/control  2024-02-06 04:39:09.0 +
@@ -20,7 +20,10 @@
 Vcs-Browser: https://salsa.debian.org/debian/zydis
 Rules-Requires-Root: no
 
-Package: libzydis4.0
+Package: libzydis4.0t64
+Provides: ${t64:Provides}
+Replaces: libzydis4.0
+Breaks: libzydis4.0 (<< ${source:Version})
 Architecture: any
 Multi-Arch: same
 Depends: ${misc:Depends},
@@ -38,7 +41,7 @@
 Architecture: any
 Multi-Arch: same
 Depends: libzycore-dev (>= 1.0.0-2),
- libzydis4.0 (= ${binary:Version}),
+ libzydis4.0t64 (= ${binary:Version}),
  ${misc:Depends}
 Description: fast and lightweight x86/x86-64 disassembler library - development
  Zydis is a fast x86/x86-64 disassembler library. It supports all x86 and
@@ -65,7 +68,7 @@
 Section: devel
 Architecture: any
 Multi-Arch: foreign
-Depends: libzydis4.0 (= ${binary:Version}),
+Depends: libzydis4.0t64 (= ${binary:Version}),
  ${misc:Depends},
  ${shlibs:Depends}
 Description: fast and lightweight x86/x86-64 disassembler library - tools
diff -Nru zydis-4.0.0/debian/libzydis4.0.install 
zydis-4.0.0/debian/libzydis4.0.install
--- zydis-4.0.0/debian/libzydis4.0.install  2024-01-12 22:19:36.0 
+
+++ zydis-4.0.0/debian/libzydis4.0.install  1970-01-01 00:00:00.0 
+
@@ -1 +0,0 @@
-usr/lib/*/libZydis.so.4.0*
diff -Nru zydis-4.0.0/debian/libzydis4.0.symbols 
zydis-4.0.0/debian/libzydis4.0.symbols
--- zydis-4.0.0/debian/libzydis4.0.symbols  2024-01-12 22:19:36.0 
+
+++ zydis-4.0.0/debian/libzydis4.0.symbols  1970-01-01 00:00:00.0 
+
@@ -1,126 +0,0 @@
-libZydis.so.4.0 libzydis4.0 #MINVER#
-* Build-Depends-Package: libzydis-dev
- FILTERS_ADDRESS_SIZE@Base 4.0.0~rc.1
- FILTERS_EMVEX@Base 4.0.0~rc.1
- FILTERS_EVEX_B@Base 4.0.0~rc.1
- FILTERS_MANDATORY_PREFIX@Base 4.0.0~rc.1
- FILTERS_MODE@Base 4.0.0~rc.1
- FILTERS_MODE_AMD@Base 4.0.0~rc.1
- FILTERS_MODE_CENTAUR@Base 4.0.0~rc.1
- FILTERS_MODE_CET@Base 4.0.0~rc.1
- FILTERS_MODE_CLDEMOTE@Base 4.0.0~rc.1
- FILTERS_MODE_COMPACT@Base 4.0.0~rc.1
- FILTERS_MODE_KNC@Base 4.0.0~rc.1
- FILTERS_MODE_LZCNT@Base 4.0.0~rc.1
- FILTERS_MODE_MPX@Base 4.0.0~rc.1
- FILTERS_MODE_TZCNT@Base