diffstat for pagmo-2.19.1 pagmo-2.19.1

 changelog                                                  |    8 ++
 patches/0001-Fix-BFE-test-for-C-20-stateless-lambdas.patch |   48 +++++++++++++
 patches/series                                             |    1 
 3 files changed, 57 insertions(+)

diff -Nru pagmo-2.19.1/debian/changelog pagmo-2.19.1/debian/changelog
--- pagmo-2.19.1/debian/changelog	2026-05-12 23:12:48.000000000 +0300
+++ pagmo-2.19.1/debian/changelog	2026-08-31 21:06:53.000000000 +0300
@@ -1,3 +1,11 @@
+pagmo (2.19.1-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport fix suggested upstream for FTBFS with GCC 16.
+    (Closes: #1133602)
+
+ -- Adrian Bunk <bunk@debian.org>  Mon, 31 Aug 2026 21:06:53 +0300
+
 pagmo (2.19.1-2) unstable; urgency=medium
 
   * Removing constraint on the precise version of Eigen3 to use
diff -Nru pagmo-2.19.1/debian/patches/0001-Fix-BFE-test-for-C-20-stateless-lambdas.patch pagmo-2.19.1/debian/patches/0001-Fix-BFE-test-for-C-20-stateless-lambdas.patch
--- pagmo-2.19.1/debian/patches/0001-Fix-BFE-test-for-C-20-stateless-lambdas.patch	1970-01-01 02:00:00.000000000 +0200
+++ pagmo-2.19.1/debian/patches/0001-Fix-BFE-test-for-C-20-stateless-lambdas.patch	2026-08-31 21:06:53.000000000 +0300
@@ -0,0 +1,48 @@
+From 71846eed48cbf5f886fdb1dd0bd045640b45bdf5 Mon Sep 17 00:00:00 2001
+From: shin4141 <128954611+shin4141@users.noreply.github.com>
+Date: Sun, 23 Aug 2026 09:22:03 +0900
+Subject: Fix BFE test for C++20 stateless lambdas
+
+---
+ tests/bfe.cpp | 20 +++++++++++++++++++-
+ 1 file changed, 19 insertions(+), 1 deletion(-)
+
+diff --git a/tests/bfe.cpp b/tests/bfe.cpp
+index cf32c2e3..4fba20d7 100644
+--- a/tests/bfe.cpp
++++ b/tests/bfe.cpp
+@@ -455,12 +455,30 @@ BOOST_AUTO_TEST_CASE(s11n)
+     BOOST_CHECK(bfe0.extract<udbfe_a>()->state = -42);
+ }
+ 
++template <typename T>
++void test_lambda_udbfe(const T &fun)
++{
++    if constexpr (is_udbfe<T>::value) {
++        bfe bfe0{fun};
++        BOOST_CHECK(bfe0.is<T>());
++        bfe bfe1{bfe0};
++        BOOST_CHECK(bfe1.is<T>());
++        BOOST_CHECK(bfe1(problem{}, vector_double{.5}) == vector_double{1.});
++        BOOST_CHECK(bfe1(problem{null_problem{3}}, vector_double{.5}) == (vector_double{1., 1., 1.}));
++    }
++}
++
+ BOOST_AUTO_TEST_CASE(lambda_std_function)
+ {
+     auto fun = [](const problem &p, const vector_double &dvs) {
+         return vector_double(p.get_nf() * (dvs.size() / p.get_nx()), 1.);
+     };
+-    BOOST_CHECK(!is_udbfe<decltype(fun)>::value);
++    BOOST_CHECK(std::is_copy_constructible<decltype(fun)>::value);
++    BOOST_CHECK(std::is_move_constructible<decltype(fun)>::value);
++    BOOST_CHECK(std::is_destructible<decltype(fun)>::value);
++    BOOST_CHECK(has_bfe_call_operator<decltype(fun)>::value);
++    BOOST_CHECK_EQUAL(is_udbfe<decltype(fun)>::value, std::is_default_constructible<decltype(fun)>::value);
++    test_lambda_udbfe(fun);
+ #if !defined(_MSC_VER)
+     BOOST_CHECK(is_udbfe<decltype(+fun)>::value);
+ #endif
+-- 
+2.47.3
+
diff -Nru pagmo-2.19.1/debian/patches/series pagmo-2.19.1/debian/patches/series
--- pagmo-2.19.1/debian/patches/series	2026-05-12 22:51:45.000000000 +0300
+++ pagmo-2.19.1/debian/patches/series	2026-08-31 21:06:53.000000000 +0300
@@ -1,3 +1,4 @@
 linker_flags_for_armel_mipsel.patch
 check_equality_floating.patch
 allow_newer_eigen3_versions.patch
+0001-Fix-BFE-test-for-C-20-stateless-lambdas.patch
