Bug#1063187: osptoolkit: NMU diff for 64-bit time_t transition

2024-02-29 Thread Benjamin Drung
Source: osptoolkit
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 osptoolkit-4.13.0/debian/changelog osptoolkit-4.13.0/debian/changelog
--- osptoolkit-4.13.0/debian/changelog  2017-02-13 09:40:51.0 +
+++ osptoolkit-4.13.0/debian/changelog  2024-02-29 19:07:12.0 +
@@ -1,3 +1,10 @@
+osptoolkit (4.13.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1063187
+
+ -- Benjamin Drung   Thu, 29 Feb 2024 19:07:12 +
+
 osptoolkit (4.13.0-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru osptoolkit-4.13.0/debian/control osptoolkit-4.13.0/debian/control
--- osptoolkit-4.13.0/debian/control2016-06-24 09:13:58.0 +
+++ osptoolkit-4.13.0/debian/control2024-02-29 19:07:11.0 +
@@ -3,7 +3,7 @@
 Uploaders: Di-Shi Sun 
 Section: utils
 Priority: optional
-Build-Depends: debhelper (>= 9), libssl-dev, libtool, libtool-bin, 
docbook-to-man
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper (>= 9), libssl-dev, libtool, 
libtool-bin, docbook-to-man
 Standards-Version: 3.9.8
 Homepage: https://sourceforge.net/projects/osp-toolkit
 
@@ -23,7 +23,10 @@
  The enroll program is a utility application for establishing a trusted
  relationship between an OSP client and OSP servers.
 
-Package: libosptk4
+Package: libosptk4t64
+Provides: ${t64:Provides}
+Replaces: libosptk4
+Breaks: libosptk4 (<< ${source:Version})
 Architecture: any
 Section: libs
 Depends: ${shlibs:Depends}, ${misc:Depends}
@@ -41,7 +44,7 @@
 Package: libosptk-dev
 Architecture: any
 Section: libdevel
-Depends: libosptk4 (= ${binary:Version}), ${misc:Depends}
+Depends: libosptk4t64 (= ${binary:Version}), ${misc:Depends}
 Conflicts: libosptk3-dev
 Description: OSP Toolkit development library and header files
  The Open Settlement Protocol (OSP) standard defined by the European
diff -Nru osptoolkit-4.13.0/debian/libosptk4.symbols 
osptoolkit-4.13.0/debian/libosptk4.symbols
--- osptoolkit-4.13.0/debian/libosptk4.symbols  2017-02-13 09:40:51.0 
+
+++ osptoolkit-4.13.0/debian/libosptk4.symbols  1970-01-01 00:00:00.0 
+
@@ -1,1083 +0,0 @@
-libosptk.so.4 libosptk4 #MINVER#
- OSPM_INET_NTOA@Base 4.11.3
- OSPPASN1AlgorithmIdEncode@Base 4.11.3
- OSPPASN1ElementCopy@Base 4.11.3
- OSPPASN1ElementCopyElementData@Base 4.11.3
- OSPPASN1ElementCreate@Base 4.11.3
- OSPPASN1ElementDecode@Base 4.11.3
- OSPPASN1ElementDelete@Base 4.11.3
- OSPPASN1ElementDeparse@Base 4.11.3
- OSPPASN1ElementEncode@Base 4.11.3
- OSPPASN1ElementFormat@Base 4.11.3
- OSPPASN1ElementGet@Base 4.11.3
- OSPPASN1ElementGetContentData@Base 4.11.3
- OSPPASN1ElementGetElementData@Base 4.11.3
- OSPPASN1ElementParse@Base 4.11.3
- OSPPASN1ElementParseDelete@Base 4.11.3
- OSPPASN1ElementTestContext@Base 4.11.3
- OSPPASN1IdGetValue@Base 4.11.3
- OSPPASN1IntegerGetSmallValue@Base 4.11.3
- OSPPASN1NullEncode@Base 4.11.3
- OSPPASN1ObjectAddChild@Base 4.11.3
- OSPPASN1ObjectCopy@Base 4.11.3
- OSPPASN1ObjectCopyElementObject@Base 4.11.3
- OSPPASN1ObjectCreate@Base 4.11.3
- OSPPASN1ObjectDelete@Base 4.11.3
- OSPPASN1ObjectDeparse@Base 4.11.3
- OSPPASN1ObjectEncode@Base 4.11.3
- OSPPASN1ObjectFormat@Base 4.11.3
- OSPPASN1ObjectGetElementByDataRef@Base 4.11.3
- OSPPASN1ObjectGetElementInfo@Base 4.11.3
- OSPPASN1ObjectGetParseResults@Base 4.11.3
- OSPPASN1ObjectIdentifierEncode@Base 4.11.3
- OSPPASN1ObjectNew@Base 4.11.3
- OSPPASN1OctetStringEncode@Base 4.11.3
- OSPPASN1SmallInt2UnsignedChar@Base 4.11.3
- OSPPASN1SmallIntegerEncode@Base 4.11.3
- OSPPAddConfIdToUsageElement@Base 4.11.3
- OSPPAddPricingInfoToUsageElement@Base 4.11.3
- OSPPAltInfoDelete@Base 4.11.3
- OSPPAltInfoGetPart@Base 4.11.3
- OSPPAltInfoGetSize@Base 4.11.3
- OSPPAltInfoGetValue@Base 4.11.3
- OSPPAltInfoNew@Base 4.11.3
- OSPPAltInfoToElement@Base 4.11.3
- OSPPAltInfoTypeGetName@Base 4.11.3
- OSPPAltInfoTypeGetPart@Base 4.11.3
- OSPPAuditAddMessageToBuffer@Base 4.11.3
- OSPPAuditCheck@Base 4.11.3
- OSPPAuditComponentIdDelete@Base 4.11.3
- OSPPAuditComponentIdNew@Base 4.11.3
- OSPPAuditDelete@Base 4.11.3
- OSPPAuditGetAccessCondVar@Base 4.11.3
- OSPPAuditGetMaxMessages@Base 4.11.3
- OSPPAuditGetMaxSpace@Base 4.11.3
- OSPPAuditGetMaxTime@Base 4.11.3
- OSPPAuditGetStartTime@Base 4.11.3
- OSPPAuditGetURL@Base 4.11.3
- OSPPAuditGetWorkerCondVar@Base 

Bug#1063187: osptoolkit: NMU diff for 64-bit time_t transition

2024-02-05 Thread Lucas Kanashiro
Source: osptoolkit
Version: 4.13.0-1
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
osptoolkit 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 osptoolkit
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.2.0-39-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, 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 osptoolkit-4.13.0/debian/changelog osptoolkit-4.13.0/debian/changelog
--- osptoolkit-4.13.0/debian/changelog  2017-02-13 07:40:51.0 -0200
+++ osptoolkit-4.13.0/debian/changelog  2024-02-05 13:12:13.0 -0300
@@ -1,3 +1,10 @@
+osptoolkit (4.13.0-1.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Lucas Kanashiro   Mon, 05 Feb 2024 13:12:13 -0300
+
 osptoolkit (4.13.0-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru osptoolkit-4.13.0/debian/control osptoolkit-4.13.0/debian/control
--- osptoolkit-4.13.0/debian/control2016-06-24 06:13:58.0 -0300
+++ osptoolkit-4.13.0/debian/control2024-02-05 13:12:13.0 -0300
@@ -23,7 +23,10 @@
  The enroll program is a utility application for establishing a trusted
  relationship between an OSP client and OSP servers.
 
-Package: libosptk4
+Package: libosptk4t64
+Provides: ${t64:Provides}
+Replaces: libosptk4
+Breaks: libosptk4 (<< ${source:Version})
 Architecture: any
 Section: libs
 Depends: ${shlibs:Depends}, ${misc:Depends}
@@ -41,7 +44,7 @@
 Package: libosptk-dev
 Architecture: any
 Section: libdevel
-Depends: libosptk4 (= ${binary:Version}), ${misc:Depends}
+Depends: libosptk4t64 (= ${binary:Version}), ${misc:Depends}
 Conflicts: libosptk3-dev
 Description: OSP Toolkit development library and header files
  The Open Settlement Protocol (OSP) standard defined by the European
diff -Nru osptoolkit-4.13.0/debian/libosptk4.symbols 
osptoolkit-4.13.0/debian/libosptk4.symbols
--- osptoolkit-4.13.0/debian/libosptk4.symbols  2017-02-13 07:40:51.0 
-0200
+++ osptoolkit-4.13.0/debian/libosptk4.symbols  1969-12-31 21:00:00.0 
-0300
@@ -1,1083 +0,0 @@
-libosptk.so.4 libosptk4 #MINVER#
- OSPM_INET_NTOA@Base 4.11.3
- OSPPASN1AlgorithmIdEncode@Base 4.11.3
- OSPPASN1ElementCopy@Base 4.11.3
- OSPPASN1ElementCopyElementData@Base 4.11.3
- OSPPASN1ElementCreate@Base 4.11.3
- OSPPASN1ElementDecode@Base 4.11.3
- OSPPASN1ElementDelete@Base 4.11.3
- OSPPASN1ElementDeparse@Base 4.11.3
- OSPPASN1ElementEncode@Base 4.11.3
- OSPPASN1ElementFormat@Base 4.11.3
- OSPPASN1ElementGet@Base 4.11.3
- OSPPASN1ElementGetContentData@Base 4.11.3
- OSPPASN1ElementGetElementData@Base 4.11.3
- OSPPASN1ElementParse@Base 4.11.3
- OSPPASN1ElementParseDelete@Base 4.11.3
- OSPPASN1ElementTestContext@Base 4.11.3
- OSPPASN1IdGetValue@Base 4.11.3
- OSPPASN1IntegerGetSmallValue@Base 4.11.3
- OSPPASN1NullEncode@Base 4.11.3
- OSPPASN1ObjectAddChild@Base 4.11.3
- OSPPASN1ObjectCopy@Base 4.11.3
- OSPPASN1ObjectCopyElementObject@Base 4.11.3
- OSPPASN1ObjectCreate@Base 4.11.3
- OSPPASN1ObjectDelete@Base 4.11.3
- OSPPASN1ObjectDeparse@Base 4.11.3
- OSPPASN1ObjectEncode@Base 4.11.3
- OSPPASN1ObjectFormat@Base 4.11.3
- OSPPASN1ObjectGetElementByDataRef@Base 4.11.3
-