Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/cups-filters: bump to version 1.21.3
@ 2018-10-05 13:30 Olivier Schonken
  2018-10-05 13:30 ` [Buildroot] [PATCH 2/2] package/cups-filters: Add patch to fix build when using poppler 0.69.0 Olivier Schonken
  2018-10-06 13:59 ` [Buildroot] [PATCH 1/2] package/cups-filters: bump to version 1.21.3 Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Olivier Schonken @ 2018-10-05 13:30 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
---
 package/cups-filters/cups-filters.hash | 4 ++--
 package/cups-filters/cups-filters.mk   | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/package/cups-filters/cups-filters.hash b/package/cups-filters/cups-filters.hash
index 7bb00818df..e426ad8b86 100644
--- a/package/cups-filters/cups-filters.hash
+++ b/package/cups-filters/cups-filters.hash
@@ -1,3 +1,3 @@
 # Locally computed:
-sha256 aad95e35033154f54639923b439e0657fc9f616b9eac7490df89514362551f98  cups-filters-1.20.3.tar.gz
-sha256 24cc91478ca68d6d982dfd86181210ad5f0931ec431bdb740793e3d6555fdcd8  COPYING
+sha256 981b280bc5275a21c6f436aff6207e03cab36dc304c119bbac507db940e7421c  cups-filters-1.21.3.tar.gz
+sha256 8e697cf4681ebbca716bf8cc30dde51c264e32ceee41fa63ceb5213334204b83  COPYING
diff --git a/package/cups-filters/cups-filters.mk b/package/cups-filters/cups-filters.mk
index 131e58246e..b7f002f418 100644
--- a/package/cups-filters/cups-filters.mk
+++ b/package/cups-filters/cups-filters.mk
@@ -4,10 +4,11 @@
 #
 ################################################################################
 
-CUPS_FILTERS_VERSION = 1.20.3
+CUPS_FILTERS_VERSION = 1.21.3
 CUPS_FILTERS_SITE = http://openprinting.org/download/cups-filters
 CUPS_FILTERS_LICENSE = GPL-2.0, GPL-2.0+, GPL-3.0, GPL-3.0+, LGPL-2, LGPL-2.1+, MIT, BSD-4-Clause
 CUPS_FILTERS_LICENSE_FILES = COPYING
+CUPS_FILTERS_AUTORECONF = YES
 
 CUPS_FILTERS_DEPENDENCIES = cups libglib2 lcms2 qpdf fontconfig freetype jpeg
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] package/cups-filters: Add patch to fix build when using poppler 0.69.0
  2018-10-05 13:30 [Buildroot] [PATCH 1/2] package/cups-filters: bump to version 1.21.3 Olivier Schonken
@ 2018-10-05 13:30 ` Olivier Schonken
  2018-10-06 14:00   ` Thomas Petazzoni
  2018-10-06 13:59 ` [Buildroot] [PATCH 1/2] package/cups-filters: bump to version 1.21.3 Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Olivier Schonken @ 2018-10-05 13:30 UTC (permalink / raw)
  To: buildroot

This patch lets cups-filters 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.

A pull-request for the patch has also been created upstream at
https://github.com/OpenPrinting/cups-filters/pull/66

Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
---
 ...ed-memCheck-and-gMemReport-functions.patch | 79 +++++++++++++++++++
 1 file changed, 79 insertions(+)
 create mode 100644 package/cups-filters/0002-Poppler-removed-memCheck-and-gMemReport-functions.patch

diff --git a/package/cups-filters/0002-Poppler-removed-memCheck-and-gMemReport-functions.patch b/package/cups-filters/0002-Poppler-removed-memCheck-and-gMemReport-functions.patch
new file mode 100644
index 0000000000..3eb2d35c3e
--- /dev/null
+++ b/package/cups-filters/0002-Poppler-removed-memCheck-and-gMemReport-functions.patch
@@ -0,0 +1,79 @@
+From 6b0747c1630dd973acd138f927dbded4ea45e360 Mon Sep 17 00:00:00 2001
+From: Olivier Schonken <olivier.schonken@gmail.com>
+Date: Fri, 5 Oct 2018 12:05:31 +0200
+Subject: [PATCH] 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.schonken@gmail.com>
+---
+ filter/pdftoijs.cxx            | 2 ++
+ filter/pdftoopvp/pdftoopvp.cxx | 2 ++
+ filter/pdftoraster.cxx         | 2 ++
+ 3 files changed, 6 insertions(+)
+
+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;
+ }
+-- 
+2.17.1
+
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] package/cups-filters: bump to version 1.21.3
  2018-10-05 13:30 [Buildroot] [PATCH 1/2] package/cups-filters: bump to version 1.21.3 Olivier Schonken
  2018-10-05 13:30 ` [Buildroot] [PATCH 2/2] package/cups-filters: Add patch to fix build when using poppler 0.69.0 Olivier Schonken
