Bug#1064085: gts: NMU diff for 64-bit time_t transition

2024-03-10 Thread Zixing Liu
Package: gts
Version: 0.7.6+darcs121130-5.1
Followup-For: Bug #1064085
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

Please find attached a patch for fixing shlib dependency marking of 
libgts-0.7-5t64.
This was a regression introduced by the time_t transition.

  * d/symbols: rename package libgts-0.7-5 to libgts-0.7-5t64.


Thanks for considering the patch.


-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), 
(100, 'jammy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-25-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru gts-0.7.6+darcs121130/debian/symbols 
gts-0.7.6+darcs121130/debian/symbols
--- gts-0.7.6+darcs121130/debian/symbols2021-11-11 09:18:31.0 
-0700
+++ gts-0.7.6+darcs121130/debian/symbols2024-03-10 20:46:33.0 
-0600
@@ -1,4 +1,4 @@
-libgts-0.7.so.5 libgts-0.7-5 #MINVER#
+libgts-0.7.so.5 libgts-0.7-5t64 #MINVER#
  gts_allow_floating_edges@Base 0.7.6
  gts_allow_floating_faces@Base 0.7.6
  gts_allow_floating_gnodes@Base 0.7.6


Bug#1064085: gts: 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 gts-0.7.6+darcs121130/debian/changelog 
gts-0.7.6+darcs121130/debian/changelog
--- gts-0.7.6+darcs121130/debian/changelog  2021-11-11 16:18:31.0 
+
+++ gts-0.7.6+darcs121130/debian/changelog  2024-02-29 06:16:10.0 
+
@@ -1,3 +1,10 @@
+gts (0.7.6+darcs121130-5.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libraries for 64-bit time_t transition.  Closes: #1064085
+
+ -- Steve Langasek   Thu, 29 Feb 2024 06:16:10 +
+
 gts (0.7.6+darcs121130-5) unstable; urgency=medium
 
   * Team upload
diff -Nru gts-0.7.6+darcs121130/debian/control 
gts-0.7.6+darcs121130/debian/control
--- gts-0.7.6+darcs121130/debian/control2021-11-11 16:18:31.0 
+
+++ gts-0.7.6+darcs121130/debian/control2024-02-29 06:16:10.0 
+
@@ -3,7 +3,7 @@
 Uploaders: Ruben Molina 
 Section: math
 Priority: optional
-Build-Depends: debhelper-compat (= 13),
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13),
libglib2.0-dev
 Standards-Version: 4.6.0
 Vcs-Browser: https://salsa.debian.org/science-team/gts
@@ -11,7 +11,9 @@
 Homepage: http://gts.sourceforge.net/
 Rules-Requires-Root: no
 
-Package: libgts-0.7-5
+Package: libgts-0.7-5t64
+Provides: ${t64:Provides}
+Breaks: libgts-0.7-5 (<< ${source:Version})
 Architecture: any
 Multi-Arch: same
 Section: devel
@@ -19,7 +21,7 @@
  ${misc:Depends}
 Recommends: libgts-bin
 Pre-Depends: ${misc:Pre-Depends}
-Replaces: libgts-0.7-1,
+Replaces: libgts-0.7-5, libgts-0.7-1,
   libgts-dev (<< ${binary:Version})
 Description: library to deal with 3D computational surface meshes
  The GNU Triangulated Surface Library is intended to provide a simple and
@@ -34,7 +36,7 @@
 Section: libdevel
 Depends: ${misc:Depends},
  libglib2.0-dev,
- libgts-0.7-5 (= ${binary:Version})
+ libgts-0.7-5t64 (= ${binary:Version})
 Suggests: libgts-doc
 Replaces: libgts-0.7-1
 Description: development files for libgts
@@ -49,7 +51,7 @@
 Multi-Arch: foreign
 Depends: ${shlibs:Depends},
  ${misc:Depends},
- libgts-0.7-5 (= ${binary:Version})
+ libgts-0.7-5t64 (= ${binary:Version})
 Replaces: libgts-0.7-1,
   libgts-dev (<< ${binary:Version})
 Description: utility binaries for libgts
diff -Nru gts-0.7.6+darcs121130/debian/libgts-0.7-5.install 
gts-0.7.6+darcs121130/debian/libgts-0.7-5.install
--- gts-0.7.6+darcs121130/debian/libgts-0.7-5.install   2021-11-11 
16:18:31.0 +
+++ gts-0.7.6+darcs121130/debian/libgts-0.7-5.install   1970-01-01 
00:00:00.0 +
@@ -1 +0,0 @@
-/usr/lib/*/lib*.so.*
diff -Nru gts-0.7.6+darcs121130/debian/libgts-0.7-5t64.install 
gts-0.7.6+darcs121130/debian/libgts-0.7-5t64.install
--- gts-0.7.6+darcs121130/debian/libgts-0.7-5t64.install1970-01-01 
00:00:00.0 +
+++ gts-0.7.6+darcs121130/debian/libgts-0.7-5t64.install2021-11-11 
16:18:31.0 +
@@ -0,0 +1 @@
+/usr/lib/*/lib*.so.*
diff -Nru gts-0.7.6+darcs121130/debian/libgts-0.7-5t64.lintian-overrides 
gts-0.7.6+darcs121130/debian/libgts-0.7-5t64.lintian-overrides
--- gts-0.7.6+darcs121130/debian/libgts-0.7-5t64.lintian-overrides  
1970-01-01 00:00:00.0 +
+++ gts-0.7.6+darcs121130/debian/libgts-0.7-5t64.lintian-overrides  
2024-02-29 06:15:21.0 +
@@ -0,0 +1 @@
+libgts-0.7-5t64: package-name-doesnt-match-sonames libgts-0.7-5
diff -Nru gts-0.7.6+darcs121130/debian/rules gts-0.7.6+darcs121130/debian/rules
--- gts-0.7.6+darcs121130/debian/rules  2021-11-11 16:18:31.0 +
+++ gts-0.7.6+darcs121130/debian/rules  2024-02-29 06:16:08.0 +
@@ -28,5 +28,5 @@
dh_installchangelogs ChangeLog
 
 override_dh_strip:
-   dh_strip -p libgts-0.7-5 --dbgsym-migration='libgts-dbg (<= 
0.7.6+darcs121130-4)'
+   dh_strip -p libgts-0.7-5t64 --dbgsym-migration='libgts-dbg (<= 
0.7.6+darcs121130-4)'
dh_strip -a --remaining-packages


