diffstat for geomview-1.9.5 geomview-1.9.5

 changelog               |   11 +++++++++++
 control                 |    3 +--
 patches/12_time_t.patch |   17 +++++++++++++++++
 patches/series          |    1 +
 rules                   |    4 ++--
 5 files changed, 32 insertions(+), 4 deletions(-)

diff -Nru geomview-1.9.5/debian/changelog geomview-1.9.5/debian/changelog
--- geomview-1.9.5/debian/changelog	2024-11-25 08:20:59.000000000 +0200
+++ geomview-1.9.5/debian/changelog	2025-09-26 20:50:19.000000000 +0300
@@ -1,3 +1,14 @@
+geomview (1.9.5-5.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Build with -std=gnu17 to workaround FTBFS with GCC 15.
+    (Closes: #1096696)
+  * Fix the build with 64-bit time_t on 32-bit instead of restricting
+    the architectures.
+  * Don't hardcode the build awk in gvclock. (Closes: #1116397)
+
+ -- Adrian Bunk <bunk@debian.org>  Fri, 26 Sep 2025 20:50:19 +0300
+
 geomview (1.9.5-5) unstable; urgency=medium
 
   [ Steve Robbins ]
diff -Nru geomview-1.9.5/debian/control geomview-1.9.5/debian/control
--- geomview-1.9.5/debian/control	2024-11-25 08:20:59.000000000 +0200
+++ geomview-1.9.5/debian/control	2025-09-26 20:50:19.000000000 +0300
@@ -3,8 +3,7 @@
 Uploaders: Steve M. Robbins <smr@debian.org>
 Section: math
 Priority: optional
-Build-Depends: architecture-is-64-bit,
-               dpkg-dev (>= 1.22.5), debhelper-compat (= 13),
+Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13),
                dh-exec,
                bison,
                flex,
diff -Nru geomview-1.9.5/debian/patches/12_time_t.patch geomview-1.9.5/debian/patches/12_time_t.patch
--- geomview-1.9.5/debian/patches/12_time_t.patch	1970-01-01 02:00:00.000000000 +0200
+++ geomview-1.9.5/debian/patches/12_time_t.patch	2025-09-26 20:50:19.000000000 +0300
@@ -0,0 +1,17 @@
+Description: Fix the build with 64-bit time_t on 32-bit
+Author: Adrian Bunk <bunk@debian.org>
+Bug-Debian: https://bugs.debian.org/1088201
+
+--- geomview-1.9.5.orig/src/bin/geomutil/ucd/anytoucd.c
++++ geomview-1.9.5/src/bin/geomutil/ucd/anytoucd.c
+@@ -372,9 +372,8 @@ int main(int argc, char **argv)
+ 	}
+     {
+     char *timestring;
+-    long mytime;
+     time_t myt;
+-    myt = time(&mytime);
++    myt = time(NULL);
+     timestring = ctime(&myt);
+     fprintf(fp,"#  Created by anytoucd on %s \n",timestring);
+     }
diff -Nru geomview-1.9.5/debian/patches/series geomview-1.9.5/debian/patches/series
--- geomview-1.9.5/debian/patches/series	2024-11-25 08:20:59.000000000 +0200
+++ geomview-1.9.5/debian/patches/series	2025-09-26 20:50:19.000000000 +0300
@@ -6,3 +6,4 @@
 09_anytoucd_mayhem.patch
 10_link-gvx-with-opengl.patch
 11_cross.patch
+12_time_t.patch
diff -Nru geomview-1.9.5/debian/rules geomview-1.9.5/debian/rules
--- geomview-1.9.5/debian/rules	2024-11-25 08:20:59.000000000 +0200
+++ geomview-1.9.5/debian/rules	2025-09-26 20:50:19.000000000 +0300
@@ -1,6 +1,6 @@
 #! /usr/bin/make -f
 
-CFLAGS += -fno-strict-aliasing
+CFLAGS += -fno-strict-aliasing -std=gnu17
 CXXFLAGS += -fno-strict-aliasing
 
 DEB_MAKE_INVOKE += moduledir=/usr/lib/geomview
@@ -11,7 +11,7 @@
 	dh $@
 
 override_dh_auto_configure:
-	dh_auto_configure -- --with-htmlbrowser=sensible-browser --with-pdfviewer=evince
+	AWK=awk dh_auto_configure -- --with-htmlbrowser=sensible-browser --with-pdfviewer=evince
 
 override_dh_auto_build:
 	$(MAKE) -C doc geomview.ps
