From cc8a78726429aaef7464c0651a94a262695c6c0255f862a48eee7fb7a5aa9661 Mon Sep 17 00:00:00 2001 From: Axel Braun Date: Mon, 30 Sep 2024 09:16:18 +0000 Subject: [PATCH] - sha.patch added to fix Leap build OBS-URL: https://build.opensuse.org/package/show/graphics/orthanc?expand=0&rev=81 --- orthanc.changes | 5 +++++ orthanc.spec | 1 + sha.patch | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 sha.patch diff --git a/orthanc.changes b/orthanc.changes index 39d5879..d6fd8e8 100644 --- a/orthanc.changes +++ b/orthanc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 30 08:43:53 UTC 2024 - Axel Braun + +- sha.patch added to fix Leap build + ------------------------------------------------------------------- Wed Sep 25 08:35:12 UTC 2024 - Axel Braun diff --git a/orthanc.spec b/orthanc.spec index d0fa7ec..b07496e 100644 --- a/orthanc.spec +++ b/orthanc.spec @@ -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 diff --git a/sha.patch b/sha.patch new file mode 100644 index 0000000..25d59de --- /dev/null +++ b/sha.patch @@ -0,0 +1,20 @@ +# HG changeset patch +# User Alain Mazy +# 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", +