diffstat for libint-1.2.1 libint-1.2.1

 changelog             |   10 ++++++++++
 patches/cmake-4.patch |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 patches/gcc-15.patch  |   41 +++++++++++++++++++++++++++++++++++++++++
 patches/series        |    2 ++
 rules                 |    3 +++
 5 files changed, 103 insertions(+)

diff -Nru libint-1.2.1/debian/changelog libint-1.2.1/debian/changelog
--- libint-1.2.1/debian/changelog	2021-03-15 19:31:14.000000000 +0200
+++ libint-1.2.1/debian/changelog	2025-10-03 20:50:22.000000000 +0300
@@ -1,3 +1,13 @@
+libint (1.2.1-6.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with GCC 15. (Closes: #1097200)
+  * Fix FTBFS with CMake 4. (Closes: #1113159)
+  * Apply patch from Vagrant Cascadian to make the build reproducible.
+    (Closes: #1037309)
+
+ -- Adrian Bunk <bunk@debian.org>  Fri, 03 Oct 2025 20:50:22 +0300
+
 libint (1.2.1-6) unstable; urgency=medium
 
   * debian/libint1.links: File removed.
diff -Nru libint-1.2.1/debian/patches/cmake-4.patch libint-1.2.1/debian/patches/cmake-4.patch
--- libint-1.2.1/debian/patches/cmake-4.patch	1970-01-01 02:00:00.000000000 +0200
+++ libint-1.2.1/debian/patches/cmake-4.patch	2025-10-03 20:50:22.000000000 +0300
@@ -0,0 +1,47 @@
+Description: Fix FTBFS with CMake 4
+Author: Adrian Bunk <bunk@debian.org>
+Bug-Debian: https://bugs.debian.org/1113159
+
+--- libint-1.2.1.orig/CMakeLists.txt
++++ libint-1.2.1/CMakeLists.txt
+@@ -8,7 +8,7 @@ set(Libint_DESCRIPTION  "Library for the
+ set(Libint_URL          "http://libint.valeyev.net")
+ set(Libint_LICENSE      "GPL-3.0 for generator; LGPL-3.0 for generated")
+ 
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
+ 
+ ################################### Options ####################################
+--- libint-1.2.1.orig/src/bin/libderiv/CMakeLists.txt
++++ libint-1.2.1/src/bin/libderiv/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ project(libderiv_compiler LANGUAGES C)
+ 
+ # <<<  Build  >>>
+--- libint-1.2.1.orig/src/bin/libint/CMakeLists.txt
++++ libint-1.2.1/src/bin/libint/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ project(libint_compiler LANGUAGES C)
+ 
+ # <<<  Build  >>>
+--- libint-1.2.1.orig/src/lib/libderiv/CMakeLists.txt
++++ libint-1.2.1/src/lib/libderiv/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ project(Libintderiv LANGUAGES C CXX)
+ 
+ include(GNUInstallDirs)
+--- libint-1.2.1.orig/src/lib/libint/CMakeLists.txt
++++ libint-1.2.1/src/lib/libint/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ project(Libintint LANGUAGES C CXX)
+ 
+ include(GNUInstallDirs)
diff -Nru libint-1.2.1/debian/patches/gcc-15.patch libint-1.2.1/debian/patches/gcc-15.patch
--- libint-1.2.1/debian/patches/gcc-15.patch	1970-01-01 02:00:00.000000000 +0200
+++ libint-1.2.1/debian/patches/gcc-15.patch	2025-10-03 20:50:22.000000000 +0300
@@ -0,0 +1,41 @@
+Description: Fix FTBFS with GCC 15
+Author: Adrian Bunk <bunk@debian.org>
+Bug-Debian: https://bugs.debian.org/1097200
+
+--- libint-1.2.1.orig/src/bin/libint/build_libint.c
++++ libint-1.2.1/src/bin/libint/build_libint.c
+@@ -59,7 +59,7 @@ char *real_type;   /*--- C type for real
+ int libint_stack_size[MAX_AM/2+1];
+ LibintParams_t Params;
+ 
+-void punt();
++void punt(char* str);
+ extern void emit_vrr_build();
+ extern void emit_vrr_build_macro();
+ extern void emit_order();
+--- libint-1.2.1.orig/src/bin/libint/emit_vrr_build.c
++++ libint-1.2.1/src/bin/libint/emit_vrr_build.c
+@@ -30,8 +30,8 @@ extern FILE *outfile, *vrr_header;
+ extern void punt(char *);
+ extern LibintParams_t Params;
+ 
+-static void declare_localv();
+-static void define_localv();
++static void declare_localv(int a, int k1max, int k2max, int k3max, FILE *code);
++static void define_localv(int a, int foo, int k1max, int k2max, int k3max, FILE *code);
+ 
+ static char **k1, **k2, **k3;
+ 
+--- libint-1.2.1.orig/src/bin/libint/emit_vrr_build_macro.c
++++ libint-1.2.1/src/bin/libint/emit_vrr_build_macro.c
+@@ -30,8 +30,8 @@ extern FILE *outfile, *vrr_header;
+ extern void punt(char *);
+ extern LibintParams_t Params;
+ 
+-static void declare_localv();
+-static void define_localv();
++static void declare_localv(int a, int k1max, int k2max, int k3max, FILE *code);
++static void define_localv(int a, int foo, int k1max, int k2max, int k3max, FILE *code);
+ 
+ static char **k1, **k2, **k3;
+ 
diff -Nru libint-1.2.1/debian/patches/series libint-1.2.1/debian/patches/series
--- libint-1.2.1/debian/patches/series	2021-01-17 18:26:53.000000000 +0200
+++ libint-1.2.1/debian/patches/series	2025-10-03 20:50:22.000000000 +0300
@@ -1,2 +1,4 @@
 fix_makefiles.patch
 fix_doc_makefile.patch
+gcc-15.patch
+cmake-4.patch
diff -Nru libint-1.2.1/debian/rules libint-1.2.1/debian/rules
--- libint-1.2.1/debian/rules	2021-03-15 15:50:24.000000000 +0200
+++ libint-1.2.1/debian/rules	2025-10-03 20:50:22.000000000 +0300
@@ -16,6 +16,9 @@
 
 export AUTOHEADER = true
 
+# Ensure that texlive respects SOURCE_DATE_EPOCH for reproducible builds
+export FORCE_SOURCE_DATE=1
+
 %:
 	dh $@ --with autoreconf --parallel
 
