Author: ken Date: Mon Nov 12 18:32:05 2018 New Revision: 3824 Log: Patch cups-filters for the poppler-0.69.0 changes.
Added: trunk/cups-filters/cups-filters-1.21.1-poppler69-1.patch Added: trunk/cups-filters/cups-filters-1.21.1-poppler69-1.patch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/cups-filters/cups-filters-1.21.1-poppler69-1.patch Mon Nov 12 18:32:05 2018 (r3824) @@ -0,0 +1,79 @@ +Submitted By: Ken Moffat <ken at linuxfromscratch dot org> +Date: 2018-11-13 +Initial Package Version: 1.21.1 +Upstream Status: Applied +Origin: Olivier Schonken +Description: Fixes build breakage introduced in poppler-0.69.0. + +commit 6b0747c1630dd973acd138f927dbded4ea45e360 +Author: Olivier Schonken <olivier.schon...@gmail.com> +Date: Fri Oct 5 12:05:31 2018 +0200 + + Poppler removed memCheck and gMemReport functions + + Only use gMemReport and memCheck functions if poppler version less + than 0.69.0 + + The poppler project removed the memCheck and gMemReport functions in + commits c362ab1b97f20c5b73b3bad8d52015f679178748 - Remove DEBUG_MEM + from Object since this uses RAII now and hence cannot leak. + (The existing tracking also is not thread-safe and hence unreliable.) + + and + + f89446f6917a869b0f1a80fcc8ce81a7213dade4 - Remove generic heap debugging + from gmem since external tools and compiler instrumentation achieve the + same effect. + + This commit solves https://github.com/OpenPrinting/cups-filters/issues/62 + + Signed-off-by: Olivier Schonken <olivier.schon...@gmail.com> + +diff --git a/filter/pdftoijs.cxx b/filter/pdftoijs.cxx +index 22bc33f4..dd6b6fa0 100644 +--- a/filter/pdftoijs.cxx ++++ b/filter/pdftoijs.cxx +@@ -503,9 +503,11 @@ err1: + ppdClose(ppd); + free(outputfile); + ++#if POPPLER_VERSION_MAJOR == 0 && POPPLER_VERSION_MINOR < 69 + // Check for memory leaks + Object::memCheck(stderr); + gMemReport(stderr); ++#endif + + return exitCode; + } +diff --git a/filter/pdftoopvp/pdftoopvp.cxx b/filter/pdftoopvp/pdftoopvp.cxx +index 024941ab..bf25983b 100644 +--- a/filter/pdftoopvp/pdftoopvp.cxx ++++ b/filter/pdftoopvp/pdftoopvp.cxx +@@ -763,9 +763,11 @@ err2: + err0: + delete globalParams; + ++#if POPPLER_VERSION_MAJOR == 0 && POPPLER_VERSION_MINOR < 69 + // check for memory leaks + Object::memCheck(stderr); + gMemReport(stderr); ++#endif + + } + /* muntrace(); */ +diff --git a/filter/pdftoraster.cxx b/filter/pdftoraster.cxx +index 0c63ab8d..4ebf02b0 100644 +--- a/filter/pdftoraster.cxx ++++ b/filter/pdftoraster.cxx +@@ -2162,9 +2162,11 @@ err1: + cmsDeleteTransform(colorTransform); + } + ++#if POPPLER_VERSION_MAJOR == 0 && POPPLER_VERSION_MINOR < 69 + // Check for memory leaks + Object::memCheck(stderr); + gMemReport(stderr); ++#endif + + return exitCode; + } -- http://lists.linuxfromscratch.org/listinfo/patches FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page