ports/devel/boost-libs/files/patch-boost-1.86.0-uuid-compute-backport
Dima Panov 7cafccf61a
devel/boost-libs: do not try to build boost.stacktrace.from_exceptions on !amd64 (+)
Recently added Boost.Stacktrace.from_exceptions library is ready only for amd64 yet.
Exclude it from the build on any other ARCHes now.

While here, backport fix for interface change in Boost.UUID

Reported by:	fallout

Sponsored by:	Future Crew, LLC
2024-11-21 11:39:28 +03:00

30 lines
1.1 KiB
Text

From 4ab28f5b879c8a2335b851f5338b9012f4466dd0 Mon Sep 17 00:00:00 2001
From: sehe <github@sehe.nl>
Date: Mon, 19 Aug 2024 17:42:31 +0200
Subject: [PATCH] Update sha1.hpp for breaking interface change in Boost.UUID
see https://github.com/boostorg/uuid/commit/0f843137a1a479797004f195ec615fdc6ac1c219
---
boost/compute/detail/sha1.hpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git boost/compute/detail/sha1.hpp boost/compute/detail/sha1.hpp
index 5afe5f9c4..24fde3cd1 100644
--- boost/compute/detail/sha1.hpp
+++ boost/compute/detail/sha1.hpp
@@ -37,12 +37,12 @@ class sha1 {
}
operator std::string() {
- unsigned int digest[5];
+ unsigned char digest[20];
h.get_digest(digest);
std::ostringstream buf;
- for(int i = 0; i < 5; ++i)
- buf << std::hex << std::setfill('0') << std::setw(8) << digest[i];
+ for(int i = 0; i < 20; ++i)
+ buf << std::hex << std::setfill('0') << std::setw(2) << static_cast<int>(digest[i]);
return buf.str();
}