[arch-commits] Commit in gambas3/trunk (PKGBUILD gambas-poppler-0.73.patch)

Antonio Rojas arojas at archlinux.org
Sat Jan 19 12:44:32 UTC 2019


    Date: Saturday, January 19, 2019 @ 12:44:30
  Author: arojas
Revision: 424602

Try to fix build with poppler 0.73

Added:
  gambas3/trunk/gambas-poppler-0.73.patch
Modified:
  gambas3/trunk/PKGBUILD

---------------------------+
 PKGBUILD                  |    3 +++
 gambas-poppler-0.73.patch |   18 ++++++++++++++++++
 2 files changed, 21 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-19 12:43:47 UTC (rev 424601)
+++ PKGBUILD	2019-01-19 12:44:30 UTC (rev 424602)
@@ -45,11 +45,13 @@
         0001-GB.SDL2-fix-detection-with-at-least-pkgconf-2.4.2.patch
         gambas-poppler-0.71.patch
         gambas-poppler-0.72.patch
+        gambas-poppler-0.73.patch
         gambas-postgresql.patch::"https://gitlab.com/gambas/gambas/commit/75c0cafe.diff")
 sha512sums=('1b5a22b13a69e43831e2348b6c89a6ddd38f3a98cf70176322f360a75616d8b15a189353e9a5637be194960875c1fe775c5f2b11a9919aa552d572e409e7f767'
             '51daba92877e52f578c74f0c46f58151a9ee7cdd32993845f269d598cca7c0068880a47a3ec3f9e3e862032be5b2b37c4c35e2ee50f72f117ba627f337ef26d7'
             '57c450ff4f42d41a10d305a4784d647001601a3efdf37cda936dc456d15f0a65ff23f1dc3fd3e710651a0a0648c6d720345d93dfa61f1955e98258494360d462'
             '029e9fb410b3194c84b663d493d3ba2b4b80116369bd3514083b8d01e2cabf39f4a2fd6e1c5f916126c815369bfb784695a1d47b839c9ba5fa8902dabb7e5762'
+            '1f6b398d9070cee4a255b8c384b2ec01e65061999c857349ea74c3ada349cb8bd4517d5bf590f0c99c125e157f8d4bb1a589accc1a8464075af4324c5a19beae'
             '42f41cd01ded21f7ddf614de975c09979f0b30f170429570ab71b64d9d7d169fbe7efae9222a266a928b1eefc761c49170c7d27b458e7336688b46caaba643a0')
 
 create_dirs() {
@@ -62,6 +64,7 @@
 
   patch -p1 -i ../gambas-poppler-0.71.patch # Fix build with poppler 0.71
   patch -p1 -i ../gambas-poppler-0.72.patch # Fix build with poppler 0.72
+  patch -p1 -i ../gambas-poppler-0.73.patch # Fix build with poppler 0.73
   patch -p1 -i ../gambas-postgresql.patch # Fix build of postgresql module
   ./reconf-all
 }

Added: gambas-poppler-0.73.patch
===================================================================
--- gambas-poppler-0.73.patch	                        (rev 0)
+++ gambas-poppler-0.73.patch	2019-01-19 12:44:30 UTC (rev 424602)
@@ -0,0 +1,18 @@
+diff --git a/gb.pdf/src/CPdfDocument.cpp b/gb.pdf/src/CPdfDocument.cpp
+index 3162f0deb..75a4057e5 100644
+--- a/gb.pdf/src/CPdfDocument.cpp
++++ b/gb.pdf/src/CPdfDocument.cpp
+@@ -457,10 +457,10 @@ int32_t open_document (void *_object, char *sfile, int32_t lfile)
+        if ( GB.LoadFile(sfile,lfile,&buf,&len) ) return -1;
+ 
+        #if POPPLER_VERSION_0_58
+-       stream=new MemStream(buf,0,(Guint)len,std::move(obj));
++       stream=new MemStream(buf,0,(unsigned int)len,std::move(obj));
+        #else
+        obj.initNull();
+-       stream=new MemStream(buf,0,(Guint)len,&obj);
++       stream=new MemStream(buf,0,(unsigned int)len,&obj);
+        #endif
+        test=new PDFDoc (stream,0,0);
+ 
+



More information about the arch-commits mailing list