Skip to contentSkip to conversation

poppler: fix missing include

PATCH New [email protected] 1 participant 2 messages Jul 5, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 poppler: fix missing include

From: Ross Burton <[email protected]>

Backport a patch to ensure that stdio.h is included before jpeglib.h.

---
 .../poppler/poppler/jpeg-stdio.patch          | 41 +++++++++++++++++++
 .../poppler/poppler_23.04.0.bb                |  1 +
 2 files changed, 42 insertions(+)
 create mode 100644 meta-oe/recipes-support/poppler/poppler/jpeg-stdio.patch
meta-oe/recipes-support/poppler/poppler/jpeg-stdio.patch new file +41 -0
new file mode 100644
index 0000000000..70ba1cf123
@@ -0,0 +1,41 @@
+From 2986f06c7cc9d64a506ebe861b8bf38f73386e86 Mon Sep 17 00:00:00 2001
+From: Jordan Abrahams-Whitehead <[email protected]>
+Date: Tue, 16 May 2023 18:52:19 +0000
+Subject: [PATCH] Add missing #include <cstdio> prior to jpeglib.h
+
+Fixes #1398
+
+Upstream-Status: Backport
+Signed-off-by: Ross Burton <[email protected]>
+---
+ goo/JpegWriter.cc              | 2 +-
+ poppler/ImageEmbeddingUtils.cc | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/goo/JpegWriter.cc b/goo/JpegWriter.cc
+index ca69fd055..566ee38f8 100644
+--- a/goo/JpegWriter.cc
++++ b/goo/JpegWriter.cc
+@@ -23,7 +23,7 @@
+ #ifdef ENABLE_LIBJPEG
+ 
+ #    include "poppler/Error.h"
+-
++#    include <cstdio>
+ extern "C" {
+ #    include <jpeglib.h>
+ }
+diff --git a/poppler/ImageEmbeddingUtils.cc b/poppler/ImageEmbeddingUtils.cc
+index 0c13fe968..07b9dfb62 100644
+--- a/poppler/ImageEmbeddingUtils.cc
++++ b/poppler/ImageEmbeddingUtils.cc
+@@ -14,6 +14,7 @@
+ 
+ #include <memory>
+ #ifdef ENABLE_LIBJPEG
++#    include <cstdio>
+ extern "C" {
+ #    include <jpeglib.h>
+ }
+-- 
+GitLab
meta-oe/recipes-support/poppler/poppler_23.04.0.bb +1 -0
index 099be58a42..896176801b 100644
@@ -7,6 +7,7 @@ SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \
            file://0001-Do-not-overwrite-all-our-build-flags.patch \
            file://basename-include.patch \
            file://0001-cmake-Do-not-use-isystem.patch \
+           file://jpeg-stdio.patch \
            "
 SRC_URI[sha256sum] = "b6d893dc7dcd4138b9e9df59a13c59695e50e80dc5c2cacee0674670693951a1"
 
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 libpaper: remove redundant autoreconf --install

From: Ross Burton <[email protected]>

autotools.bbclass already uses --install, so there's no need to pass it again.

---
 meta-oe/recipes-support/libpaper/libpaper_2.1.0.bb | 2 --
 1 file changed, 2 deletions(-)
meta-oe/recipes-support/libpaper/libpaper_2.1.0.bb +0 -2
index 26f8fab200..911582553c 100644
@@ -6,6 +6,4 @@ SRC_URI[sha256sum] = "474e9575e1235a0d8e3661f072de0193bab6ea1023363772f698a2cc39
 
 inherit perlnative autotools
 
-EXTRA_AUTORECONF += "--install"
-
 BBCLASSEXTEND = "native"
Signature · 1 line
2.34.1