Bug#1064085: gts: NMU diff for 64-bit time_t transition

2024-02-16 Thread Steve Langasek
Source: gts
Version: 0.7.6+darcs121130-5
Severity: important
Tags: patch pending sid trixie
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
gts 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 gts
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 gts-0.7.6+darcs121130/debian/Makefile.in 
gts-0.7.6+darcs121130/debian/Makefile.in
--- gts-0.7.6+darcs121130/debian/Makefile.in2021-11-11 16:18:31.0 
+
+++ gts-0.7.6+darcs121130/debian/Makefile.in2024-02-16 23:39:05.0 
+
@@ -1,9 +1,8 @@
-# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# Makefile.in generated by automake 1.16.5 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
-# Inc.
+# Copyright (C) 1994-2021 Free Software Foundation, Inc.
+
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -15,6 +14,61 @@
 
 @SET_MAKE@
 VPATH = @srcdir@
+am__is_gnu_make = { \
+  if test -z '$(MAKELEVEL)'; then \
+false; \
+  elif test -n '$(MAKE_HOST)'; then \
+true; \
+  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
+true; \
+  else \
+false; \
+  fi; \
+}
+am__make_running_with_option = \
+  case $${target_option-} in \
+  ?) ;; \
+  *) echo "am__make_running_with_option: internal error: invalid" \
+  "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+sane_makeflags=$$MFLAGS; \
+  else \
+case $$MAKEFLAGS in \
+  *\\[\ \  ]*) \
+bs=\\; \
+sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+  | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+test $$skip_next = yes && { skip_next=no; continue; }; \
+case $$flg in \
+  *=*|--*) continue;; \
+-*I) strip_trailopt 'I'; skip_next=yes;; \
+  -*I?*) strip_trailopt 'I';; \
+-*O) strip_trailopt 'O'; skip_next=yes;; \
+  -*O?*) strip_trailopt 'O';; \
+-*l) strip_trailopt 'l'; skip_next=yes;; \
+  -*l?*) strip_trailopt 'l';; \
+  -[dEDm]) skip_next=yes;; \
+  -[JT]) skip_next=yes;; \
+esac; \
+case $$flg in \
+  *$$target_option*) has_opt=yes; break;; \
+esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
 pkgdatadir = $(datadir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
 pkglibdir = $(libdir)/@PACKAGE@
@@ -34,21 +88,41 @@
 build_triplet = @build@
 host_triplet = @host@
 subdir = debian
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4