Bug#1063320: gretl: NMU diff for 64-bit time_t transition

2024-02-28 Thread Dirk Eddelbuettel


On 29 February 2024 at 00:20, Steve Langasek wrote:
| 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 a lot for managing this well.  I replaced the earlier patch with this
one and force-pushed over the previous commit.  The repo is current.

Really appreciate the handling of the 64-bit time_t issue by all.

Cheers, Dirk
 
| Thanks!
| 
| 
| -- 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)
| x[DELETED ATTACHMENT nmu_gretl.debdiff, plain text]

-- 
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org



Bug#1063320: gretl: 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')
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 gretl-2023c/debian/changelog gretl-2023c/debian/changelog
--- gretl-2023c/debian/changelog2024-02-03 17:33:53.0 +
+++ gretl-2023c/debian/changelog2024-02-28 23:38:53.0 +
@@ -1,3 +1,10 @@
+gretl (2023c-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1063320
+
+ -- Steve Langasek   Wed, 28 Feb 2024 23:38:53 +
+
 gretl (2023c-2) unstable; urgency=medium
 
   * debian/rules: Add '--enable-build-addons' to enable shipping gretl
diff -Nru gretl-2023c/debian/control gretl-2023c/debian/control
--- gretl-2023c/debian/control  2024-02-03 15:13:50.0 +
+++ gretl-2023c/debian/control  2024-02-28 23:38:53.0 +
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Dirk Eddelbuettel 
 Standards-Version: 4.6.2
-Build-Depends: debhelper-compat (= 13), libgtk-3-dev, libglib2.0-dev, 
libreadline-dev, zlib1g-dev, libxml2-dev, gnuplot-x11, libgmp-dev, 
libfreetype-dev, libpng-dev, libblas-dev, liblapack-dev, libxslt1-dev, 
libmpfr-dev, libfftw3-dev, texlive-base, texlive-latex-base, 
texlive-latex-recommended, texlive-latex-extra, texlive-fonts-recommended, 
texlive-fonts-extra, gfortran, r-base-dev, unixodbc-dev, 
libgtksourceview-3.0-dev, libcurl4-gnutls-dev | libcurl4-dev, libjson-glib-dev, 
mpi-default-dev, mpi-default-bin
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13), libgtk-3-dev, 
libglib2.0-dev, libreadline-dev, zlib1g-dev, libxml2-dev, gnuplot-x11, 
libgmp-dev, libfreetype-dev, libpng-dev, libblas-dev, liblapack-dev, 
libxslt1-dev, libmpfr-dev, libfftw3-dev, texlive-base, texlive-latex-base, 
texlive-latex-recommended, texlive-latex-extra, texlive-fonts-recommended, 
texlive-fonts-extra, gfortran, r-base-dev, unixodbc-dev, 
libgtksourceview-3.0-dev, libcurl4-gnutls-dev | libcurl4-dev, libjson-glib-dev, 
mpi-default-dev, mpi-default-bin
 Vcs-Browser: https://salsa.debian.org/edd/gretl
 Vcs-Git: https://salsa.debian.org/edd/gretl.git
 Homepage: http://gretl.sourceforge.net/
@@ -21,12 +21,14 @@
  .
  This package provides the GTK+ client and the command-line client.
 
-Package: libgretl1
+Package: libgretl1t64
+Provides: ${t64:Provides}
+Breaks: libgretl1 (<< ${source:Version})
 Section: libs
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends} 
 Conflicts: libesl0, libgretl0
-Replaces: libesl0, libgretl0
+Replaces: libgretl1, libesl0, libgretl0
 Description: GNU Regression, Econometric & Time-Series Library -- library 
package 
  The GNU Regression, Econometric and Time-Series Library (gretl) is a
  software package for econometric analysis.  The package comprises a
@@ -38,7 +40,7 @@
 Package: libgretl1-dev
 Section: libdevel
 Architecture: any
-Depends: gretl, libgretl1 (= ${binary:Version}), ${misc:Depends}
+Depends: gretl, libgretl1t64 (= ${binary:Version}), ${misc:Depends}
 Conflicts: libesl0-dev, libgretl0-dev
 Replaces: libesl0-dev, libgretl0-dev
 Description: GNU Regression, Econometric & Time-Series Library -- development 
