Bug#1062272: libdnf: NMU diff for 64-bit time_t transition

2024-02-28 Thread Benjamin Drung
Source: libdnf
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 libdnf-0.69.0/debian/changelog libdnf-0.69.0/debian/changelog
--- libdnf-0.69.0/debian/changelog  2023-11-03 19:22:17.0 +
+++ libdnf-0.69.0/debian/changelog  2024-02-28 10:48:23.0 +
@@ -1,3 +1,10 @@
+libdnf (0.69.0-2.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1062272
+
+ -- Benjamin Drung   Wed, 28 Feb 2024 10:48:23 +
+
 libdnf (0.69.0-2.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru libdnf-0.69.0/debian/control libdnf-0.69.0/debian/control
--- libdnf-0.69.0/debian/control2023-01-08 09:08:51.0 +
+++ libdnf-0.69.0/debian/control2024-02-28 10:48:23.0 +
@@ -2,7 +2,7 @@
 Section: libs
 Priority: optional
 Maintainer: Frédéric Pierret 
-Build-Depends: debhelper-compat (= 13),
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13),
  dh-python,
  python3-dev,
  libpython3-dev,
@@ -43,7 +43,7 @@
 Architecture: any
 Multi-Arch: same
 Depends: ${misc:Depends},
- libdnf2 (= ${binary:Version}),
+ libdnf2t64 (= ${binary:Version}),
  libsolv-dev (>= 0.7.14-1.1~),
  libsolvext-dev (>= 0.7.14-1.1~),
 Breaks: gir1.2-libdnf-1.0 (<< ${binary:Version})
@@ -55,7 +55,7 @@
 
 Package: libdnf1
 Depends: ${misc:Depends},
- libdnf2,
+ libdnf2t64,
 Architecture: all
 Multi-Arch: foreign
 Priority: optional
@@ -63,14 +63,14 @@
 Description: transitional package
  This is a transitional package. It can safely be removed.
 
-Package: libdnf2
-Provides: libdnf
+Package: libdnf2t64
+Provides: libdnf, ${t64:Provides}
 Architecture: any
 Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends},
  libdnf2-common (= ${source:Version}),
-Replaces: libdnf1 (<< 0.35.3-1~)
-Breaks: libdnf1 (<< 0.35.3-1~)
+Replaces: libdnf2, libdnf1 (<< 0.35.3-1~)
+Breaks: libdnf2 (<< ${source:Version}), libdnf1 (<< 0.35.3-1~)
 Description: libdnf - shared library
  A library providing simplified C and Python APIs to libsolv.
  .
@@ -101,7 +101,7 @@
 Multi-Arch: no
 Section: python
 Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends},
- libdnf2 (= ${binary:Version}),
+ libdnf2t64 (= ${binary:Version}),
  python3-libdnf (= ${binary:Version}),
 Provides: ${python3:Provides},
 Suggests: python3-hawkey-docs
@@ -126,7 +126,7 @@
 Multi-Arch: no
 Section: python
 Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends},
- libdnf2 (= ${binary:Version}),
+ libdnf2t64 (= ${binary:Version}),
 Provides: ${python3:Provides},
 Description: Python bindings for the libdnf library (Python 3)
  A library providing simplified C and Python APIs to libsolv.
diff -Nru libdnf-0.69.0/debian/libdnf2.install 
libdnf-0.69.0/debian/libdnf2.install
--- libdnf-0.69.0/debian/libdnf2.install2020-12-26 10:58:07.0 
+
+++ libdnf-0.69.0/debian/libdnf2.install1970-01-01 00:00:00.0 
+
@@ -1,3 +0,0 @@
-usr/lib/*/libdnf.so.*
-usr/lib/*/libdnf/plugins/
-usr/share/man/
diff -Nru libdnf-0.69.0/debian/libdnf2.lintian-overrides 
libdnf-0.69.0/debian/libdnf2.lintian-overrides
--- libdnf-0.69.0/debian/libdnf2.lintian-overrides  2020-12-26 
10:58:07.0 +
+++ libdnf-0.69.0/debian/libdnf2.lintian-overrides  1970-01-01 
00:00:00.0 +
@@ -1,2 +0,0 @@
-# File actually describes the directory's purpose.
-libdnf2: package-contains-documentation-outside-usr-share-doc
diff -Nru libdnf-0.69.0/debian/libdnf2.shlibs 
libdnf-0.69.0/debian/libdnf2.shlibs
--- libdnf-0.69.0/debian/libdnf2.shlibs 2021-04-14 12:43:51.0 +
+++ libdnf-0.69.0/debian/libdnf2.shlibs 1970-01-01 00:00:00.0 +
@@ -1 +0,0 @@
-libdnf 2 libdnf2 (>= 0.55.2)
diff -Nru libdnf-0.69.0/debian/libdnf2t64.install 
libdnf-0.69.0/debian/libdnf2t64.install
--- libdnf-0.69.0/debian/libdnf2t64.install 1970-01-01 00:00:00.0 
+
+++ libdnf-0.69.0/debian/libdnf2t64.install 2020-12-26 10:58:07.0 
+
@@ -0,0 +1,3 @@
+usr/lib/*/libdnf.so.*
+usr/lib/*/libdnf/plugins/
+usr/share/man/
diff -Nru libdnf-0.69.0/debian/libdnf2t64.lintian-overrides 
libdnf-0.69.0/debian/libdnf2t64.lintian-overrides
--- libdnf-0.69.0/debian/libdnf2t64.lintian-overrides   1970-01-01 
00:00:00.0 +
+++ libdnf-0.69.0/debian/libdnf2t64.lintian-overrides   

