Bug#1062958: t4kcommon: NMU diff for 64-bit time_t transition

2024-02-29 Thread Benjamin Drung
Source: t4kcommon
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 t4kcommon-0.1.1/debian/changelog t4kcommon-0.1.1/debian/changelog
--- t4kcommon-0.1.1/debian/changelog2022-07-09 22:35:53.0 +
+++ t4kcommon-0.1.1/debian/changelog2024-02-29 17:57:52.0 +
@@ -1,3 +1,10 @@
+t4kcommon (0.1.1-11.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1062958
+
+ -- Benjamin Drung   Thu, 29 Feb 2024 17:57:52 +
+
 t4kcommon (0.1.1-11) unstable; urgency=medium
 
   [Stefan Kropp]
diff -Nru t4kcommon-0.1.1/debian/control t4kcommon-0.1.1/debian/control
--- t4kcommon-0.1.1/debian/control  2022-07-09 16:24:26.0 +
+++ t4kcommon-0.1.1/debian/control  2024-02-29 17:57:52.0 +
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Holger Levsen 
 Uploaders: Dmitry Smirnov 
-Build-Depends: debhelper-compat (= 13)
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13)
   ,autopoint
   ,doxygen
   ,libpng-dev
@@ -21,7 +21,10 @@
 Vcs-Git: https://salsa.debian.org/tux4kids-pkg-team/t4kcommon.git
 Vcs-Browser: https://salsa.debian.org/tux4kids-pkg-team/t4kcommon
 
-Package: libt4k-common0
+Package: libt4k-common0t64
+Provides: ${t64:Provides}
+Replaces: libt4k-common0
+Breaks: libt4k-common0 (<< ${source:Version})
 Architecture: any
 Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
@@ -33,7 +36,7 @@
 Section: libdevel
 Architecture: any
 Multi-Arch: same
-Depends: ${misc:Depends}, libt4k-common0 (= ${binary:Version})
+Depends: ${misc:Depends}, libt4k-common0t64 (= ${binary:Version})
   ,librsvg2-dev
   ,libsdl-pango-dev
   ,libsdl-image1.2-dev
@@ -60,7 +63,7 @@
 #Priority: extra
 #Architecture: any
 #Multi-Arch: same
-#Depends: ${misc:Depends}, libt4k-common0 (= ${binary:Version})
+#Depends: ${misc:Depends}, libt4k-common0t64 (= ${binary:Version})
 #Description: common library for tux4kids - debugging symbols
 # t4k_common is a library of code shared between tuxmath and tuxtype.
 # .
diff -Nru t4kcommon-0.1.1/debian/libt4k-common0.install 
t4kcommon-0.1.1/debian/libt4k-common0.install
--- t4kcommon-0.1.1/debian/libt4k-common0.install   2022-07-09 
16:24:26.0 +
+++ t4kcommon-0.1.1/debian/libt4k-common0.install   1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/lib*.so.*
diff -Nru t4kcommon-0.1.1/debian/libt4k-common0.symbols 
t4kcommon-0.1.1/debian/libt4k-common0.symbols
--- t4kcommon-0.1.1/debian/libt4k-common0.symbols   2022-07-09 
16:24:26.0 +
+++ t4kcommon-0.1.1/debian/libt4k-common0.symbols   1970-01-01 
00:00:00.0 +
@@ -1,180 +0,0 @@
-libt4k_common.so.0 libt4k-common0 #MINVER#
- IMG_Load_Cache@Base 0.1.1
- InitT4KCommon@Base 0.1.1
- MUSIC_DIR@Base 0.1.1
- SVGInfoIndex@Base 0.1.1
- T4K_AddDataPrefix@Base 0.1.1
- T4K_AddRect@Base 0.1.1
- T4K_AskFontName@Base 0.1.1
- T4K_AudioEnable@Base 0.1.1
- T4K_AudioHaltChannel@Base 0.1.1
- T4K_AudioMusicLoad@Base 0.1.1
- T4K_AudioMusicPlay@Base 0.1.1
- T4K_AudioMusicUnload@Base 0.1.1
- T4K_AudioToggle@Base 0.1.1
- T4K_BlackOutline@Base 0.1.1
- T4K_Blend@Base 0.1.1
- T4K_ChangeWindowSize@Base 0.1.1
- T4K_CharsForWidth@Base 0.1.1
- T4K_CheckFile@Base 0.1.1
- T4K_Cleanup_SDL_Text@Base 0.1.1
- T4K_ConvertFromUTF8@Base 0.1.1
- T4K_ConvertToUTF8@Base 0.1.1
- T4K_CreateButton@Base 0.1.1
- T4K_CreateOneLevelMenu@Base 0.1.1
- T4K_DarkenScreen@Base 0.1.1
- T4K_DrawButton@Base 0.1.1
- T4K_DrawButtonOn@Base 0.1.1
- T4K_DrawObject@Base 0.1.1
- T4K_DrawSprite@Base 0.1.1
- T4K_EraseObject@Base 0.1.1
- T4K_EraseSprite@Base 0.1.1
- T4K_Flip@Base 0.1.1
- T4K_FlipSprite@Base 0.1.1
- T4K_FreeSprite@Base 0.1.1
- T4K_FreeSurfaceArray@Base 0.1.1
- T4K_GetResolutions@Base 0.1.1
- T4K_GetScreen@Base 0.1.1
- T4K_GetUserDataDir@Base 0.1.1
- T4K_HandleStdEvents@Base 0.1.1
- T4K_InitBlitQueue@Base 0.1.1
- T4K_IsPlayingMusic@Base 0.1.1
- T4K_LineWrap@Base 0.1.1
- T4K_LineWrapInsBreaks@Base 0.1.1
- T4K_LineWrapList@Base 0.1.1
- T4K_LoadBkgd@Base 0.1.1
- T4K_LoadBothBkgds@Base 0.1.1
- T4K_LoadImage@Base 0.1.1
- T4K_LoadImageOfBoundingBox@Base 0.1.1
- T4K_LoadMenu@Base 0.1.1
- T4K_LoadMusic@Base 0.1.1
- T4K_LoadScaledImage@Base 0.1.1
- T4K_LoadScaledSprite@Base 0.1.1
- T4K_LoadSound@Base 0.1.1
- 

