From f265f17242b04ae036b4dc174fa95401d895dbc5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 16 Mar 2024 18:48:52 +0000 Subject: gentoo auto-resync : 16:03:2024 - 18:48:51 --- media-gfx/darktable/Manifest | 2 - ...darktable-3.0.2_cmake-march-autodetection.patch | 26 --- .../files/darktable-4.2.1-exiv2-0.28.patch | 215 --------------------- 3 files changed, 243 deletions(-) delete mode 100644 media-gfx/darktable/files/darktable-3.0.2_cmake-march-autodetection.patch delete mode 100644 media-gfx/darktable/files/darktable-4.2.1-exiv2-0.28.patch (limited to 'media-gfx/darktable') diff --git a/media-gfx/darktable/Manifest b/media-gfx/darktable/Manifest index aaccd8a9c7b3..3098b0c3d9e3 100644 --- a/media-gfx/darktable/Manifest +++ b/media-gfx/darktable/Manifest @@ -1,7 +1,5 @@ -AUX darktable-3.0.2_cmake-march-autodetection.patch 908 BLAKE2B aa1c0cedfe1f267332f11b9a8f38ce368af02b7e4f9751b128b7af91dcdfb066a0529ae126d41a34bc3fc66f336924f3376f270674bcc7e0912d2e23d46ec83b SHA512 da1f10e86b7b9e2a3f317d620a58ebed156a5c6e0f22f429da617cb176d1c18d6d1b6706c1444c9007ccb776bc6b951e3560214e89e95b4050899ec692b74dde AUX darktable-3.4.0_jsonschema-automagic.patch 891 BLAKE2B b0abdd7ea80a446e2556daf06f78343deeb781a12b670f3c3d2f8a34ec9877e16991f6a105c90d58f437915b30bd8bddfb995d515bc73563a44f3807258c9fee SHA512 57cdf87586c6382347334577fff71d415be0123ad101c073535e9d4e87e7edac275272e0b3be91bd34965bacf1f6166cfc64af34b4cdedfb27b409e27bc3bdc9 AUX darktable-3.4.1_libxcf-cmake.patch 788 BLAKE2B b6ecb84de804b0bf16f907f825d93d00a62c1d996077514b3e55f370347f47e561707cb8da6a270aa42c3320142437691cc8b132718c485b5b7df40068d41ee5 SHA512 d94247c4f2c3b4894bd6455cd036a62ef5edb90a77bf8f930efc3e540d00712000fe8eeb7d4c937fa826aef1dd129448223c8696ff094e823894b17ef2669a4e -AUX darktable-4.2.1-exiv2-0.28.patch 9139 BLAKE2B 82eb190e1fe9d93af8bce40fdfd7647e69bf620915d5d1cc76faefda17577f7480c7c5b9649b2f5ce7efb86b274b19c426393e2c943383637fe8c18a9ceac372 SHA512 dcdfdf9d62983428c4b0bfc87a747a437cd07cc640cba948309095680c077f118da1a4208362b76eba14044ad0fd8dabbb3715335d30e35e2f84a171ca275c6e AUX darktable-4.2.1_cmake-musl.patch 796 BLAKE2B 2e26cc969f01dc948f4f92f42c768a28bb879b3592d98dc1de0c3b5b7335a2985fbb5659c58b421fbca896b1f2585a5cb993b5cdf3ee6f87d9834afe3fd1a23a SHA512 82c7a4f6d6112fa024503a99e05d3050922b120821c93922ae846f9da6b02cd6f2e27315448c20ed1032c5526b85cb6d01dd6eec5109db1af3f8e92e4818ea06 AUX darktable-4.4.2_fix-has-attribute-musl.patch 779 BLAKE2B d22e3cc6a28f9b0df574f1e512926868c7dd921b57dacb0934fdbfe934fb14ccb5cb16cbef49646a00c9be183af4f426e8d656389e2a87bb1c8247a8d64fd4f8 SHA512 70e0bf5fd3fee861490c651b2d2e94f3c187852bbd4e71972873d4ad4d426156e0785d1ed96ee65d641333357aa9048852b056985d6678f1efe98026a3e1474b DIST darktable-4.6.0.tar.xz 6129572 BLAKE2B 170d874f6a35c4fe5a5555f308bc541885968b8b5535402f8087ad4d47ee93f3d22a78c633f9b3e14584d1925a7dd682a5f3e2bd187ef2f58d0dc2a407b9bb27 SHA512 825a63c9b8bd7420f5c4b53a9281587be92088e1cd617faaf1de2b455503092cc7476872803a1d82c7bf57fcc57f85a40fc4af8ca04367e48719030f08726df7 diff --git a/media-gfx/darktable/files/darktable-3.0.2_cmake-march-autodetection.patch b/media-gfx/darktable/files/darktable-3.0.2_cmake-march-autodetection.patch deleted file mode 100644 index 8ad4f0e9329f..000000000000 --- a/media-gfx/darktable/files/darktable-3.0.2_cmake-march-autodetection.patch +++ /dev/null @@ -1,26 +0,0 @@ -Darktable and RawSpeed upstream support two build modes: if BINARY_PACKAGE_BUILD==1 -they pass -mtune=generic to the compiler, otherwise they use -march=native. -In either case, these options override externally set CFLAGS. - -Disable this behaviour so that the users' settings provided to the ebuild by Portage -are respected. - ---- a/src/CMakeLists.txt -+++ b/src/CMakeLists.txt -@@ -521,7 +521,7 @@ - set(DT_REQ_INSTRUCTIONS "-msse2") - endif() - -- include(march-mtune) -+ set(MARCH "") - - #if(NOT BUILD_SSE2_CODEPATHS) - # set(MARCH "${MARCH} -mno-sse2 -D__DISABLE_SSE2__ -U__SSE2__ -D__DISABLE_SSE__ -U__SSE__") ---- a/src/external/rawspeed/cmake/compiler-flags.cmake -+++ b/src/external/rawspeed/cmake/compiler-flags.cmake -@@ -1,5 +1,4 @@ - include(CheckCXXCompilerFlag) --include(CpuMarch) - include(CheckCXXCompilerFlagAndEnableIt) - - # yes, need to keep both the CMAKE_CXX_FLAGS and CMAKE_CXX_STANDARD. diff --git a/media-gfx/darktable/files/darktable-4.2.1-exiv2-0.28.patch b/media-gfx/darktable/files/darktable-4.2.1-exiv2-0.28.patch deleted file mode 100644 index 1be8577ae369..000000000000 --- a/media-gfx/darktable/files/darktable-4.2.1-exiv2-0.28.patch +++ /dev/null @@ -1,215 +0,0 @@ -diff --git a/src/common/exif.cc b/src/common/exif.cc -index 484ebf2207..91ea8e64d0 100644 ---- a/src/common/exif.cc -+++ b/src/common/exif.cc -@@ -80,6 +80,11 @@ extern "C" { - - #define DT_XMP_EXIF_VERSION 5 - -+#if EXIV2_TEST_VERSION(0,28,0) -+#define AnyError Error -+#define toLong toInt64 -+#endif -+ - // persistent list of exiv2 tags. set up in dt_init() - static GList *exiv2_taglist = NULL; - -@@ -2658,39 +2663,39 @@ static GList *read_history_v2(Exiv2::XmpData &xmpData, const char *filename) - if(g_str_has_prefix(key_iter, "darktable:operation")) - { - current_entry->have_operation = TRUE; -- current_entry->operation = g_strdup(history->value().toString().c_str()); -+ current_entry->operation = g_strdup(history->toString().c_str()); - } - else if(g_str_has_prefix(key_iter, "darktable:num")) - { -- current_entry->num = history->value().toLong(); -+ current_entry->num = history->toLong(); - } - else if(g_str_has_prefix(key_iter, "darktable:enabled")) - { -- current_entry->enabled = history->value().toLong() == 1; -+ current_entry->enabled = history->toLong() == 1; - } - else if(g_str_has_prefix(key_iter, "darktable:modversion")) - { - current_entry->have_modversion = TRUE; -- current_entry->modversion = history->value().toLong(); -+ current_entry->modversion = history->toLong(); - } - else if(g_str_has_prefix(key_iter, "darktable:params")) - { - current_entry->have_params = TRUE; -- current_entry->params = dt_exif_xmp_decode(history->value().toString().c_str(), history->value().size(), -+ current_entry->params = dt_exif_xmp_decode(history->toString().c_str(), history->size(), - ¤t_entry->params_len); - } - else if(g_str_has_prefix(key_iter, "darktable:multi_name")) - { -- current_entry->multi_name = g_strdup(history->value().toString().c_str()); -+ current_entry->multi_name = g_strdup(history->toString().c_str()); - } - else if(g_str_has_prefix(key_iter, "darktable:multi_priority")) - { -- current_entry->multi_priority = history->value().toLong(); -+ current_entry->multi_priority = history->toLong(); - } - else if(g_str_has_prefix(key_iter, "darktable:iop_order")) - { - // we ensure reading the iop_order as a high precision float -- string str = g_strdup(history->value().toString().c_str()); -+ string str = g_strdup(history->toString().c_str()); - static const std::locale& c_locale = std::locale("C"); - std::istringstream istring(str); - istring.imbue(c_locale); -@@ -2698,12 +2703,12 @@ static GList *read_history_v2(Exiv2::XmpData &xmpData, const char *filename) - } - else if(g_str_has_prefix(key_iter, "darktable:blendop_version")) - { -- current_entry->blendop_version = history->value().toLong(); -+ current_entry->blendop_version = history->toLong(); - } - else if(g_str_has_prefix(key_iter, "darktable:blendop_params")) - { -- current_entry->blendop_params = dt_exif_xmp_decode(history->value().toString().c_str(), -- history->value().size(), -+ current_entry->blendop_params = dt_exif_xmp_decode(history->toString().c_str(), -+ history->size(), - ¤t_entry->blendop_params_len); - } - } -@@ -2858,35 +2863,35 @@ static GList *read_masks_v3(Exiv2::XmpData &xmpData, const char *filename, const - // go on reading things into current_entry - if(g_str_has_prefix(key_iter, "darktable:mask_num")) - { -- current_entry->mask_num = history->value().toLong(); -+ current_entry->mask_num = history->toLong(); - } - else if(g_str_has_prefix(key_iter, "darktable:mask_id")) - { -- current_entry->mask_id = history->value().toLong(); -+ current_entry->mask_id = history->toLong(); - } - else if(g_str_has_prefix(key_iter, "darktable:mask_type")) - { -- current_entry->mask_type = history->value().toLong(); -+ current_entry->mask_type = history->toLong(); - } - else if(g_str_has_prefix(key_iter, "darktable:mask_name")) - { -- current_entry->mask_name = g_strdup(history->value().toString().c_str()); -+ current_entry->mask_name = g_strdup(history->toString().c_str()); - } - else if(g_str_has_prefix(key_iter, "darktable:mask_version")) - { -- current_entry->mask_version = history->value().toLong(); -+ current_entry->mask_version = history->toLong(); - } - else if(g_str_has_prefix(key_iter, "darktable:mask_points")) - { -- current_entry->mask_points = dt_exif_xmp_decode(history->value().toString().c_str(), history->value().size(), ¤t_entry->mask_points_len); -+ current_entry->mask_points = dt_exif_xmp_decode(history->toString().c_str(), history->size(), ¤t_entry->mask_points_len); - } - else if(g_str_has_prefix(key_iter, "darktable:mask_nb")) - { -- current_entry->mask_nb = history->value().toLong(); -+ current_entry->mask_nb = history->toLong(); - } - else if(g_str_has_prefix(key_iter, "darktable:mask_src")) - { -- current_entry->mask_src = dt_exif_xmp_decode(history->value().toString().c_str(), history->value().size(), ¤t_entry->mask_src_len); -+ current_entry->mask_src = dt_exif_xmp_decode(history->toString().c_str(), history->size(), ¤t_entry->mask_src_len); - } - - } -@@ -4060,7 +4065,11 @@ char *dt_exif_xmp_read_string(const int imgid) - std::string xmpPacket; - - Exiv2::DataBuf buf = Exiv2::readFile(WIDEN(input_filename)); -+#if EXIV2_TEST_VERSION(0,28,0) -+ xmpPacket.assign(buf.c_str(), buf.size()); -+#else - xmpPacket.assign(reinterpret_cast(buf.pData_), buf.size_); -+#endif - Exiv2::XmpParser::decode(xmpData, xmpPacket); - // because XmpSeq or XmpBag are added to the list, we first have - // to remove these so that we don't end up with a string of duplicates -@@ -4076,7 +4085,11 @@ char *dt_exif_xmp_read_string(const int imgid) - std::string xmpPacket; - - Exiv2::DataBuf buf = Exiv2::readFile(WIDEN(input_filename)); -+#if EXIV2_TEST_VERSION(0,28,0) -+ xmpPacket.assign(buf.c_str(), buf.size()); -+#else - xmpPacket.assign(reinterpret_cast(buf.pData_), buf.size_); -+#endif - Exiv2::XmpParser::decode(sidecarXmpData, xmpPacket); - - for(Exiv2::XmpData::const_iterator it = sidecarXmpData.begin(); it != sidecarXmpData.end(); ++it) -@@ -4204,7 +4217,11 @@ int dt_exif_xmp_attach_export(const int imgid, const char *filename, void *metad - std::string xmpPacket; - - Exiv2::DataBuf buf = Exiv2::readFile(WIDEN(input_filename)); -+#if EXIV2_TEST_VERSION(0,28,0) -+ xmpPacket.assign(buf.c_str(), buf.size()); -+#else - xmpPacket.assign(reinterpret_cast(buf.pData_), buf.size_); -+#endif - Exiv2::XmpParser::decode(sidecarXmpData, xmpPacket); - - for(Exiv2::XmpData::const_iterator it = sidecarXmpData.begin(); it != sidecarXmpData.end(); ++it) -@@ -4371,7 +4388,7 @@ int dt_exif_xmp_attach_export(const int imgid, const char *filename, void *metad - catch(Exiv2::AnyError &e) - { - #if EXIV2_TEST_VERSION(0,27,0) -- if(e.code() == Exiv2::kerTooLargeJpegSegment) -+ if(e.code() == Exiv2::ErrorCode::kerTooLargeJpegSegment) - #else - if(e.code() == 37) - #endif -@@ -4437,7 +4454,11 @@ int dt_exif_xmp_write(const int imgid, const char *filename) - } - - Exiv2::DataBuf buf = Exiv2::readFile(WIDEN(filename)); -+#if EXIV2_TEST_VERSION(0,28,0) -+ xmpPacket.assign(buf.c_str(), buf.size()); -+#else - xmpPacket.assign(reinterpret_cast(buf.pData_), buf.size_); -+#endif - Exiv2::XmpParser::decode(xmpData, xmpPacket); - // because XmpSeq or XmpBag are added to the list, we first have - // to remove these so that we don't end up with a string of duplicates -diff --git a/tools/basecurve/exif-wrapper.cpp b/tools/basecurve/exif-wrapper.cpp -index f4d4d46e12..41bb021012 100644 ---- a/tools/basecurve/exif-wrapper.cpp -+++ b/tools/basecurve/exif-wrapper.cpp -@@ -19,6 +19,7 @@ - #include - #include - #include -+#include - - #include - #include -@@ -36,13 +37,21 @@ exif_get_ascii_datafield( - - try - { -+#if EXIV2_TEST_VERSION(0,28,0) -+ Exiv2::Image::UniquePtr image = Exiv2::ImageFactory::open(filename); -+#else - Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(filename); -+#endif - assert(image.get() != 0); - image->readMetadata(); - - Exiv2::ExifData &exifData = image->exifData(); - -+#if EXIV2_TEST_VERSION(0,28,0) -+ Exiv2::Value::UniquePtr val = exifData[key].getValue(); -+#else - Exiv2::Value::AutoPtr val = exifData[key].getValue(); -+#endif - - if (val->typeId() != Exiv2::asciiString) - { -- cgit v1.2.3