diff -pruN 4.1.5-4/debian/changelog 4.1.5-5/debian/changelog
--- 4.1.5-4/debian/changelog	2024-06-03 21:53:57.000000000 +0000
+++ 4.1.5-5/debian/changelog	2025-10-13 14:26:58.000000000 +0000
@@ -1,3 +1,18 @@
+generator-scripting-language (4.1.5-5) unstable; urgency=medium
+
+  [ Luca Boccassi ]
+  * d/rules: add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to fix FTBFS with
+    CMake 4 (Closes: #1112945)
+  * Build depend on libcrypt-dev (Closes: #1106982)
+  * d/control: bump Standards-Version to 4.7.2, no changes
+  * d/copyright: fix path to sflstr.c
+  * d/patches: fix some metadata
+
+  [ Nilesh Patra ]
+  * d/rules: fix cross compilation (Closes: #1110323)
+
+ -- Luca Boccassi <bluca@debian.org>  Mon, 13 Oct 2025 15:26:58 +0100
+
 generator-scripting-language (4.1.5-4) unstable; urgency=medium
 
   * Merge pull request #1 from debian-janitor/lintian-fixes
diff -pruN 4.1.5-4/debian/control 4.1.5-5/debian/control
--- 4.1.5-4/debian/control	2024-06-03 21:53:05.000000000 +0000
+++ 4.1.5-5/debian/control	2025-10-13 14:19:05.000000000 +0000
@@ -2,9 +2,9 @@ Source: generator-scripting-language
 Section: devel
 Priority: optional
 Maintainer: Luca Boccassi <bluca@debian.org>
-Standards-Version: 4.7.0
+Standards-Version: 4.7.2
 Rules-Requires-Root: no
-Build-Depends: debhelper-compat (= 13), cmake,
+Build-Depends: debhelper-compat (= 13), cmake, libcrypt-dev,
 Homepage: https://github.com/zeromq/gsl
 Vcs-Git: https://github.com/bluca/gsl.git
 Vcs-Browser: https://github.com/bluca/gsl
diff -pruN 4.1.5-4/debian/copyright 4.1.5-5/debian/copyright
--- 4.1.5-4/debian/copyright	2024-06-03 21:53:57.000000000 +0000
+++ 4.1.5-5/debian/copyright	2025-10-13 14:26:56.000000000 +0000
@@ -34,7 +34,7 @@ Copyright: 1996-2016 iMatix Corporation
            2016-2017 GSL Developers <zeromq-dev@lists.zeromq.org>
 License: BSD-3-clause
 
-Files: sflstr.c
+Files: src/sflstr.c
 Copyright: 1998 Todd C. Miller <Todd.Miller@courtesan.com>
 License: MIT-old-style-with-legal-disclaimer
  Permission to use, copy, modify, and distribute this software for any
diff -pruN 4.1.5-4/debian/patches/fix-ia64.patch 4.1.5-5/debian/patches/fix-ia64.patch
--- 4.1.5-4/debian/patches/fix-ia64.patch	2024-06-03 20:25:32.000000000 +0000
+++ 4.1.5-5/debian/patches/fix-ia64.patch	2025-10-13 14:26:56.000000000 +0000
@@ -1,5 +1,6 @@
 Author: Luca Boccassi <bluca@debian.org>
 Description: add preprocessor definitions for ia64
+Origin: https://github.com/zeromq/gsl/commit/c65f6fbfb6c0c527ecb73850c70b13ed146e0fe3
 Forwarded: https://github.com/zeromq/gsl/pull/30
 Last-Update: 2018-04-29
 --- a/src/prelude.h
diff -pruN 4.1.5-4/debian/patches/fix-loongarch64.patch 4.1.5-5/debian/patches/fix-loongarch64.patch
--- 4.1.5-4/debian/patches/fix-loongarch64.patch	2024-06-03 20:28:51.000000000 +0000
+++ 4.1.5-5/debian/patches/fix-loongarch64.patch	2025-10-13 14:26:56.000000000 +0000
@@ -1,7 +1,7 @@
 Author: ZHANG NA <zhangna@loongson.cn>
 Description: add loongarch64 architecture support
 Origin: https://github.com/zeromq/gsl/commit/780e07ad647dd4ee55444ba83be71af84c8b9ca7
-Forwarded: yes
+Forwarded: https://github.com/zeromq/gsl/pull/47
 --- a/src/prelude.h
 +++ b/src/prelude.h
 @@ -94,7 +94,8 @@
diff -pruN 4.1.5-4/debian/patches/fix-mips64el.patch 4.1.5-5/debian/patches/fix-mips64el.patch
--- 4.1.5-4/debian/patches/fix-mips64el.patch	2024-06-03 20:25:32.000000000 +0000
+++ 4.1.5-5/debian/patches/fix-mips64el.patch	2025-10-13 14:26:56.000000000 +0000
@@ -1,6 +1,7 @@
 Author: Luca Boccassi <bluca@debian.org>
 Description: add preprocessor definitions for mips64el
-Forwarded: yes
+Origin: https://github.com/zeromq/gsl/commit/4f3d0836872a4a54795f65685ee6d0ad942521b9
+Forwarded: https://github.com/zeromq/gsl/pull/16
 Last-Update: 2017-10-18
 --- a/src/prelude.h
 +++ b/src/prelude.h
diff -pruN 4.1.5-4/debian/patches/fix-riscv64.patch 4.1.5-5/debian/patches/fix-riscv64.patch
--- 4.1.5-4/debian/patches/fix-riscv64.patch	2024-06-03 20:25:32.000000000 +0000
+++ 4.1.5-5/debian/patches/fix-riscv64.patch	2025-10-13 14:26:56.000000000 +0000
@@ -1,5 +1,6 @@
 Author: Luca Boccassi <bluca@debian.org>
 Description: add preprocessor definitions for riscv64
+Origin: https://github.com/zeromq/gsl/commit/e80cd452a4b602553063a62046286a24abd6d722
 Forwarded: https://github.com/zeromq/gsl/pull/30
 Last-Update: 2018-04-29
 --- a/src/prelude.h
diff -pruN 4.1.5-4/debian/patches/fix-sparc64.patch 4.1.5-5/debian/patches/fix-sparc64.patch
--- 4.1.5-4/debian/patches/fix-sparc64.patch	2024-06-03 20:25:32.000000000 +0000
+++ 4.1.5-5/debian/patches/fix-sparc64.patch	2025-10-13 14:26:56.000000000 +0000
@@ -1,6 +1,7 @@
 Author: Luca Boccassi <bluca@debian.org>
 Description: add preprocessor definitions for sparc 64
-Forwarded: yes
+Origin: https://github.com/zeromq/gsl/commit/eda3935f45402c874151cd73be4c29dc989a274f
+Forwarded: https://github.com/zeromq/gsl/pull/16
 Last-Update: 2017-10-18
 --- a/src/prelude.h
 +++ b/src/prelude.h
diff -pruN 4.1.5-4/debian/rules 4.1.5-5/debian/rules
--- 4.1.5-4/debian/rules	2024-06-03 21:53:05.000000000 +0000
+++ 4.1.5-5/debian/rules	2025-10-13 14:17:18.000000000 +0000
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE=1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+-include /usr/share/dpkg/buildtools.mk
 
 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
     PAR := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
@@ -16,10 +17,13 @@ export DEB_CPPFLAGS_MAINT_APPEND=-I$(CUR
 execute_after_dh_auto_clean:
 	rm -rf $(CURDIR)/debian/pcre3-$(DEB_HOST_GNU_TYPE)
 
-execute_before_dh_auto_build:
+override_dh_auto_build:
 	mkdir -p $(CURDIR)/debian/pcre3-$(DEB_HOST_GNU_TYPE)
 	cd $(CURDIR)/debian/pcre3-$(DEB_HOST_GNU_TYPE) && \
 		cmake ../pcre3 \
+			-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
+			-DCMAKE_CXX_COMPILER=$(CXX) \
+			-DCMAKE_C_COMPILER=$(CC) \
 			-DPCRE_SUPPORT_UTF=ON \
 			-DPCRE_SUPPORT_UNICODE_PROPERTIES=ON \
 			-DPCRE_BUILD_PCRECPP=OFF \
@@ -28,4 +32,5 @@ execute_before_dh_auto_build:
 			-DPCRE_SUPPORT_LIBZ=OFF \
 			-DPCRE_SUPPORT_LIBBZ2=OFF \
 			-DPCRE_SUPPORT_LIBREADLINE=OFF && \
-		make
+		$(MAKE) CC="$(CC)"
+	dh_auto_build -- CC="CCNAME=$(CC) ./c -q"
