Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package orthanc-webviewer for openSUSE:Factory checked in at 2021-01-30 13:56:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/orthanc-webviewer (Old) and /work/SRC/openSUSE:Factory/.orthanc-webviewer.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "orthanc-webviewer" Sat Jan 30 13:56:59 2021 rev:6 rq:867902 version:2.7 Changes: -------- --- /work/SRC/openSUSE:Factory/orthanc-webviewer/orthanc-webviewer.changes 2020-12-17 17:09:11.173963786 +0100 +++ /work/SRC/openSUSE:Factory/.orthanc-webviewer.new.28504/orthanc-webviewer.changes 2021-01-30 13:57:56.158414111 +0100 @@ -1,0 +2,5 @@ +Fri Jan 29 18:25:58 UTC 2021 - Axel Braun <axel.br...@gmx.de> + +- framework190.diff added for compatibility with framework 1.9.0 + +------------------------------------------------------------------- New: ---- framework190.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ orthanc-webviewer.spec ++++++ --- /var/tmp/diff_new_pack.3n6Jjs/_old 2021-01-30 13:57:56.810415211 +0100 +++ /var/tmp/diff_new_pack.3n6Jjs/_new 2021-01-30 13:57:56.810415211 +0100 @@ -1,7 +1,7 @@ # # spec file for package orthanc-webviewer # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2019-2020 Dr. Axel Braun # # All modifications and additions to the file contributed by third parties @@ -32,6 +32,7 @@ Source5: js-url-1.8.6.zip Source11: orthanc-webviewer-readme.SUSE Source12: webviewer.json +Patch0: framework190.diff BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: googletest-devel @@ -60,6 +61,8 @@ %prep %setup -q -n OrthancWebViewer-%{version} +%patch0 -p1 + #OrthanPlugin may ask for additional files to be loaded #Putting them into this folder prevents download of sources from the web mkdir ThirdPartyDownloads ++++++ framework190.diff ++++++ --- OrthancWebViewer-2.7.orig/Plugin/Cache/CacheManager.cpp +++ OrthancWebViewer-2.7/Plugin/Cache/CacheManager.cpp @@ -475,7 +475,14 @@ namespace OrthancPlugins bool ok; try { +#if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) && ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 9, 0) + std::unique_ptr<Orthanc::IMemoryBuffer> buffer( + pimpl_->storage_.Read(uuid, Orthanc::FileContentType_Unknown)); + buffer->MoveToString(content); +#else pimpl_->storage_.Read(content, uuid, Orthanc::FileContentType_Unknown); +#endif + ok = (content.size() == size); } catch (std::runtime_error&)