aboutsummaryrefslogtreecommitdiff
path: root/science/orthanc-mysql/files
diff options
context:
space:
mode:
Diffstat (limited to 'science/orthanc-mysql/files')
-rw-r--r--science/orthanc-mysql/files/patch-MySQL_Plugins_IndexPlugin.cpp10
-rw-r--r--science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancFramework_Sources_SystemToolbox.cpp11
-rw-r--r--science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Plugins_Engine_PluginsManager.cpp11
-rw-r--r--science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Plugins_Samples_ModalityWorklists_Plugin.cpp11
-rw-r--r--science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Sources_OrthancConfiguration.cpp11
-rw-r--r--science/orthanc-mysql/files/patch-OrthancFramework_Resources_CMake_ProtobufConfiguration.cmake47
-rw-r--r--science/orthanc-mysql/files/patch-Resources_Orthanc_Databases_ISqlLookupFormatter.cpp10
7 files changed, 57 insertions, 54 deletions
diff --git a/science/orthanc-mysql/files/patch-MySQL_Plugins_IndexPlugin.cpp b/science/orthanc-mysql/files/patch-MySQL_Plugins_IndexPlugin.cpp
new file mode 100644
index 000000000000..af34bb427ab3
--- /dev/null
+++ b/science/orthanc-mysql/files/patch-MySQL_Plugins_IndexPlugin.cpp
@@ -0,0 +1,10 @@
+--- MySQL/Plugins/IndexPlugin.cpp.orig 2025-10-27 11:52:57 UTC
++++ MySQL/Plugins/IndexPlugin.cpp
+@@ -30,6 +30,7 @@
+ #include <Toolbox.h>
+
+ #include <google/protobuf/any.h>
++#include <google/protobuf/stubs/common.h>
+
+ #define ORTHANC_PLUGIN_NAME "mysql-index"
+
diff --git a/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancFramework_Sources_SystemToolbox.cpp b/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancFramework_Sources_SystemToolbox.cpp
deleted file mode 100644
index 338388756a00..000000000000
--- a/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancFramework_Sources_SystemToolbox.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancFramework/Sources/SystemToolbox.cpp.orig 2021-05-07 07:22:38 UTC
-+++ MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancFramework/Sources/SystemToolbox.cpp
-@@ -727,7 +727,7 @@ namespace Orthanc
-
- MimeType SystemToolbox::AutodetectMimeType(const std::string& path)
- {
-- std::string extension = boost::filesystem::extension(path);
-+ std::string extension = boost::filesystem::path(path).extension().string();
- Toolbox::ToLowerCase(extension);
-
- // http://en.wikipedia.org/wiki/Mime_types
diff --git a/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Plugins_Engine_PluginsManager.cpp b/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Plugins_Engine_PluginsManager.cpp
deleted file mode 100644
index c739fd182701..000000000000
--- a/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Plugins_Engine_PluginsManager.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Plugins/Engine/PluginsManager.cpp.orig 2021-05-07 07:22:38 UTC
-+++ MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Plugins/Engine/PluginsManager.cpp
-@@ -303,7 +303,7 @@ namespace Orthanc
- }
- else
- {
-- std::string extension = boost::filesystem::extension(it->path());
-+ std::string extension = it->path().extension().string();
- Toolbox::ToLowerCase(extension);
-
- if (extension == PLUGIN_EXTENSION)
diff --git a/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Plugins_Samples_ModalityWorklists_Plugin.cpp b/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Plugins_Samples_ModalityWorklists_Plugin.cpp
deleted file mode 100644
index 2c45326a9e12..000000000000
--- a/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Plugins_Samples_ModalityWorklists_Plugin.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp.orig 2021-05-07 07:22:38 UTC
-+++ MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp
-@@ -162,7 +162,7 @@ OrthancPluginErrorCode Callback(OrthancPluginWorklistA
- if (type == fs::regular_file ||
- type == fs::reparse_file) // cf. BitBucket issue #11
- {
-- std::string extension = fs::extension(it->path());
-+ std::string extension = it->path().extension().string();
- std::transform(extension.begin(), extension.end(), extension.begin(), tolower); // Convert to lowercase
-
- if (extension == ".wl")
diff --git a/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Sources_OrthancConfiguration.cpp b/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Sources_OrthancConfiguration.cpp
deleted file mode 100644
index 6ed1b2fd66f7..000000000000
--- a/science/orthanc-mysql/files/patch-MySQL_ThirdPartyDownloads_Orthanc-1.9.3_OrthancServer_Sources_OrthancConfiguration.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Sources/OrthancConfiguration.cpp.orig 2021-05-07 07:22:38 UTC
-+++ MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancServer/Sources/OrthancConfiguration.cpp
-@@ -123,7 +123,7 @@ namespace Orthanc
- {
- if (!is_directory(it->status()))
- {
-- std::string extension = boost::filesystem::extension(it->path());
-+ std::string extension = it->path().extension().string();
- Toolbox::ToLowerCase(extension);
-
- if (extension == ".json")
diff --git a/science/orthanc-mysql/files/patch-OrthancFramework_Resources_CMake_ProtobufConfiguration.cmake b/science/orthanc-mysql/files/patch-OrthancFramework_Resources_CMake_ProtobufConfiguration.cmake
new file mode 100644
index 000000000000..e4826a677166
--- /dev/null
+++ b/science/orthanc-mysql/files/patch-OrthancFramework_Resources_CMake_ProtobufConfiguration.cmake
@@ -0,0 +1,47 @@
+--- MySQL/ThirdPartyDownloads/Orthanc-1.12.9/OrthancFramework/Resources/CMake/ProtobufConfiguration.cmake.orig 2025-08-11 16:02:50 UTC
++++ MySQL/ThirdPartyDownloads/Orthanc-1.12.9/OrthancFramework/Resources/CMake/ProtobufConfiguration.cmake
+@@ -60,27 +60,31 @@ else()
+ add_custom_target(ProtobufCompiler)
+ endif()
+
+- check_include_file_cxx(google/protobuf/any.h HAVE_PROTOBUF_H)
+- if (NOT HAVE_PROTOBUF_H)
+- message(FATAL_ERROR "Please install the libprotobuf-dev package")
+- endif()
++ if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
++ find_package(Protobuf REQUIRED)
++ else()
++ check_include_file_cxx(google/protobuf/any.h HAVE_PROTOBUF_H)
++ if (NOT HAVE_PROTOBUF_H)
++ message(FATAL_ERROR "Please install the libprotobuf-dev package")
++ endif()
+
+- set(CMAKE_REQUIRED_LIBRARIES "protobuf")
++ set(CMAKE_REQUIRED_LIBRARIES "protobuf")
+
+- include(CheckCXXSourceCompiles)
+- check_cxx_source_compiles(
+- "
++ include(CheckCXXSourceCompiles)
++ check_cxx_source_compiles(
++ "
+ #include <google/protobuf/descriptor.h>
+ int main()
+ {
+ google::protobuf::FieldDescriptor::TypeName(google::protobuf::FieldDescriptor::TYPE_FLOAT);
+ }
+-" HAVE_PROTOBUF_LIB)
+- if (NOT HAVE_PROTOBUF_LIB)
+- message(FATAL_ERROR "Cannot find the protobuf library")
+- endif()
++ " HAVE_PROTOBUF_LIB)
++ if (NOT HAVE_PROTOBUF_LIB)
++ message(FATAL_ERROR "Cannot find the protobuf library")
++ endif()
+
+- unset(CMAKE_REQUIRED_LIBRARIES)
++ unset(CMAKE_REQUIRED_LIBRARIES)
++ endif()
+
+ link_libraries(protobuf)
+ endif()
diff --git a/science/orthanc-mysql/files/patch-Resources_Orthanc_Databases_ISqlLookupFormatter.cpp b/science/orthanc-mysql/files/patch-Resources_Orthanc_Databases_ISqlLookupFormatter.cpp
deleted file mode 100644
index e48c152f1165..000000000000
--- a/science/orthanc-mysql/files/patch-Resources_Orthanc_Databases_ISqlLookupFormatter.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- Resources/Orthanc/Databases/ISqlLookupFormatter.cpp.orig 2021-07-22 18:16:30 UTC
-+++ Resources/Orthanc/Databases/ISqlLookupFormatter.cpp
-@@ -37,6 +37,7 @@
-
- #include "DatabaseConstraint.h"
-
-+#include <cassert>
- #include <boost/lexical_cast.hpp>
-
-