From nobody Sun Jul 09 22:09:41 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QzhBY2sjPz4mqpm; Sun, 9 Jul 2023 22:09:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QzhBY1jCPz3CFb; Sun, 9 Jul 2023 22:09:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688940581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Sk29G7wTz7rHPbQmH/0JsMXVabK9KIr2Id0TJBjtPmE=; b=IaBQRDmz2Cvtrq+4tFPKfGDIpNTaYGCWcYZhzLVP/ZSi2IvP8FBqcms61SW3GL7sxR5B3v j9Cws1Gugulh7NaTnu2GMchQXj7DMAAol/CtxdvaPCza2KPOnVzx1pWxdCTvzaX0cIE/o+ 5G9Ut7r1FFifs77l+w236AlupCx4gB9jiN2LtqrVvbiJAvjgYO1TNJEg1MBiIrH27nSjcb SM3kYvLXjC7YjqGG6Ia1+JWgRQ6aYb2qFU3c9YBZv0VNTU/+u6f6V6TZS18jbXkuya44LD 3KuPnQNMZnvuF/JE2QZ+8KXziVPCX8q/JFbAFbxsutOgJ1zfJogvryMzpfm5MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688940581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Sk29G7wTz7rHPbQmH/0JsMXVabK9KIr2Id0TJBjtPmE=; b=Ki38zPw0kdmDEvISNXV1E9F+VUgJ2sL+O0DJeDeY3Ec13mKvV62ljGiq6Rr4cntiZ4VGTB U3zlPJuhoZW5kJEp/NgU2A88l83y/6e9Cabv3/7/U229b0gfZfMf7UMq/K3/ichmlBMbRP PCLV65+TIHGY8wdeOCcZUUOHNuqTpoxnOuDIvsxYAdOIklSQhQXIFogO4BP9W1WkTWkN7M 2ZCvUma6hj78plcEoFwYpq+kpBb7b67g8RmCOeET9UjhDRcYCASbC+PegocWwHPNb+W4fX krXzMkXygDKFLfmQzSm/m1khyIr6XQALRWO0h4/WFbD+TBRgzwsMO6rfnG7l6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688940581; a=rsa-sha256; cv=none; b=jiW2qXTKm+7cC87woAKF6PPzqBMMheNGwRp5eKpiocNGnZ5Gd0cI2lHvjBPrvyQxCDeBcE k31vwkEjRFILypdcj1jUoRt6EeJmZfkYPgQRtcdokuE2wwRjXDfQ3NGueVUSJYqTQr3F4d NsM2llLDk1vR6UOq/ltw27Y+9bF1wm/PY7tGRUAIO1MaCfWt2LgGRBxmDY/THcNpfa6Sfo uyczwtJ5AcHanv0MvE4cSVVcHhts5MP3A9wi6LF6f3mr3z69FUrf0UoIoYGVmJWrfjHqVn DQ5jq+4kL7Q8c1scEq40JvCKuuptgbs2b066My2CghLd+ZlnOgcvc8BuIZi4JA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QzhBY0nwzzKtv; Sun, 9 Jul 2023 22:09:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 369M9fIt034301; Sun, 9 Jul 2023 22:09:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 369M9fwi034300; Sun, 9 Jul 2023 22:09:41 GMT (envelope-from git) Date: Sun, 9 Jul 2023 22:09:41 GMT Message-Id: <202307092209.369M9fwi034300@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Andree Subject: git: b9dc9f829d86 - main - graphics/oyranos: make compatible with exiv2 0.28 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mandree X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b9dc9f829d86b0fa40532de868554dc69b3c9a16 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=b9dc9f829d86b0fa40532de868554dc69b3c9a16 commit b9dc9f829d86b0fa40532de868554dc69b3c9a16 Author: Matthias Andree AuthorDate: 2023-07-02 14:45:40 +0000 Commit: Matthias Andree CommitDate: 2023-07-09 22:08:10 +0000 graphics/oyranos: make compatible with exiv2 0.28 PR: 272311 --- graphics/oyranos/Makefile | 2 +- ...es_color_modules_devices_oyranos__cmm__oyRE.cpp | 77 +++++++++++++++++++++- 2 files changed, 77 insertions(+), 2 deletions(-) diff --git a/graphics/oyranos/Makefile b/graphics/oyranos/Makefile index b165a7dce92d..e87232e965d6 100644 --- a/graphics/oyranos/Makefile +++ b/graphics/oyranos/Makefile @@ -1,6 +1,6 @@ PORTNAME= oyranos PORTVERSION= 0.9.6 -PORTREVISION= 15 +PORTREVISION= 16 CATEGORIES= graphics MAINTAINER= ports@FreeBSD.org diff --git a/graphics/oyranos/files/patch-src_modules_color_modules_devices_oyranos__cmm__oyRE.cpp b/graphics/oyranos/files/patch-src_modules_color_modules_devices_oyranos__cmm__oyRE.cpp index 4f5b51d8d688..9235db1f9df1 100644 --- a/graphics/oyranos/files/patch-src_modules_color_modules_devices_oyranos__cmm__oyRE.cpp +++ b/graphics/oyranos/files/patch-src_modules_color_modules_devices_oyranos__cmm__oyRE.cpp @@ -4,6 +4,15 @@ https://gitlab.com/oyranos/oyranos/-/commit/7fd1eabdf9f59727c0f516d33663d895f812 --- src/modules/color/modules/devices/oyranos_cmm_oyRE.cpp.orig 2016-12-09 10:36:53 UTC +++ src/modules/color/modules/devices/oyranos_cmm_oyRE.cpp +@@ -140,7 +140,7 @@ static int _initialised = 0; + extern oyCMMapi8_s_ _api8; + + +-bool is_raw( int id ); ++bool is_raw( Exiv2::ImageType id ); + int DeviceFromContext(oyConfig_s **config, libraw_output_params_t *params); + int DeviceFromHandle_opt(oyConfig_s *device, oyOption_s *option); + @@ -482,7 +482,7 @@ oyProfile_s * createMatrixProfile ( libraw_colord oyOptions_s * result = 0; @@ -13,7 +22,16 @@ https://gitlab.com/oyranos/oyranos/-/commit/7fd1eabdf9f59727c0f516d33663d895f812 oyOptions_Handle( reg, opts, "create_profile.icc_profile.color_matrix", &result ); -@@ -1447,7 +1447,7 @@ int DeviceFromContext(oyConfig_s **config, libraw_outp +@@ -558,7 +558,7 @@ class exif2options { + * + * \todo { Untested } + */ +-int DeviceFromHandle(oyOptions_s **options, Exiv2::Image::AutoPtr image) ++int DeviceFromHandle(oyOptions_s **options, Exiv2::Image::UniquePtr image) + { + int error = 0; + +@@ -1447,14 +1447,14 @@ int DeviceFromContext(oyConfig_s **config, libraw_outp DFC_OPT_ADD_INT_ARR(greybox,1) //4 DFC_OPT_ADD_INT_ARR(greybox,2) //4 DFC_OPT_ADD_INT_ARR(greybox,3) //4 @@ -22,3 +40,60 @@ https://gitlab.com/oyranos/oyranos/-/commit/7fd1eabdf9f59727c0f516d33663d895f812 return error; } + + int DeviceFromHandle_opt(oyConfig_s *device, oyOption_s *handle_opt) + { +- Exiv2::Image::AutoPtr device_handle; ++ Exiv2::Image::UniquePtr device_handle; + oyAlloc_f allocateFunc = malloc; + if (handle_opt) { + char * filename = NULL; +@@ -1484,7 +1484,7 @@ int DeviceFromHandle_opt(oyConfig_s *device, oyOption_ + + //The std::auto_ptr::get() method returns the pointer owned by the auto_ptr + if (device_handle.get() && device_handle->good()) +- DeviceFromHandle(oyConfig_GetOptions(device,"backend_core"), device_handle); ++ DeviceFromHandle(oyConfig_GetOptions(device,"backend_core"), std::move(device_handle)); + else { + int level = oyMSG_WARN; + if(filename && strcmp( filename, "dummy" ) == 0) +@@ -1502,23 +1502,23 @@ int DeviceFromHandle_opt(oyConfig_s *device, oyOption_ + return 0; + } + +-bool is_raw( int id ) ++bool is_raw( Exiv2::ImageType id ) + { +- //using namespace Exiv2::ImageType; ++ // using namespace Exiv2::ImageType; + switch (id) { +- case 3: //crw: +- case 4: //tiff +- case 5: //mrw: +- case 7: //cr2: +- case 8: //raf: +- case 9: //orf: +- case 16: //rw2: +- return true; +- break; +- default: +- if(id == 0) +- return false; +- else +- return true; ++ case Exiv2::ImageType::crw: ++ case Exiv2::ImageType::tiff: ++ case Exiv2::ImageType::mrw: ++ case Exiv2::ImageType::cr2: ++ case Exiv2::ImageType::raf: ++ case Exiv2::ImageType::orf: ++ case Exiv2::ImageType::rw2: ++ return true; ++ break; ++ default: ++ if(Exiv2::ImageType::none == id) ++ return false; ++ else ++ return true; + } + }