@ 2018-10-06 13:59 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2018-10-06 13:59 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri,  5 Oct 2018 15:30:18 +0200, Olivier Schonken wrote:
> Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
> ---
>  package/cups-filters/cups-filters.hash | 4 ++--
>  package/cups-filters/cups-filters.mk   | 3 ++-
>  2 files changed, 4 insertions(+), 3 deletions(-)

I've applied, but I have one comment, see below.

> -CUPS_FILTERS_VERSION = 1.20.3
> +CUPS_FILTERS_VERSION = 1.21.3
>  CUPS_FILTERS_SITE = http://openprinting.org/download/cups-filters
>  CUPS_FILTERS_LICENSE = GPL-2.0, GPL-2.0+, GPL-3.0, GPL-3.0+, LGPL-2, LGPL-2.1+, MIT, BSD-4-Clause
>  CUPS_FILTERS_LICENSE_FILES = COPYING
> +CUPS_FILTERS_AUTORECONF = YES

You didn't explain why this autoreconf was needed.

I initially thought it was because the release tarball was broken, with
Makefile.am having a date newer than Makefile.in, and so I added such a
comment in the .mk file when applying your patch.

But of course right after pushing, I realized the existing patch 0001
modifies the Makefile.am, so the AUTORECONF was needed independently of
the package bump.

So, it would have been nice to:

 - Do the AUTORECONF = YES addition in a separate patch. This would
   have easily allowed to backport this fix to our stable branches:
   this problem affects Buildroot 2018.05 and 2018.08.

 - Do the bump in a separate patch.

Could you send a patch based on the 2018.08.x branch that just adds the
AUTORECONF = YES, with the comment I added on top of it ? This will
allow Peter to fix it in 2018.08.x.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] package/cups-filters: Add patch to fix build when using poppler 0.69.0
  2018-10-05 13:30 ` [Buildroot] [PATCH 2/2] package/cups-filters: Add patch to fix build when using poppler 0.69.0 Olivier Schonken
@ 2018-10-06 14:00   ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2018-10-06 14:00 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri,  5 Oct 2018 15:30:19 +0200, Olivier Schonken wrote:
> This patch lets cups-filters 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.
> 
> A pull-request for the patch has also been created upstream at
> https://github.com/OpenPrinting/cups-filters/pull/66
> 
> Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
> ---
>  ...ed-memCheck-and-gMemReport-functions.patch | 79 +++++++++++++++++++
>  1 file changed, 79 insertions(+)
>  create mode 100644 package/cups-filters/0002-Poppler-removed-memCheck-and-gMemReport-functions.patch

Applied to master, thanks. Thanks a lot for having submitted the patch
upstream, it has already been merged, which is nice!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-10-06 14:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-05 13:30 [Buildroot] [PATCH 1/2] package/cups-filters: bump to version 1.21.3 Olivier Schonken
2018-10-05 13:30 ` [Buildroot] [PATCH 2/2] package/cups-filters: Add patch to fix build when using poppler 0.69.0 Olivier Schonken
2018-10-06 14:00   ` Thomas Petazzoni
2018-10-06 13:59 ` [Buildroot] [PATCH 1/2] package/cups-filters: bump to version 1.21.3 Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox