diffstat for rkcommon-1.14.2 rkcommon-1.14.2

 changelog                                                               |    8 +
 patches/0001-use-fully-qualified-rkcommon-math-rsqrt-to-avoid-ove.patch |   46 ++++++++++
 patches/series                                                          |    1 
 3 files changed, 55 insertions(+)

diff -Nru rkcommon-1.14.2/debian/changelog rkcommon-1.14.2/debian/changelog
--- rkcommon-1.14.2/debian/changelog	2024-09-29 21:18:56.000000000 +0300
+++ rkcommon-1.14.2/debian/changelog	2026-02-02 21:54:45.000000000 +0200
@@ -1,3 +1,11 @@
+rkcommon (1.14.2-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport upstream fix for FTBFS with glibc 2.42, thanks to
+    Aurelien Jarno. (Closes: #1115248)
+
+ -- Adrian Bunk <bunk@debian.org>  Mon, 02 Feb 2026 21:54:45 +0200
+
 rkcommon (1.14.2-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru rkcommon-1.14.2/debian/patches/0001-use-fully-qualified-rkcommon-math-rsqrt-to-avoid-ove.patch rkcommon-1.14.2/debian/patches/0001-use-fully-qualified-rkcommon-math-rsqrt-to-avoid-ove.patch
--- rkcommon-1.14.2/debian/patches/0001-use-fully-qualified-rkcommon-math-rsqrt-to-avoid-ove.patch	1970-01-01 02:00:00.000000000 +0200
+++ rkcommon-1.14.2/debian/patches/0001-use-fully-qualified-rkcommon-math-rsqrt-to-avoid-ove.patch	2026-02-02 21:54:26.000000000 +0200
@@ -0,0 +1,46 @@
+From 1783941de70edad500b5ff0c19ce6c5251c32a1a Mon Sep 17 00:00:00 2001
+From: Yogesh Tyagi <yogesh.tyagi@intel.com>
+Date: Mon, 11 Aug 2025 14:00:50 +0800
+Subject: use fully-qualified rkcommon::math::rsqrt to avoid overload ambiguity
+
+Explicitly calling rkcommon::math::rsqrt() prevents conflict with the
+standard rsqrt(double) declared in bits/mathcalls.h, fixing the build
+error in Quaternion tests.
+
+Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
+---
+ tests/math/test_Quaternion.cpp | 2 +-
+ tests/math/test_rkmath.cpp     | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tests/math/test_Quaternion.cpp b/tests/math/test_Quaternion.cpp
+index 760d815..f527824 100644
+--- a/tests/math/test_Quaternion.cpp
++++ b/tests/math/test_Quaternion.cpp
+@@ -187,7 +187,7 @@ template <typename T>
+ inline void test_slerp()
+ {
+   typename T::Scalar two = 2;
+-  REQUIRE(CmpT(slerp(.5f, T(1, 0, 0, 0), T(0, 1, 0, 0)), T(rsqrt(two), rsqrt(two), 0, 0)));
++  REQUIRE(CmpT(slerp(.5f, T(1, 0, 0, 0), T(0, 1, 0, 0)), T(rkcommon::math::rsqrt(two), rkcommon::math::rsqrt(two), 0, 0)));
+ }
+ 
+ TEST_CASE("Quaternion functions", "[quat]")
+diff --git a/tests/math/test_rkmath.cpp b/tests/math/test_rkmath.cpp
+index 7f66532..fd18df4 100644
+--- a/tests/math/test_rkmath.cpp
++++ b/tests/math/test_rkmath.cpp
+@@ -49,8 +49,8 @@ TEST_CASE("rkmath rcp_safe function", "[rkmath]")
+ template <typename T>
+ inline void test_rsqrt()
+ {
+-  REQUIRE(CmpT<T>(rsqrt(T(1)), T(1)));
+-  REQUIRE(CmpT<T>(rsqrt(T(4)), T(.5)));
++  REQUIRE(CmpT<T>(rkcommon::math::rsqrt(T(1)), T(1)));
++  REQUIRE(CmpT<T>(rkcommon::math::rsqrt(T(4)), T(.5)));
+ }
+ 
+ TEST_CASE("rkmath rsqrt function", "[rkmath]")
+-- 
+2.47.3
+
diff -Nru rkcommon-1.14.2/debian/patches/series rkcommon-1.14.2/debian/patches/series
--- rkcommon-1.14.2/debian/patches/series	1970-01-01 02:00:00.000000000 +0200
+++ rkcommon-1.14.2/debian/patches/series	2026-02-02 21:54:45.000000000 +0200
@@ -0,0 +1 @@
+0001-use-fully-qualified-rkcommon-math-rsqrt-to-avoid-ove.patch
