From 3db3dd6f7adc9648213fb6da4085d44e39ff6893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Mon, 5 Oct 2020 10:19:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D0=B0=D1=82=D1=87=20=D0=B4=D0=BB=D1=8F=20freeim?= =?UTF-8?q?age?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../media-libs/freeimage/.calculate_directory | 1 + .../freeimage/support-libraw-0.20.0.patch | 53 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 profiles/templates/3.6/6_ac_install_patch/media-libs/freeimage/.calculate_directory create mode 100644 profiles/templates/3.6/6_ac_install_patch/media-libs/freeimage/support-libraw-0.20.0.patch diff --git a/profiles/templates/3.6/6_ac_install_patch/media-libs/freeimage/.calculate_directory b/profiles/templates/3.6/6_ac_install_patch/media-libs/freeimage/.calculate_directory new file mode 100644 index 000000000..5c965ea54 --- /dev/null +++ b/profiles/templates/3.6/6_ac_install_patch/media-libs/freeimage/.calculate_directory @@ -0,0 +1 @@ +# Calculate merge()!= append=skip diff --git a/profiles/templates/3.6/6_ac_install_patch/media-libs/freeimage/support-libraw-0.20.0.patch b/profiles/templates/3.6/6_ac_install_patch/media-libs/freeimage/support-libraw-0.20.0.patch new file mode 100644 index 000000000..eaaf98890 --- /dev/null +++ b/profiles/templates/3.6/6_ac_install_patch/media-libs/freeimage/support-libraw-0.20.0.patch @@ -0,0 +1,53 @@ +# Calculate format=diff merge(media-libs/freeimage)<=3.18.0-r1 +Index: FreeImage/Source/FreeImage/PluginRAW.cpp +=================================================================== +--- FreeImage.orig/Source/FreeImage/PluginRAW.cpp ++++ FreeImage/Source/FreeImage/PluginRAW.cpp +@@ -63,17 +63,14 @@ public: + } + + int read(void *buffer, size_t size, size_t count) { +- if(substream) return substream->read(buffer, size, count); + return _io->read_proc(buffer, (unsigned)size, (unsigned)count, _handle); + } + + int seek(INT64 offset, int origin) { +- if(substream) return substream->seek(offset, origin); + return _io->seek_proc(_handle, (long)offset, origin); + } + + INT64 tell() { +- if(substream) return substream->tell(); + return _io->tell_proc(_handle); + } + +@@ -83,13 +80,11 @@ public: + + int get_char() { + int c = 0; +- if(substream) return substream->get_char(); + if(!_io->read_proc(&c, 1, 1, _handle)) return -1; + return c; + } + + char* gets(char *buffer, int length) { +- if (substream) return substream->gets(buffer, length); + memset(buffer, 0, length); + for(int i = 0; i < length; i++) { + if(!_io->read_proc(&buffer[i], 1, 1, _handle)) +@@ -104,7 +99,6 @@ public: + std::string buffer; + char element = 0; + bool bDone = false; +- if(substream) return substream->scanf_one(fmt,val); + do { + if(_io->read_proc(&element, 1, 1, _handle) == 1) { + switch(element) { +@@ -127,7 +121,6 @@ public: + } + + int eof() { +- if(substream) return substream->eof(); + return (_io->tell_proc(_handle) >= _eof); + } +