package
diff -Nru gretl-2023c/debian/libgretl1.files gretl-2023c/debian/libgretl1.files
--- gretl-2023c/debian/libgretl1.files  2018-08-12 21:07:33.0 +
+++ gretl-2023c/debian/libgretl1.files  1970-01-01 00:00:00.0 +
@@ -1,2 +0,0 @@
-usr/lib/lib*.so.*
-usr/lib/lib*.la
diff -Nru gretl-2023c/debian/libgretl1.postinst 
gretl-2023c/debian/libgretl1.postinst
--- gretl-2023c/debian/libgretl1.postinst   2018-08-12 21:19:47.0 
+
+++ gretl-2023c/debian/libgretl1.postinst   1970-01-01 00:00:00.0 
+
@@ -1,25 +0,0 @@
-#!/bin/sh -e
-#
-# postinst script for the Debian GNU/Linux libgretl1 package
-#
-# Written and GPL'ed by Dirk Eddelbuettel
-
-#DEBHELPER#
-ldconfig
-
-case "$1" in
-
-configure) 
-   ;;
-
-upgrade|abort-upgrade|abort-remove|abort-deconfigure)
-   ;;
-
-*)
-echo "postinst called with unknown argument \`$1'" >&2
-;;
-
-esac
-
-exit 0 
-
diff -Nru gretl-2023c/debian/libgretl1.shlibs 
gretl-2023c/debian/libgretl1.shlibs
--- gretl-2023c/debian/libgretl1.shlibs 2023-12-05 23:57:14.0 +
+++ gretl-2023c/debian/libgretl1.shlibs 1970-01-01 00:00:00.0 +
@@ -1 +0,0 @@
-libgretl-1.0 46 libgretl1 (>= 2023c)
diff -Nru 

Bug#1063320: gretl: NMU diff for 64-bit time_t transition

2024-02-07 Thread Dirk Eddelbuettel


On 6 February 2024 at 06:43, Steve Langasek wrote:
| Source: gretl
| Version: 2023c-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
| gretl 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 gretl
| 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.

Thanks, Steve.

I applied the patch to my repo and committed to salsa.  Gretl updates
infrequently enough so that a transition to unstable is very likely to happen
before a new upstream.

Cheers, Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org



Bug#1063320: gretl: NMU diff for 64-bit time_t transition

2024-02-05 Thread Steve Langasek
Source: gretl
Version: 2023c-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
gretl 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 gretl
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'), (500, 'testing'), (500, 'stable'), (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 gretl-2023c/debian/changelog gretl-2023c/debian/changelog
--- gretl-2023c/debian/changelog2024-02-03 17:33:53.0 +
+++ gretl-2023c/debian/changelog2024-02-06 06:01:41.0 +
@@ -1,3 +1,10 @@
+gretl (2023c-2.1) experimental; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.
+
+ -- Steve Langasek   Tue, 06 Feb 2024 06:01:41 +
+
 gretl (2023c-2) unstable; urgency=medium
 
   * debian/rules: Add '--enable-build-addons' to enable shipping gretl
diff -Nru gretl-2023c/debian/control gretl-2023c/debian/control
--- gretl-2023c/debian/control  2024-02-03 15:13:50.0 +
+++ gretl-2023c/debian/control  2024-02-06 06:01:41.0 +
@@ -21,12 +21,14 @@
  .
  This package provides the GTK+ client and the command-line client.
 
-Package: libgretl1
+Package: libgretl1t64
+Provides: ${t64:Provides}
+Breaks: libgretl1 (<< ${source:Version})
 Section: libs
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends} 
 Conflicts: libesl0, libgretl0
-Replaces: libesl0, libgretl0
+Replaces: libgretl1, libesl0, libgretl0
 Description: GNU Regression, Econometric & Time-Series Library -- library 
package 
  The GNU Regression, Econometric and Time-Series Library (gretl) is a
  software package for econometric analysis.  The package comprises a
@@ -38,7 +40,7 @@
 Package: libgretl1-dev
 Section: libdevel
 Architecture: any
-Depends: gretl, libgretl1 (= ${binary:Version}), ${misc:Depends}
+Depends: gretl, libgretl1t64 (= ${binary:Version}), ${misc:Depends}
 Conflicts: libesl0-dev, libgretl0-dev
 Replaces: libesl0-dev, libgretl0-dev
 Description: GNU Regression, Econometric & Time-Series Library -- development 
package
diff -Nru gretl-2023c/debian/libgretl1.files gretl-2023c/debian/libgretl1.files
--- gretl-2023c/debian/libgretl1.files  2018-08-12 21:07:33.0 +
+++ gretl-2023c/debian/libgretl1.files  1970-01-01 00:00:00.0 +
@@ -1,2 +0,0 @@
-usr/lib/lib*.so.*
-usr/lib/lib*.la
diff -Nru gretl-2023c/debian/libgretl1.postinst 
gretl-2023c/debian/libgretl1.postinst
--- gretl-2023c/debian/libgretl1.postinst   2018-08-12 21:19:47.0 
+
+++ gretl-2023c/debian/libgretl1.postinst   1970-01-01 00:00:00.0 
+
@@ -1,25 +0,0 @@
-#!/bin/sh -e
-#
-# postinst script for the Debian GNU/Linux libgretl1 package
-#
-# Written and GPL'ed by Dirk Eddelbuettel
-
-#DEBHELPER#
-ldconfig
-
-case "$1" in
-
-configure) 
-   ;;
-
-upgrade|abort-upgrade|abort-remove|abort-deconfigure)
-   ;;
-
-*)
-echo "postinst called with unknown argument \`$1'" >&2
-;;
-
-esac
-
-exit 0 
-
diff -Nru gretl-2023c/debian/libgretl1.shlibs 
gretl-2023c/debian/libgretl1.shlibs
--- gretl-2023c/debian/libgretl1.shlibs 2023-12-05