File: 1-qpdf-include-deprecated-pointerholder.patch

package info (click to toggle)
pdfmixtool 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,872 kB
  • sloc: cpp: 6,505; xml: 151; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 818 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Ahmad Khalifa <ahmad@khalifa.ws>
Date: Wed, 14 May 2025 18:16:54 +0100
Subject: QPDF Include Deprecated PointerHolder.hh header
Forwarded: not-needed

QPDF v12 removes the include, but they keep the transition flag in place.
Explicitly include the header file until full transition.
Read about the transition flag in qpdf source: include/qpdf/PointerHolder.hh
---
--- a/src/operations/extract_images.cpp
+++ b/src/operations/extract_images.cpp
@@ -18,10 +18,14 @@
 
 #include "extract_images.h"
 
+//temp compatibility with qpdf-12 which removed PointerHolder.hh include
+#define POINTERHOLDER_TRANSITION 0
+
 #include <QVBoxLayout>
 #include <QLabel>
 #include <QFileDialog>
 #include <qpdf/QPDF.hh>
+#include <qpdf/PointerHolder.hh>
 #include <Magick++/Blob.h>
 #include <Magick++/Image.h>
 #include <fstream>