Bug#1062850: readstat: NMU diff for 64-bit time_t transition

2024-02-29 Thread Benjamin Drung
Source: readstat
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 readstat-1.1.9/debian/changelog readstat-1.1.9/debian/changelog
--- readstat-1.1.9/debian/changelog 2023-07-14 04:30:27.0 +
+++ readstat-1.1.9/debian/changelog 2024-02-29 22:50:24.0 +
@@ -1,3 +1,10 @@
+readstat (1.1.9-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1062850
+
+ -- Benjamin Drung   Thu, 29 Feb 2024 22:50:24 +
+
 readstat (1.1.9-2) unstable; urgency=medium
 
   * Temporarily ignore test suite failures on big endian architectures until
diff -Nru readstat-1.1.9/debian/control readstat-1.1.9/debian/control
--- readstat-1.1.9/debian/control   2023-07-14 04:11:56.0 +
+++ readstat-1.1.9/debian/control   2024-02-29 22:50:24.0 +
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Qt/KDE Maintainers 
 Uploaders: Pino Toscano ,
-Build-Depends: debhelper-compat (= 13),
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13),
libcsv-dev,
libxlsxwriter-dev,
zlib1g-dev,
@@ -13,7 +13,10 @@
 Vcs-Browser: https://salsa.debian.org/qt-kde-team/3rdparty/readstat
 Vcs-Git: https://salsa.debian.org/qt-kde-team/3rdparty/readstat.git
 
-Package: libreadstat1
+Package: libreadstat1t64
+Provides: ${t64:Provides}
+Replaces: libreadstat1
+Breaks: libreadstat1 (<< ${source:Version})
 Architecture: any
 Depends: ${misc:Depends},
  ${shlibs:Depends},
@@ -42,7 +45,7 @@
 Architecture: any
 Multi-Arch: same
 Section: libdevel
-Depends: libreadstat1 (= ${binary:Version}),
+Depends: libreadstat1t64 (= ${binary:Version}),
  ${misc:Depends},
 Description: development files for libreadstat library
  ReadStat is a command-line tool and MIT-licensed C library for reading files
@@ -53,7 +56,7 @@
 Package: readstat
 Architecture: any
 Section: utils
-Depends: libreadstat1 (= ${binary:Version}),
+Depends: libreadstat1t64 (= ${binary:Version}),
  ${misc:Depends},
  ${shlibs:Depends},
 Description: read/write data sets from SAS, Stata, and SPSS
diff -Nru readstat-1.1.9/debian/libreadstat1.install 
readstat-1.1.9/debian/libreadstat1.install
--- readstat-1.1.9/debian/libreadstat1.install  2021-10-02 19:01:54.0 
+
+++ readstat-1.1.9/debian/libreadstat1.install  1970-01-01 00:00:00.0 
+
@@ -1,2 +0,0 @@
-usr/lib/*/libreadstat.so.1
-usr/lib/*/libreadstat.so.1.*
diff -Nru readstat-1.1.9/debian/libreadstat1.symbols 
readstat-1.1.9/debian/libreadstat1.symbols
--- readstat-1.1.9/debian/libreadstat1.symbols  2022-05-20 03:58:06.0 
+
+++ readstat-1.1.9/debian/libreadstat1.symbols  1970-01-01 00:00:00.0 
+
@@ -1,247 +0,0 @@
-libreadstat.so.1 libreadstat1 #MINVER#
-* Build-Depends-Package: libreadstat-dev
- _xport_months@Base 1.1.7
- byteswap2@Base 1.1.7
- byteswap4@Base 1.1.7
- byteswap8@Base 1.1.7
- byteswap_double@Base 1.1.7
- byteswap_float@Base 1.1.7
- ck_double_hash_insert@Base 1.1.7
- ck_double_hash_lookup@Base 1.1.7
- ck_float_hash_insert@Base 1.1.7
- ck_float_hash_lookup@Base 1.1.7
- ck_hash_table_free@Base 1.1.7
- ck_hash_table_grow@Base 1.1.7
- ck_hash_table_init@Base 1.1.7
- ck_hash_table_wipe@Base 1.1.7
- ck_str_hash_insert@Base 1.1.7
- ck_str_hash_lookup@Base 1.1.7
- ck_str_n_hash_insert@Base 1.1.7
- ck_str_n_hash_lookup@Base 1.1.7
- cnxptiee@Base 1.1.7
- dta_ctx_alloc@Base 1.1.7
- dta_ctx_free@Base 1.1.7
- dta_ctx_init@Base 1.1.7
- dta_metadata_ok@Base 1.1.7
- dta_parse_timestamp@Base 1.1.7
- dta_type_info@Base 1.1.7
- get_native@Base 1.1.7
- handle_variables@Base 1.1.7
- machine_is_little_endian@Base 1.1.7
- memreverse@Base 1.1.7
- ones_to_twos_complement1@Base 1.1.7
- ones_to_twos_complement2@Base 1.1.7
- ones_to_twos_complement4@Base 1.1.7
- open_with_unicode@Base 1.1.7
- por_ascii_lookup@Base 1.1.7
- por_ctx_free@Base 1.1.7
- por_ctx_init@Base 1.1.7
- por_unicode_lookup@Base 1.1.7
- por_utf8_decode@Base 1.1.7
- por_utf8_encode@Base 1.1.7
- read_version_and_timestamp@Base 1.1.7
- readstat_add_label_set@Base 1.1.7
- readstat_add_note@Base 1.1.7
- readstat_add_string_ref@Base 1.1.7
- readstat_add_variable@Base 1.1.7
- readstat_begin_row@Base 1.1.7
- readstat_begin_writing_dta@Base 1.1.7
- readstat_begin_writing_file@Base 1.1.7
- 

