commit:     a8c9a8c8040258ec66828ac3082c8dec5a0b4b18
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 13 15:24:57 2024 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Mon Nov 18 08:01:01 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8c9a8c8

sci-libs/pcl: add upstream patch for latest boost compat

Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 sci-libs/pcl/files/pcl-1.14.1-boost.patch | 31 +++++++++++++++++++++++++++++++
 sci-libs/pcl/pcl-1.14.1.ebuild            |  1 +
 2 files changed, 32 insertions(+)

diff --git a/sci-libs/pcl/files/pcl-1.14.1-boost.patch 
b/sci-libs/pcl/files/pcl-1.14.1-boost.patch
new file mode 100644
index 000000000000..8f99023f741a
--- /dev/null
+++ b/sci-libs/pcl/files/pcl-1.14.1-boost.patch
@@ -0,0 +1,31 @@
+From c6bbf02a084a39a02d9e2fc318a59fe2f1ff55c1 Mon Sep 17 00:00:00 2001
+From: Transporter <[email protected]>
+Date: Sun, 26 May 2024 10:37:57 +0200
+Subject: [PATCH] Fix boost hash data type (#6053)
+
+* Fix boost hash data type
+
+* Change file name generation.
+---
+ visualization/src/pcl_visualizer.cpp | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/visualization/src/pcl_visualizer.cpp 
b/visualization/src/pcl_visualizer.cpp
+index 5f073646ac1..bc9b959c246 100644
+--- a/visualization/src/pcl_visualizer.cpp
++++ b/visualization/src/pcl_visualizer.cpp
+@@ -4591,10 +4591,12 @@ pcl::visualization::PCLVisualizer::getUniqueCameraFile 
(int argc, char **argv)
+     // Build camera filename
+     if (valid)
+     {
+-      unsigned int digest[5];
++      boost::uuids::detail::sha1::digest_type digest;
+       sha1.get_digest (digest);
+       sstream << ".";
+-      sstream << std::hex << digest[0] << digest[1] << digest[2] << digest[3] 
<< digest[4];
++      for (int i = 0; i < 5; ++i) {
++        sstream << std::hex << *(reinterpret_cast<unsigned int*>(&digest[0]) 
+ i);
++      }
+       sstream << ".cam";
+     }
+   }

diff --git a/sci-libs/pcl/pcl-1.14.1.ebuild b/sci-libs/pcl/pcl-1.14.1.ebuild
index b5d59362af57..268c4f378197 100644
--- a/sci-libs/pcl/pcl-1.14.1.ebuild
+++ b/sci-libs/pcl/pcl-1.14.1.ebuild
@@ -76,6 +76,7 @@ PATCHES=(
        
"${FILESDIR}"/${PN}-1.12.1-fix-hardcoded-relative-directory-of-the-installed-cmake-files.patch
        "${FILESDIR}/${PN}-1.14.1-gcc15.patch"
        "${FILESDIR}/${PN}-1.14.1-tests.patch"
+       "${FILESDIR}/${PN}-1.14.1-boost.patch"
 )
 
 src_prepare() {

Reply via email to