- sha.patch added to fix Leap build

OBS-URL: https://build.opensuse.org/package/show/graphics/orthanc?expand=0&rev=81
This commit is contained in:
Axel Braun 2024-09-30 09:16:18 +00:00 committed by Git OBS Bridge
parent a232617bc8
commit cc8a787264
3 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 30 08:43:53 UTC 2024 - Axel Braun <axel.braun@gmx.de>
- sha.patch added to fix Leap build
-------------------------------------------------------------------
Wed Sep 25 08:35:12 UTC 2024 - Axel Braun <axel.braun@gmx.de>

View File

@ -41,6 +41,7 @@ Source13: https://orthanc.uclouvain.be/downloads/third-party-downloads/dic
Patch0: dcmtk.diff
Patch1: toolbox.patch
Patch2: boost.patch
Patch3: sha.patch
BuildRequires: civetweb-devel
BuildRequires: cmake >= 2.8.0

20
sha.patch Normal file
View File

@ -0,0 +1,20 @@
# HG changeset patch
# User Alain Mazy <am@orthanc.team>
# Date 1727274964 -7200
# Node ID 122fd5f97d394bbbe46e11b65a7a1294ccf61985
# Parent 2b429588de28773d4aa062b3eb78c64663d7cbd2
fix
diff -r 2b429588de28 -r 122fd5f97d39 OrthancFramework/Sources/Toolbox.cpp
--- a/OrthancFramework/Sources/Toolbox.cpp Wed Sep 25 16:27:07 2024 +0200
+++ b/OrthancFramework/Sources/Toolbox.cpp Wed Sep 25 16:36:04 2024 +0200
@@ -837,7 +837,7 @@
assert(sizeof(unsigned int) == 4 && sizeof(digest) == (160 / 8));
assert(sizeof(boost::uuids::detail::sha1::digest_type) == 20);
- sha1.get_digest(digest));
+ sha1.get_digest(digest);
result.resize(8 * 5 + 4);
sprintf(&result[0], "%08x-%08x-%08x-%08x-%08x",