Bug#1062958: t4kcommon: NMU diff for 64-bit time_t transition

2024-02-03 Thread Steve Langasek
Source: t4kcommon
Version: 0.1.1-11
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
t4kcommon 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 t4kcommon
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.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 t4kcommon-0.1.1/debian/changelog t4kcommon-0.1.1/debian/changelog
--- t4kcommon-0.1.1/debian/changelog2022-07-09 22:35:53.0 +
+++ t4kcommon-0.1.1/debian/changelog2024-02-04 07:31:41.0 +
@@ -1,3 +1,10 @@
+t4kcommon (0.1.1-11.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Sun, 04 Feb 2024 07:31:41 +
+
 t4kcommon (0.1.1-11) unstable; urgency=medium
 
   [Stefan Kropp]
diff -Nru t4kcommon-0.1.1/debian/control t4kcommon-0.1.1/debian/control
--- t4kcommon-0.1.1/debian/control  2022-07-09 16:24:26.0 +
+++ t4kcommon-0.1.1/debian/control  2024-02-04 07:31:41.0 +
@@ -21,7 +21,10 @@
 Vcs-Git: https://salsa.debian.org/tux4kids-pkg-team/t4kcommon.git
 Vcs-Browser: https://salsa.debian.org/tux4kids-pkg-team/t4kcommon
 
-Package: libt4k-common0
+Package: libt4k-common0t64
+Provides: ${t64:Provides}
+Replaces: libt4k-common0
+Breaks: libt4k-common0 (<< ${source:Version})
 Architecture: any
 Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
@@ -33,7 +36,7 @@
 Section: libdevel
 Architecture: any
 Multi-Arch: same
-Depends: ${misc:Depends}, libt4k-common0 (= ${binary:Version})
+Depends: ${misc:Depends}, libt4k-common0t64 (= ${binary:Version})
   ,librsvg2-dev
   ,libsdl-pango-dev
   ,libsdl-image1.2-dev
@@ -60,7 +63,7 @@
 #Priority: extra
 #Architecture: any
 #Multi-Arch: same
-#Depends: ${misc:Depends}, libt4k-common0 (= ${binary:Version})
+#Depends: ${misc:Depends}, libt4k-common0t64 (= ${binary:Version})
 #Description: common library for tux4kids - debugging symbols
 # t4k_common is a library of code shared between tuxmath and tuxtype.
 # .
diff -Nru t4kcommon-0.1.1/debian/libt4k-common0.install 
t4kcommon-0.1.1/debian/libt4k-common0.install
--- t4kcommon-0.1.1/debian/libt4k-common0.install   2022-07-09 
16:24:26.0 +
+++ t4kcommon-0.1.1/debian/libt4k-common0.install   1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-usr/lib/*/lib*.so.*
diff -Nru t4kcommon-0.1.1/debian/libt4k-common0.symbols 
t4kcommon-0.1.1/debian/libt4k-common0.symbols
--- t4kcommon-0.1.1/debian/libt4k-common0.symbols   2022-07-09 
16:24:26.0 +
+++ t4kcommon-0.1.1/debian/libt4k-common0.symbols   1970-01-01 
00:00:00.0 +
@@ -1,180 +0,0 @@
-libt4k_common.so.0 libt4k-common0 #MINVER#
- IMG_Load_Cache@Base 0.1.1
- InitT4KCommon@Base 0.1.1
- MUSIC_DIR@Base 0.1.1
- SVGInfoIndex@Base 0.1.1
- T4K_AddDataPrefix@Base 0.1.1
- T4K_AddRect@Base 0.1.1
- T4K_AskFontName@Base 0.1.1
- T4K_AudioEnable@Base 0.1.1
- T4K_AudioHaltChannel@Base 0.1.1
- T4K_AudioMusicLoad@Base 0.1.1
- T4K_AudioMusicPlay@Base 0.1.1
- T4K_AudioMusicUnload@Base 0.1.1
- T4K_AudioToggle@Base 0.1.1
- T4K_BlackOutline@Base 0.1.1
- T4K_Blend@Base 0.1.1
-