Bug#1062272: libdnf: NMU diff for 64-bit time_t transition

2024-01-31 Thread Steve Langasek
Source: libdnf
Version: 0.69.0-2.2
Severity: serious
Tags: patch pending
Justification: library ABI skew on upgrade
User: debian-...@lists.debian.org
Usertags: time-t

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
libdnf 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 libdnf
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'), (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 libdnf-0.69.0/debian/changelog libdnf-0.69.0/debian/changelog
--- libdnf-0.69.0/debian/changelog  2023-11-03 19:22:17.0 +
+++ libdnf-0.69.0/debian/changelog  2024-01-31 22:13:42.0 +
@@ -1,3 +1,10 @@
+libdnf (0.69.0-2.3) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Wed, 31 Jan 2024 22:13:42 +
+
 libdnf (0.69.0-2.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru libdnf-0.69.0/debian/control libdnf-0.69.0/debian/control
--- libdnf-0.69.0/debian/control2023-01-08 09:08:51.0 +
+++ libdnf-0.69.0/debian/control2024-01-31 22:13:42.0 +
@@ -43,7 +43,7 @@
 Architecture: any
 Multi-Arch: same
 Depends: ${misc:Depends},
- libdnf2 (= ${binary:Version}),
+ libdnf2t64 (= ${binary:Version}),
  libsolv-dev (>= 0.7.14-1.1~),
  libsolvext-dev (>= 0.7.14-1.1~),
 Breaks: gir1.2-libdnf-1.0 (<< ${binary:Version})
@@ -55,7 +55,7 @@
 
 Package: libdnf1
 Depends: ${misc:Depends},
- libdnf2,
+ libdnf2t64,
 Architecture: all
 Multi-Arch: foreign
 Priority: optional
@@ -63,14 +63,14 @@
 Description: transitional package
  This is a transitional package. It can safely be removed.
 
-Package: libdnf2
-Provides: libdnf
+Package: libdnf2t64
+Provides: libdnf, ${t64:Provides}
 Architecture: any
 Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends},
  libdnf2-common (= ${source:Version}),
-Replaces: libdnf1 (<< 0.35.3-1~)
-Breaks: libdnf1 (<< 0.35.3-1~)
+Replaces: libdnf2, libdnf1 (<< 0.35.3-1~)
+Breaks: libdnf2 (<< ${source:Version}), libdnf1 (<< 0.35.3-1~)
 Description: libdnf - shared library
  A library providing simplified C and Python APIs to libsolv.
  .
@@ -101,7 +101,7 @@
 Multi-Arch: no
 Section: python
 Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends},
- libdnf2 (= ${binary:Version}),
+ libdnf2t64 (= ${binary:Version}),
  python3-libdnf (= ${binary:Version}),
 Provides: ${python3:Provides},
 Suggests: python3-hawkey-docs
@@ -126,7 +126,7 @@
 Multi-Arch: no
 Section: python
 Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends},
- libdnf2 (= ${binary:Version}),
+ libdnf2t64 (= ${binary:Version}),
 Provides: ${python3:Provides},
 Description: Python bindings for the libdnf library (Python 3)
  A library providing simplified C and Python APIs to libsolv.
diff -Nru libdnf-0.69.0/debian/libdnf2.install 
libdnf-0.69.0/debian/libdnf2.install
--- libdnf-0.69.0/debian/libdnf2.install2020-12-26 10:58:07.0 
+
+++ libdnf-0.69.0/debian/libdnf2.install1970-01-01 00:00:00.0 
+
@@ -1,3 +0,0 @@
-usr/lib/*/libdnf.so.*
-usr/lib/*/libdnf/plugins/
-usr/share/man/
diff -Nru libdnf-0.69.0/debian/libdnf2.lintian-overrides 
libdnf-0.69.0/debian/libdnf2.lintian-overrides
--- libdnf-0.69.0/debian/libdnf2.lintian-overrides  2020-12-26