Bug#1063114: flac: NMU diff for 64-bit time_t transition

2024-03-01 Thread Benjamin Drung
Source: flac
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 flac-1.4.3+ds/debian/changelog flac-1.4.3+ds/debian/changelog
--- flac-1.4.3+ds/debian/changelog  2023-07-03 06:43:49.0 +
+++ flac-1.4.3+ds/debian/changelog  2024-03-01 11:59:59.0 +
@@ -1,3 +1,10 @@
+flac (1.4.3+ds-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1063114
+
+ -- Benjamin Drung   Fri, 01 Mar 2024 11:59:59 +
+
 flac (1.4.3+ds-2) unstable; urgency=medium
 
   [ Adrian Bunk ]
diff -Nru flac-1.4.3+ds/debian/control flac-1.4.3+ds/debian/control
--- flac-1.4.3+ds/debian/control2023-07-03 06:38:51.0 +
+++ flac-1.4.3+ds/debian/control2024-03-01 11:59:58.0 +
@@ -7,7 +7,7 @@
  Fabian Greffrath ,
 Build-Depends-Indep:
  doxygen,
-Build-Depends:
+Build-Depends: dpkg-dev (>= 1.22.5),
  debhelper-compat (= 13),
  libogg-dev,
  pandoc [!arc !kfreebsd-amd64 !kfreebsd-i386 !m68k !powerpc !sh4 !x32],
@@ -37,7 +37,10 @@
  This package contains the command-line tools flac (used for encoding and
  decoding FLACs) and metaflac (used for manipulating FLAC metadata.)
 
-Package: libflac12
+Package: libflac12t64
+Provides: ${t64:Provides}
+Replaces: libflac12
+Breaks: libflac12 (<< ${source:Version})
 Section: libs
 Architecture: any
 Multi-Arch: same
@@ -89,7 +92,7 @@
 Architecture: any
 Multi-Arch: same
 Depends:
- libflac12 (= ${binary:Version}),
+ libflac12t64 (= ${binary:Version}),
  libogg-dev,
  ${misc:Depends},
 Description: Free Lossless Audio Codec - C development library
diff -Nru flac-1.4.3+ds/debian/libflac12.install 
flac-1.4.3+ds/debian/libflac12.install
--- flac-1.4.3+ds/debian/libflac12.install  2022-10-26 05:37:11.0 
+
+++ flac-1.4.3+ds/debian/libflac12.install  1970-01-01 00:00:00.0 
+
@@ -1 +0,0 @@
-usr/lib/*/libFLAC.so.*
diff -Nru flac-1.4.3+ds/debian/libflac12.symbols 
flac-1.4.3+ds/debian/libflac12.symbols
--- flac-1.4.3+ds/debian/libflac12.symbols  2023-06-27 10:04:07.0 
+
+++ flac-1.4.3+ds/debian/libflac12.symbols  1970-01-01 00:00:00.0 
+
@@ -1,298 +0,0 @@
-libFLAC.so.12 libflac12 #MINVER#
-* Build-Depends-Package: libflac-dev
- FLAC_API_SUPPORTS_OGG_FLAC@Base 1.3.0
- FLAC__ChannelAssignmentString@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_TYPE_LEN@Base 1.3.0
- FLAC__EntropyCodingMethodTypeString@Base 1.3.0
- FLAC__FRAME_FOOTER_CRC_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_BITS_PER_SAMPLE_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_BLOCKING_STRATEGY_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_BLOCK_SIZE_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_CHANNEL_ASSIGNMENT_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_CRC_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_RESERVED_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_SAMPLE_RATE_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_SYNC@Base 1.3.0
- FLAC__FRAME_HEADER_SYNC_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_ZERO_PAD_LEN@Base 1.3.0
- FLAC__FrameNumberTypeString@Base 1.3.0
- FLAC__MetadataTypeString@Base 1.3.0
- FLAC__Metadata_ChainStatusString@Base 1.3.0
- FLAC__Metadata_SimpleIteratorStatusString@Base 1.3.0
- FLAC__STREAM_METADATA_APPLICATION_ID_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_INDEX_NUMBER_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_INDEX_OFFSET_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_INDEX_RESERVED_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_IS_CD_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_LEAD_IN_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_MEDIA_CATALOG_NUMBER_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_NUM_TRACKS_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_RESERVED_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_TRACK_ISRC_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_TRACK_NUMBER_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_TRACK_NUM_INDICES_LEN@Base 1.3.0
- FLAC__STREAM_METADATA_CUESHEET_TRACK_OFFSET_LEN@Base 1.3.0
- 

Bug#1063114: flac: NMU diff for 64-bit time_t transition

2024-02-04 Thread Steve Langasek
Source: flac
Version: 1.4.3+ds-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
flac 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 flac
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 flac-1.4.3+ds/debian/changelog flac-1.4.3+ds/debian/changelog
--- flac-1.4.3+ds/debian/changelog  2023-07-03 06:43:49.0 +
+++ flac-1.4.3+ds/debian/changelog  2024-02-05 06:15:30.0 +
@@ -1,3 +1,10 @@
+flac (1.4.3+ds-2.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Mon, 05 Feb 2024 06:15:30 +
+
 flac (1.4.3+ds-2) unstable; urgency=medium
 
   [ Adrian Bunk ]
diff -Nru flac-1.4.3+ds/debian/control flac-1.4.3+ds/debian/control
--- flac-1.4.3+ds/debian/control2023-07-03 06:38:51.0 +
+++ flac-1.4.3+ds/debian/control2024-02-05 06:15:30.0 +
@@ -37,7 +37,10 @@
  This package contains the command-line tools flac (used for encoding and
  decoding FLACs) and metaflac (used for manipulating FLAC metadata.)
 
-Package: libflac12
+Package: libflac12t64
+Provides: ${t64:Provides}
+Replaces: libflac12
+Breaks: libflac12 (<< ${source:Version})
 Section: libs
 Architecture: any
 Multi-Arch: same
@@ -89,7 +92,7 @@
 Architecture: any
 Multi-Arch: same
 Depends:
- libflac12 (= ${binary:Version}),
+ libflac12t64 (= ${binary:Version}),
  libogg-dev,
  ${misc:Depends},
 Description: Free Lossless Audio Codec - C development library
diff -Nru flac-1.4.3+ds/debian/libflac12.install 
flac-1.4.3+ds/debian/libflac12.install
--- flac-1.4.3+ds/debian/libflac12.install  2022-10-26 05:37:11.0 
+
+++ flac-1.4.3+ds/debian/libflac12.install  1970-01-01 00:00:00.0 
+
@@ -1 +0,0 @@
-usr/lib/*/libFLAC.so.*
diff -Nru flac-1.4.3+ds/debian/libflac12.symbols 
flac-1.4.3+ds/debian/libflac12.symbols
--- flac-1.4.3+ds/debian/libflac12.symbols  2023-06-27 10:04:07.0 
+
+++ flac-1.4.3+ds/debian/libflac12.symbols  1970-01-01 00:00:00.0 
+
@@ -1,298 +0,0 @@
-libFLAC.so.12 libflac12 #MINVER#
-* Build-Depends-Package: libflac-dev
- FLAC_API_SUPPORTS_OGG_FLAC@Base 1.3.0
- FLAC__ChannelAssignmentString@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN@Base 1.3.0
- FLAC__ENTROPY_CODING_METHOD_TYPE_LEN@Base 1.3.0
- FLAC__EntropyCodingMethodTypeString@Base 1.3.0
- FLAC__FRAME_FOOTER_CRC_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_BITS_PER_SAMPLE_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_BLOCKING_STRATEGY_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_BLOCK_SIZE_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_CHANNEL_ASSIGNMENT_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_CRC_LEN@Base 1.3.0
- FLAC__FRAME_HEADER_RESERVED_LEN@Base