diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-05 01:47:41 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-05 01:47:41 +0000 |
commit | a0e31f12714ee0e23597e4376bf14ae77232a1d8 (patch) | |
tree | 6608b4a535db55f49e31a59702afa97137bd3d4a /dcraw-9.21-lcms2-error-reporting.patch | |
parent | 8e50139df2d0d7e043eb2c7eb59629b5fa170b5c (diff) |
automatic import of dcrawopeneuler24.03_LTS
Diffstat (limited to 'dcraw-9.21-lcms2-error-reporting.patch')
-rw-r--r-- | dcraw-9.21-lcms2-error-reporting.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dcraw-9.21-lcms2-error-reporting.patch b/dcraw-9.21-lcms2-error-reporting.patch new file mode 100644 index 0000000..7b37d12 --- /dev/null +++ b/dcraw-9.21-lcms2-error-reporting.patch @@ -0,0 +1,38 @@ +From affda75b7d868350d7ef9e7a67367826fb3e950d Mon Sep 17 00:00:00 2001 +From: Nils Philippsen <nils@redhat.com> +Date: Wed, 4 Sep 2013 17:13:49 +0200 +Subject: [PATCH] Report errors with LCMS version 2.x. + +--- + dcraw.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/dcraw.c b/dcraw.c +index 6f8dbbe..d80db64 100644 +--- a/dcraw.c ++++ b/dcraw.c +@@ -8902,6 +8902,13 @@ notraw: + } + + #ifndef NO_LCMS ++static void lcms2_error_show_handler (cmsContext ContextID, ++ cmsUInt32Number ErrorCode, ++ const char *Text) ++{ ++ fprintf (stderr, "lcms2: Error #%d; %s\n", ErrorCode, Text); ++} ++ + void CLASS apply_profile (const char *input, const char *output) + { + char *prof; +@@ -8910,6 +8917,7 @@ void CLASS apply_profile (const char *input, const char *output) + FILE *fp; + unsigned size; + ++ cmsSetLogErrorHandler (lcms2_error_show_handler); + if (strcmp (input, "embed")) + hInProfile = cmsOpenProfileFromFile (input, "r"); + else if (profile_length) { +-- +1.9.0 + |