Bug#1062090: codeblocks: NMU diff for 64-bit time_t transition

2024-02-28 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 codeblocks-20.03+svn13046/debian/changelog 
codeblocks-20.03+svn13046/debian/changelog
--- codeblocks-20.03+svn13046/debian/changelog  2023-10-24 17:47:28.0 
+
+++ codeblocks-20.03+svn13046/debian/changelog  2024-02-28 16:26:54.0 
+
@@ -1,3 +1,10 @@
+codeblocks (20.03+svn13046-0.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1062090
+
+ -- Steve Langasek   Wed, 28 Feb 2024 16:26:54 +
+
 codeblocks (20.03+svn13046-0.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru codeblocks-20.03+svn13046/debian/control 
codeblocks-20.03+svn13046/debian/control
--- codeblocks-20.03+svn13046/debian/control2023-10-24 17:04:52.0 
+
+++ codeblocks-20.03+svn13046/debian/control2024-02-28 16:26:54.0 
+
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: David Paleino 
 Uploaders: Vincent Cheng , David Prévot 
-Build-Depends: debhelper-compat (= 12),
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 12),
libastyle-dev,
libboost-dev,
libboost-system-dev,
@@ -24,7 +24,7 @@
 Section: devel
 Depends: codeblocks-common (= ${source:Version}),
  libastyle3,
- libcodeblocks0,
+ libcodeblocks0t64,
  ${misc:Depends},
  ${shlibs:Depends}
 Recommends: gcc | g++, gdb, xterm
@@ -58,7 +58,10 @@
  .
  This package contains the architecture-independent files of Code::Blocks.
 
-Package: libcodeblocks0
+Package: libcodeblocks0t64
+Provides: ${t64:Provides}
+Replaces: libcodeblocks0
+Breaks: libcodeblocks0 (<< ${source:Version})
 Architecture: any
 Section: libs
 Depends: binutils, file, ${misc:Depends}, ${shlibs:Depends}
@@ -84,7 +87,7 @@
 Package: codeblocks-contrib
 Architecture: any
 Depends: codeblocks (= ${binary:Version}),
- libwxsmithlib0 (= ${binary:Version}),
+ libwxsmithlib0t64 (= ${binary:Version}),
  ${misc:Depends},
  ${shlibs:Depends}
 Recommends: valgrind
@@ -120,7 +123,7 @@
 Package: codeblocks-dev
 Architecture: any
 Section: libdevel
-Depends: libcodeblocks0 (= ${binary:Version}), ${misc:Depends}
+Depends: libcodeblocks0t64 (= ${binary:Version}), ${misc:Depends}
 Multi-Arch: same
 Description: Code::Blocks development files (SDK)
  Code::Blocks is a cross-platform Integrated Development Environment (IDE).
@@ -141,10 +144,13 @@
  This package contains the development files (headers and libraries) for
  creating Code::Blocks plugins.
 
-Package: libwxsmithlib0
+Package: libwxsmithlib0t64
+Provides: ${t64:Provides}
+Replaces: libwxsmithlib0
+Breaks: libwxsmithlib0 (<< ${source:Version})
 Architecture: any
 Section: libs
-Depends: libcodeblocks0 (= ${binary:Version}),
+Depends: libcodeblocks0t64 (= ${binary:Version}),
  ${misc:Depends},
  ${shlibs:Depends}
 Recommends: codeblocks-contrib (= ${binary:Version})
@@ -169,7 +175,7 @@
 Package: libwxsmithlib-dev
 Architecture: any
 Section: libdevel
-Depends: libwxsmithlib0 (= ${binary:Version}), ${misc:Depends}
+Depends: libwxsmithlib0t64 (= ${binary:Version}), ${misc:Depends}
 Multi-Arch: same
 Description: wxSmith development files (Code::Blocks plugin for RAD GUI 
editing)
  Code::Blocks is a cross-platform Integrated Development Environment (IDE).
diff -Nru codeblocks-20.03+svn13046/debian/libcodeblocks0.install 
codeblocks-20.03+svn13046/debian/libcodeblocks0.install
--- codeblocks-20.03+svn13046/debian/libcodeblocks0.install 2023-10-24 
17:04:21.0 +
+++ codeblocks-20.03+svn13046/debian/libcodeblocks0.install 1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/libcodeblocks.so.*
diff -Nru codeblocks-20.03+svn13046/debian/libcodeblocks0t64.install 
codeblocks-20.03+svn13046/debian/libcodeblocks0t64.install
--- codeblocks-20.03+svn13046/debian/libcodeblocks0t64.install  1970-01-01 
00:00:00.0 +
+++ codeblocks-20.03+svn13046/debian/libcodeblocks0t64.install  2023-10-24 
17:04:21.0 +
@@ -0,0 +1 @@
+usr/lib/libcodeblocks.so.*
diff -Nru codeblocks-20.03+svn13046/debian/libcodeblocks0t64.lintian-overrides 
codeblocks-20.03+svn13046/debian/libcodeblocks0t64.lintian-overrides
--- codeblocks-20.03+svn13046/debian/libcodeblocks0t64.lintian-overrides

Bug#1062090: codeblocks: NMU diff for 64-bit time_t transition

2024-01-31 Thread Steve Langasek
Source: codeblocks
Version: 20.03+svn13046-0.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
codeblocks 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 codeblocks
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'), (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 codeblocks-20.03+svn13046/debian/changelog 
codeblocks-20.03+svn13046/debian/changelog
--- codeblocks-20.03+svn13046/debian/changelog  2023-10-24 17:47:28.0 
+
+++ codeblocks-20.03+svn13046/debian/changelog  2024-01-31 10:22:23.0 
+
@@ -1,3 +1,10 @@
+codeblocks (20.03+svn13046-0.3) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Wed, 31 Jan 2024 10:22:23 +
+
 codeblocks (20.03+svn13046-0.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru codeblocks-20.03+svn13046/debian/control 
codeblocks-20.03+svn13046/debian/control
--- codeblocks-20.03+svn13046/debian/control2023-10-24 17:04:52.0 
+
+++ codeblocks-20.03+svn13046/debian/control2024-01-31 10:22:23.0 
+
@@ -24,7 +24,7 @@
 Section: devel
 Depends: codeblocks-common (= ${source:Version}),
  libastyle3,
- libcodeblocks0,
+ libcodeblocks0t64,
  ${misc:Depends},
  ${shlibs:Depends}
 Recommends: gcc | g++, gdb, xterm
@@ -58,7 +58,10 @@
  .
  This package contains the architecture-independent files of Code::Blocks.
 
-Package: libcodeblocks0
+Package: libcodeblocks0t64
+Provides: ${t64:Provides}
+Replaces: libcodeblocks0
+Breaks: libcodeblocks0 (<< ${source:Version})
 Architecture: any
 Section: libs
 Depends: binutils, file, ${misc:Depends}, ${shlibs:Depends}
@@ -84,7 +87,7 @@
 Package: codeblocks-contrib
 Architecture: any
 Depends: codeblocks (= ${binary:Version}),
- libwxsmithlib0 (= ${binary:Version}),
+ libwxsmithlib0t64 (= ${binary:Version}),
  ${misc:Depends},
  ${shlibs:Depends}
 Recommends: valgrind
@@ -120,7 +123,7 @@
 Package: codeblocks-dev
 Architecture: any
 Section: libdevel
-Depends: libcodeblocks0 (= ${binary:Version}), ${misc:Depends}
+Depends: libcodeblocks0t64 (= ${binary:Version}), ${misc:Depends}
 Multi-Arch: same
 Description: Code::Blocks development files (SDK)
  Code::Blocks is a cross-platform Integrated Development Environment (IDE).
@@ -141,10 +144,13 @@
  This package contains the development files (headers and libraries) for
  creating Code::Blocks plugins.
 
-Package: libwxsmithlib0
+Package: libwxsmithlib0t64
+Provides: ${t64:Provides}
+Replaces: libwxsmithlib0
+Breaks: libwxsmithlib0 (<< ${source:Version})
 Architecture: any
 Section: libs
-Depends: libcodeblocks0 (= ${binary:Version}),
+Depends: libcodeblocks0t64 (= ${binary:Version}),
  ${misc:Depends},
  ${shlibs:Depends}
 Recommends: codeblocks-contrib (= ${binary:Version})
@@ -169,7 +175,7 @@
 Package: libwxsmithlib-dev
 Architecture: any
 Section: libdevel
-Depends: libwxsmithlib0 (= ${binary:Version}), ${misc:Depends}
+Depends: libwxsmithlib0t64 (= ${binary:Version}), ${misc:Depends}
 Multi-Arch: same
 Description: wxSmith development files (Code::Blocks plugin for RAD