[arch-commits] Commit in cups-filters/trunk (PKGBUILD qpdf-9.0.0-buildfix.diff)

Andreas Radke andyrtr at archlinux.org
Thu Sep 5 08:23:13 UTC 2019


    Date: Thursday, September 5, 2019 @ 08:23:13
  Author: andyrtr
Revision: 361632

upgpkg: cups-filters 1.25.4-2

qpdf 9.0.0 rebuild

Added:
  cups-filters/trunk/qpdf-9.0.0-buildfix.diff
Modified:
  cups-filters/trunk/PKGBUILD

--------------------------+
 PKGBUILD                 |   14 +++++++++++---
 qpdf-9.0.0-buildfix.diff |   12 ++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-05 08:17:44 UTC (rev 361631)
+++ PKGBUILD	2019-09-05 08:23:13 UTC (rev 361632)
@@ -2,7 +2,7 @@
 
 pkgname=cups-filters
 pkgver=1.25.4
-pkgrel=1
+pkgrel=2
 pkgdesc="OpenPrinting CUPS Filters"
 arch=('x86_64')
 url="https://wiki.linuxfoundation.org/openprinting/cups-filters"
@@ -15,9 +15,17 @@
 	    'foomatic-db-nonfree: drivers use Ghostscript to convert PostScript to a printable form directly'
 	    'antiword: needed to convert MS Word documents (requires also docx2txt (AUR)')
 backup=(etc/cups/cups-browsed.conf)
-source=(https://www.openprinting.org/download/cups-filters/$pkgname-$pkgver.tar.xz)
-sha256sums=('cc6bffcbbc0bf827d796f206f070abf7105275c1cb07a2e19a95820e18ba8153')
+source=(https://www.openprinting.org/download/cups-filters/$pkgname-$pkgver.tar.xz
+        qpdf-9.0.0-buildfix.diff)
+sha256sums=('cc6bffcbbc0bf827d796f206f070abf7105275c1cb07a2e19a95820e18ba8153'
+            'd9fe460d971ad2dc868d0633d9e7dd1ea9c0df66c050bf1dcd8c8f43ea9198d6')
 
+prepare() {
+  cd $pkgname-$pkgver
+  # fix build with qpdf 9.x
+  patch -Np1 -i ../qpdf-9.0.0-buildfix.diff
+}
+
 build() {
   cd $pkgname-$pkgver
   ./configure --prefix=/usr  \

Added: qpdf-9.0.0-buildfix.diff
===================================================================
--- qpdf-9.0.0-buildfix.diff	                        (rev 0)
+++ qpdf-9.0.0-buildfix.diff	2019-09-05 08:23:13 UTC (rev 361632)
@@ -0,0 +1,12 @@
+diff --git a/filter/pdf.cxx b/filter/pdf.cxx
+index 5b212ca9..f12607f8 100644
+--- a/filter/pdf.cxx
++++ b/filter/pdf.cxx
+@@ -20,6 +20,7 @@
+ #include "pdf.h"
+ #include <vector>
+ #include <string>
++#include <cstring>
+ #include <qpdf/QPDF.hh>
+ #include <qpdf/QPDFObjectHandle.hh>
+ #include <qpdf/QPDFWriter.hh>


More information about the arch-commits mailing list