diffstat for nss-pem-1.1.0+1 nss-pem-1.1.0+1

 changelog                                           |    7 ++++
 patches/0001-cmake-require-at-least-CMake-3.5.patch |   32 ++++++++++++++++++++
 patches/series                                      |    1 
 3 files changed, 40 insertions(+)

diff -Nru nss-pem-1.1.0+1/debian/changelog nss-pem-1.1.0+1/debian/changelog
--- nss-pem-1.1.0+1/debian/changelog	2024-02-15 09:00:11.000000000 +0200
+++ nss-pem-1.1.0+1/debian/changelog	2025-10-27 13:33:22.000000000 +0200
@@ -1,3 +1,10 @@
+nss-pem (1.1.0+1-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport upstream fix for FTBFS with CMake 4. (Closes: #1113331)
+
+ -- Adrian Bunk <bunk@debian.org>  Mon, 27 Oct 2025 13:33:22 +0200
+
 nss-pem (1.1.0+1-1) unstable; urgency=medium
 
   * control: Fix maintainer address.
diff -Nru nss-pem-1.1.0+1/debian/patches/0001-cmake-require-at-least-CMake-3.5.patch nss-pem-1.1.0+1/debian/patches/0001-cmake-require-at-least-CMake-3.5.patch
--- nss-pem-1.1.0+1/debian/patches/0001-cmake-require-at-least-CMake-3.5.patch	1970-01-01 02:00:00.000000000 +0200
+++ nss-pem-1.1.0+1/debian/patches/0001-cmake-require-at-least-CMake-3.5.patch	2025-10-27 13:33:22.000000000 +0200
@@ -0,0 +1,32 @@
+From 399849bd74ffcac6694e9fa43e3696e640725880 Mon Sep 17 00:00:00 2001
+From: Lukáš Zaoral <lzaoral@redhat.com>
+Date: Thu, 24 Apr 2025 09:20:54 +0200
+Subject: cmake: require at least CMake 3.5
+
+... to be compatible with CMake 4.0+ and also move the requirement to
+the top of CMakeLists.txt to fix the following warning:
+```
+CMake Warning (dev) at CMakeLists.txt:1 (project):
+  cmake_minimum_required() should be called prior to this top-level project()
+  call.  Please see the cmake-commands(7) manual for usage documentation of
+  both commands.
+This warning is for project developers.  Use -Wno-dev to suppress it.
+```
+---
+ src/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 361ef75..58bc00d 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -1,5 +1,5 @@
++cmake_minimum_required(VERSION 3.5)
+ project(libnsspem C)
+-cmake_minimum_required(VERSION 2.8.12)
+ enable_testing()
+ 
+ # use pkg-config to detect CFLAGS and LDFLAGS
+-- 
+2.30.2
+
diff -Nru nss-pem-1.1.0+1/debian/patches/series nss-pem-1.1.0+1/debian/patches/series
--- nss-pem-1.1.0+1/debian/patches/series	2023-08-11 15:44:03.000000000 +0300
+++ nss-pem-1.1.0+1/debian/patches/series	2025-10-27 13:33:22.000000000 +0200
@@ -1 +1,2 @@
 fix-ftbfs-s390x.patch
+0001-cmake-require-at-least-CMake-3.5.patch