Bug#1062850: readstat: NMU diff for 64-bit time_t transition

2024-02-03 Thread Sergio Durigan Junior
Source: readstat
Version: 1.1.9-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
readstat 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 readstat
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-5-amd64 (SMP w/32 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 readstat-1.1.9/debian/changelog readstat-1.1.9/debian/changelog
--- readstat-1.1.9/debian/changelog 2023-07-14 04:30:27.0 +
+++ readstat-1.1.9/debian/changelog 2024-02-03 20:22:40.0 +
@@ -1,3 +1,10 @@
+readstat (1.1.9-2.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Sergio Durigan Junior   Sat, 03 Feb 2024 20:22:40 
+
+
 readstat (1.1.9-2) unstable; urgency=medium
 
   * Temporarily ignore test suite failures on big endian architectures until
diff -Nru readstat-1.1.9/debian/control readstat-1.1.9/debian/control
--- readstat-1.1.9/debian/control   2023-07-14 04:11:56.0 +
+++ readstat-1.1.9/debian/control   2024-02-03 20:22:40.0 +
@@ -13,7 +13,10 @@
 Vcs-Browser: https://salsa.debian.org/qt-kde-team/3rdparty/readstat
 Vcs-Git: https://salsa.debian.org/qt-kde-team/3rdparty/readstat.git
 
-Package: libreadstat1
+Package: libreadstat1t64
+Provides: ${t64:Provides}
+Replaces: libreadstat1
+Breaks: libreadstat1 (<< ${source:Version})
 Architecture: any
 Depends: ${misc:Depends},
  ${shlibs:Depends},
@@ -42,7 +45,7 @@
 Architecture: any
 Multi-Arch: same
 Section: libdevel
-Depends: libreadstat1 (= ${binary:Version}),
+Depends: libreadstat1t64 (= ${binary:Version}),
  ${misc:Depends},
 Description: development files for libreadstat library
  ReadStat is a command-line tool and MIT-licensed C library for reading files
@@ -53,7 +56,7 @@
 Package: readstat
 Architecture: any
 Section: utils
-Depends: libreadstat1 (= ${binary:Version}),
+Depends: libreadstat1t64 (= ${binary:Version}),
  ${misc:Depends},
  ${shlibs:Depends},
 Description: read/write data sets from SAS, Stata, and SPSS
diff -Nru readstat-1.1.9/debian/libreadstat1.install 
readstat-1.1.9/debian/libreadstat1.install
--- readstat-1.1.9/debian/libreadstat1.install  2021-10-02 19:01:54.0 
+
+++ readstat-1.1.9/debian/libreadstat1.install  1970-01-01 00:00:00.0 
+
@@ -1,2 +0,0 @@
-usr/lib/*/libreadstat.so.1
-usr/lib/*/libreadstat.so.1.*
diff -Nru readstat-1.1.9/debian/libreadstat1.symbols 
readstat-1.1.9/debian/libreadstat1.symbols
--- readstat-1.1.9/debian/libreadstat1.symbols  2022-05-20 03:58:06.0 
+
+++ readstat-1.1.9/debian/libreadstat1.symbols  1970-01-01 00:00:00.0 
+
@@ -1,247 +0,0 @@
-libreadstat.so.1 libreadstat1 #MINVER#
-* Build-Depends-Package: libreadstat-dev
- _xport_months@Base 1.1.7
- byteswap2@Base 1.1.7
- byteswap4@Base 1.1.7
- byteswap8@Base 1.1.7
- byteswap_double@Base 1.1.7
- byteswap_float@Base 1.1.7
- ck_double_hash_insert@Base 1.1.7
- ck_double_hash_lookup@Base 1.1.7
- ck_float_hash_insert@Base 1.1.7
- ck_float_hash_lookup@Base 1.1.7
- ck_hash_table_free@Base 1.1.7
- ck_hash_table_grow@Base 1.1.7
-