-
Notifications
You must be signed in to change notification settings - Fork 2k
gdcm: add 3.0.20 #14362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
gdcm: add 3.0.20 #14362
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,44 @@ | ||
sources: | ||
"3.0.20": | ||
url: "https://github.com/malaterre/GDCM/archive/refs/tags/v3.0.20.tar.gz" | ||
sha256: "18161bd76008f4e8a0a33dab72fa34684147e8164f25a4735f373ad4bd909636" | ||
"3.0.9": | ||
url: "https://github.com/malaterre/GDCM/archive/refs/tags/v3.0.9.tar.gz" | ||
sha256: "fcfc50ea8809bd4a173550c7d7bb4f8722ae0781fbf17240ce84a04e90af0e9b" | ||
patches: | ||
"3.0.20": | ||
- patch_file: "patches/0001-charls-linking.patch" | ||
patch_description: "fix symbol export for gdcmcharls" | ||
patch_type: "portability" | ||
- patch_file: "patches/0002-3.0.20-openjpeg.patch" | ||
patch_description: "fix variable names for openjpeg" | ||
patch_type: "conan" | ||
- patch_file: "patches/0004-3.0.20-find-expat.patch" | ||
patch_description: "enforce usage of FindEXPAT.cmake" | ||
patch_type: "conan" | ||
- patch_file: "patches/0005-3.0.20-openssl.patch" | ||
patch_description: "skip check_cxx_source_compiles usage for openssl" | ||
patch_type: "conan" | ||
- patch_file: "patches/0006-json.patch" | ||
patch_description: "skip check_cxx_source_compiles usage for json-c" | ||
patch_type: "conan" | ||
"3.0.9": | ||
- patch_file: "patches/0001-charls-linking.patch" | ||
- patch_file: "patches/0002-openjpeg-integration.patch" | ||
patch_description: "fix symbol export for gdcmcharls" | ||
patch_type: "portability" | ||
- patch_file: "patches/0002-3.0.9-openjpeg.patch" | ||
patch_description: "fix variable names for openjpeg" | ||
patch_type: "conan" | ||
- patch_file: "patches/0003-gcc-11-compilation.patch" | ||
patch_description: "add missing includes for GCC 11" | ||
patch_type: "backport" | ||
patch_source: "https://github.com/malaterre/GDCM/commit/4404b770be337bd0d5d3c2289abfd34426433db2" | ||
- patch_file: "patches/0004-find-expat.patch" | ||
- patch_file: "patches/0004-3.0.9-find-expat.patch" | ||
patch_description: "enforce usage of FindEXPAT.cmake" | ||
patch_type: "conan" | ||
- patch_file: "patches/0005-3.0.9-openssl.patch" | ||
patch_description: "skip check_cxx_source_compiles usage for openssl" | ||
patch_type: "conan" | ||
- patch_file: "patches/0006-json.patch" | ||
patch_description: "skip check_cxx_source_compiles usage for json-c" | ||
patch_type: "conan" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -360,7 +360,7 @@ endif() | ||
|
||
if(GDCM_USE_SYSTEM_OPENJPEG) | ||
find_package(OpenJPEG 2.0.0 REQUIRED) | ||
- set(GDCM_OPENJPEG_LIBRARIES ${OPENJPEG_LIBRARIES}) | ||
+ set(GDCM_OPENJPEG_LIBRARIES ${OpenJPEG_LIBRARIES}) | ||
else() | ||
set(GDCM_OPENJPEG_LIBRARIES gdcmopenjp2) | ||
endif() | ||
--- a/Source/MediaStorageAndFileFormat/CMakeLists.txt | ||
+++ b/Source/MediaStorageAndFileFormat/CMakeLists.txt | ||
@@ -161,7 +161,7 @@ else() | ||
) | ||
endif() | ||
if(GDCM_USE_SYSTEM_OPENJPEG) | ||
- include_directories(${OPENJPEG_INCLUDE_DIRS} ) | ||
+ include_directories(${OpenJPEG_INCLUDE_DIRS} ) | ||
else() | ||
include_directories( | ||
"${GDCM_BINARY_DIR}/Utilities/gdcmopenjpeg" |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -419,7 +419,7 @@ endif() | ||
|
||
if(GDCM_USE_SYSTEM_EXPAT) | ||
# If user say so, then this is a requirement ! | ||
- find_package(EXPAT REQUIRED) | ||
+ find_package(EXPAT REQUIRED MODULE) | ||
set(GDCM_EXPAT_LIBRARIES ${EXPAT_LIBRARIES}) | ||
else() | ||
set(GDCM_EXPAT_LIBRARIES "gdcmexpat") |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- a/Source/Common/CMakeLists.txt | ||
+++ b/Source/Common/CMakeLists.txt | ||
@@ -68,18 +68,8 @@ CHECK_CXX_SOURCE_COMPILES( | ||
"\#include <string>\n#include <codecvt>\n#include <locale>\nint main() { std::u16string u16; std::string utf8 = std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t>{}.to_bytes(u16); }" | ||
GDCM_HAVE_CODECVT) | ||
if(GDCM_USE_SYSTEM_OPENSSL) | ||
-set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR}) | ||
-set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES} | ||
- ${CMAKE_DL_LIBS} # FIXME ?? | ||
- ) | ||
-CHECK_CXX_SOURCE_COMPILES( | ||
- # "\#include <openssl/cms.h>\nint main() { CMS_add0_recipient_key(0); return 0;}" | ||
- #HAVE_CMS_RECIPIENT_KEY) | ||
- "\#include <openssl/cms.h>\nint main() { CMS_add0_recipient_password(0,0,0,0,0,0,0); return 0;}" | ||
- GDCM_HAVE_CMS_RECIPIENT_PASSWORD) | ||
-CHECK_CXX_SOURCE_COMPILES( | ||
- "\#include <openssl/bio.h>\nint main() { const void*mem; int len; BIO_new_mem_buf(mem, len); }" | ||
- OPENSSL_HAS_CONST_VOID_BIO_NEW_MEM_BUF) | ||
+ set(GDCM_HAVE_CMS_RECIPIENT_PASSWORD ON CACHE INTERNAL "") | ||
+ set(OPENSSL_HAS_CONST_VOID_BIO_NEW_MEM_BUF ON CACHE INTERNAL "") | ||
endif() | ||
|
||
#----------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- a/Source/Common/CMakeLists.txt | ||
+++ b/Source/Common/CMakeLists.txt | ||
@@ -65,15 +65,7 @@ CHECK_CXX_SOURCE_COMPILES( | ||
"\#include <fstream>\nint main() { const wchar_t fn[10] = {}; std::ifstream is( fn ); return 0;}" | ||
GDCM_HAVE_WCHAR_IFSTREAM) | ||
if(GDCM_USE_SYSTEM_OPENSSL) | ||
-set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR}) | ||
-set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES} | ||
- ${CMAKE_DL_LIBS} # FIXME ?? | ||
- ) | ||
-CHECK_CXX_SOURCE_COMPILES( | ||
- # "\#include <openssl/cms.h>\nint main() { CMS_add0_recipient_key(0); return 0;}" | ||
- #HAVE_CMS_RECIPIENT_KEY) | ||
- "\#include <openssl/cms.h>\nint main() { CMS_add0_recipient_password(0,0,0,0,0,0,0); return 0;}" | ||
- GDCM_HAVE_CMS_RECIPIENT_PASSWORD) | ||
+ set(GDCM_HAVE_CMS_RECIPIENT_PASSWORD ON CACHE INTERNAL "") | ||
endif() | ||
|
||
#----------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- a/Source/Common/CMakeLists.txt | ||
+++ b/Source/Common/CMakeLists.txt | ||
@@ -52,9 +52,7 @@ unset(CMAKE_REQUIRED_LIBRARIES) | ||
CHECK_FUNCTION_EXISTS(gettimeofday GDCM_HAVE_GETTIMEOFDAY) | ||
# json-c API changed: | ||
if(GDCM_USE_SYSTEM_JSON) | ||
- set(CMAKE_REQUIRED_INCLUDES ${JSON_INCLUDE_DIRS}) | ||
- set(CMAKE_REQUIRED_LIBRARIES ${JSON_LIBRARIES}) | ||
- CHECK_SYMBOL_EXISTS(json_object_object_get_ex "json.h" GDCM_HAVE_JSON_OBJECT_OBJECT_GET_EX) | ||
+ set(GDCM_HAVE_JSON_OBJECT_OBJECT_GET_EX ON CACHE INTERNAL "") | ||
endif() | ||
|
||
include(CheckCXXSourceCompiles) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
versions: | ||
"3.0.20": | ||
folder: "all" | ||
"3.0.9": | ||
folder: "all" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand. What happen when with_json option is False? gdcm still uses json-c but bundled one?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moreover the json patch could be more robust, upstream doesn't rely on official json-c config filen but on a custom FindJSON.cmake file.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understood correctly, without GDCM_USE_SYSTEM_JSON json functionality just won't work - there is no gdcm internal analogue. Same with openssl. Theoretically some people might want to use it but it's not part of core functionality - I didn't even know that gdcm has it for many years.