Package Details: libpdfium-nojs 6778.r0.7a8409531f-1

Git Clone URL: https://aur.archlinux.org/libpdfium-nojs.git (read-only, click to copy)
Package Base: libpdfium-nojs
Description: Open-source PDF rendering engine.
Upstream URL: https://pdfium.googlesource.com/pdfium/
Keywords: pdf pdfium
Licenses: BSD
Conflicts: libpdfium-bin
Provides: libpdfium
Submitter: selmf
Maintainer: selmf
Last Packager: selmf
Votes: 23
Popularity: 0.87
First Submitted: 2017-07-30 18:14 (UTC)
Last Updated: 2024-11-19 08:21 (UTC)

Pinned Comments

selmf commented on 2021-05-24 11:20 (UTC)

Important: This package depends on libicuuc and needs to be rebuild if the icu package is updated on your system!

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 Next › Last »

evgen23 commented on 2021-09-09 09:24 (UTC) (edited on 2021-09-09 09:25 (UTC) by evgen23)

Fast fix:

diff --git a/PKGBUILD b/PKGBUILD
index b0de601..3b09179 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Felix Kauselmann <licorn@gmail.com>

 pkgname=libpdfium-nojs
-pkgver=4389.r1.157601b9b9
+pkgver=4577.r60a7195a9b.
 pkgrel=1
 pkgdesc="Open-source PDF rendering engine."
 arch=('x86_64')
@@ -15,11 +15,13 @@ makedepends=('git' 'python2' 'gn' 'ninja')
 source=("git+https://pdfium.googlesource.com/pdfium"
     "git+https://chromium.googlesource.com/chromium/src/build.git"
     "libpdfium.pc"
+    "cstring.patch"
     )

 md5sums=('SKIP'
     'SKIP'
     'feb270967925a0844b1b9a9e15288eb3'
+    'SKIP'
     )

 pkgver() {
@@ -49,6 +51,15 @@ prepare() {
   # git checkout "chromium/$(curl https://omahaproxy.appspot.com/linux?channel=beta | cut -d'.' -f 3)"
   # git checkout "chromium/$(curl https://omahaproxy.appspot.com/linux?channel=dev | cut -d'.' -f 3)"

+  local src
+  for src in "${source[@]}"; do
+    src="${src%%::*}"
+    src="${src##*/}"
+    [[ $src = *.patch ]] || continue
+    echo "Applying patch $src..."
+    patch -Np1 < "../$src"
+  done
+
   # Extract build repo revision needed from DEPS file and do a checkout
   cd "$srcdir/pdfium/build"
   git checkout $(awk '/build_revision/ {print substr($2,2,40)}' $srcdir/pdfium/DEPS) -q
diff --git a/cstring.patch b/cstring.patch
new file mode 100644
index 0000000..f093296
--- /dev/null
+++ b/cstring.patch
@@ -0,0 +1,97 @@
+diff --git a/core/fxcodec/jpeg/jpegmodule.cpp b/core/fxcodec/jpeg/jpegmodule.cpp
+index cea0679aaf..d3f573fa0e 100644
+--- a/core/fxcodec/jpeg/jpegmodule.cpp
++++ b/core/fxcodec/jpeg/jpegmodule.cpp
+@@ -8,6 +8,7 @@
+ 
+ #include <setjmp.h>
+ 
++#include <cstring>
+ #include <memory>
+ #include <utility>
+ 
+diff --git a/core/fxcodec/jpx/cjpx_decoder.cpp b/core/fxcodec/jpx/cjpx_decoder.cpp
+index c66985a7fb..83a9ba1328 100644
+--- a/core/fxcodec/jpx/cjpx_decoder.cpp
++++ b/core/fxcodec/jpx/cjpx_decoder.cpp
+@@ -6,6 +6,7 @@
+ 
+ #include "core/fxcodec/jpx/cjpx_decoder.h"
+ 
++#include <cstring>
+ #include <algorithm>
+ #include <limits>
+ #include <utility>
+diff --git a/core/fxge/cfx_cliprgn.cpp b/core/fxge/cfx_cliprgn.cpp
+index 5369d522cc..6f667832a4 100644
+--- a/core/fxge/cfx_cliprgn.cpp
++++ b/core/fxge/cfx_cliprgn.cpp
+@@ -6,6 +6,7 @@
+ 
+ #include "core/fxge/cfx_cliprgn.h"
+ 
++#include <cstring>
+ #include <utility>
+ 
+ #include "core/fxge/dib/cfx_dibitmap.h"
+diff --git a/core/fxge/dib/cfx_bitmapcomposer.cpp b/core/fxge/dib/cfx_bitmapcomposer.cpp
+index 6f9b42013f..cdeaf7aed4 100644
+--- a/core/fxge/dib/cfx_bitmapcomposer.cpp
++++ b/core/fxge/dib/cfx_bitmapcomposer.cpp
+@@ -4,6 +4,8 @@
+ 
+ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+ 
++#include <cstring>
++
+ #include "core/fxge/dib/cfx_bitmapcomposer.h"
+ 
+ #include "core/fxge/cfx_cliprgn.h"
+diff --git a/core/fxge/dib/cfx_bitmapstorer.cpp b/core/fxge/dib/cfx_bitmapstorer.cpp
+index f57c00eaae..57c4f7c153 100644
+--- a/core/fxge/dib/cfx_bitmapstorer.cpp
++++ b/core/fxge/dib/cfx_bitmapstorer.cpp
+@@ -6,6 +6,7 @@
+ 
+ #include "core/fxge/dib/cfx_bitmapstorer.h"
+ 
++#include <cstring>
+ #include <utility>
+ 
+ #include "core/fxge/dib/cfx_dibitmap.h"
+diff --git a/core/fxge/dib/cfx_dibbase.cpp b/core/fxge/dib/cfx_dibbase.cpp
+index 4ec0ddbf9b..fec12383fa 100644
+--- a/core/fxge/dib/cfx_dibbase.cpp
++++ b/core/fxge/dib/cfx_dibbase.cpp
+@@ -6,6 +6,7 @@
+ 
+ #include "core/fxge/dib/cfx_dibbase.h"
+ 
++#include <cstring>
+ #include <algorithm>
+ #include <memory>
+ #include <utility>
+diff --git a/core/fxge/dib/cfx_dibitmap.cpp b/core/fxge/dib/cfx_dibitmap.cpp
+index d7ccf6cfa0..bed1ef7ab3 100644
+--- a/core/fxge/dib/cfx_dibitmap.cpp
++++ b/core/fxge/dib/cfx_dibitmap.cpp
+@@ -6,6 +6,7 @@
+ 
+ #include "core/fxge/dib/cfx_dibitmap.h"
+ 
++#include <cstring>
+ #include <limits>
+ #include <memory>
+ #include <utility>
+diff --git a/core/fxge/dib/cfx_scanlinecompositor.cpp b/core/fxge/dib/cfx_scanlinecompositor.cpp
+index e8362d7088..3c1d90b88f 100644
+--- a/core/fxge/dib/cfx_scanlinecompositor.cpp
++++ b/core/fxge/dib/cfx_scanlinecompositor.cpp
+@@ -6,6 +6,7 @@
+ 
+ #include "core/fxge/dib/cfx_scanlinecompositor.h"
+ 
++#include <cstring>
+ #include <algorithm>
+ 
+ #include "core/fxge/dib/fx_dib.h"

jeyes commented on 2021-09-06 08:47 (UTC)

@fritz009: The suggested fix is straight-forward: When you click on "Build" and then on "Apply", you click on "Edit build files". Then, under the tab PKGBUILD you scroll down until you see the block starting with prepare(), and then do as @selmf suggested: Comment out, i.e. insert # at the beginning of the line starting with "git checkout": It is the one where the URL includes "stable". Then you uncomment (i.e. delete the leading #) of the next line, whose URL says "beta". Then click on "Save" and it should work.

fritz009 commented on 2021-09-04 16:45 (UTC)

@selmf: Thank you for the response. I am too novice to solve the issue right now, so I think i'll just wait for the fix.

selmf commented on 2021-09-04 07:48 (UTC)

@fritz009: This is an upstream regression. Nothing grave, just some forgotten library includes. I am already looking into the best way to fix it (add a patch or ask upstream for a backport of their fix). You can either wait for the fix or you can simply comment the first line with "git checkout" in prepare() and uncomment the second or third line to build a beta or development version of the library.

fritz009 commented on 2021-09-04 03:39 (UTC) (edited on 2021-09-04 03:43 (UTC) by fritz009)

Firstly, I'm pretty new to Linux in general. I need to install this as its a dependency for MEGA. Its runs well up until I get...

https://nopaste.ml/#XQAAAQBKCgAAAAAAAAAtjIMYLxs9A82HP1857I1NT3NPv0HeTaD4piGdhKrbmzzufNTwOL1vcFoHcgyXcqNhlqIzwR/A25LKvctsIkiDGCRyzYcschCtBpHx6as7GE0U0ylTRANiEKCoEigJXREz0pzza0w8wR1F9qQQqy70jm0BHQTDS3HoILMVzk0tXYHzou7zujsbjI/nO0q0LKonHhfEVHQCKQ5Fh1FTKzaf5+avZvVd3BPDJO/wW5Rtf/LEDZtN+nEKf09/nJt9bH/78gax3KJQTml5ZQdn44tf30IP00Ly7DXX4t9yBp037HyhQL2LRNgWsZ5SVpdWi5/OfkOe8/89dyDlQ6MjdT2M/A6HPT3Jn9kPMMef2mKx2EcHAiJP7KS19TVJZxAkS4Zmq11ttagubaKOHUHfQbeppia8i4/FAIXSMuvyOZEk++TrY2HjYNG6mu6QPylEMVYNnyZayvDpjTZwyROXSbRJKwiAqKpKQZV4J4DdPacP8ij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07 08:03 (UTC)

@jonathon: Naming it libpdfium-nojs-git would imply that this package builds a development snapshot, which it does not. This installs the latest stable version available at build time.

While the approach taken in building this package may look like ignorance or neglectance of the packaging guidelines at first glance I can assure you that there are technical reasons for this it and it has been verified by the TUs on the aur-requests mailing list that it is correct given these circumstances.

The fact that this confuses some AUR helpers which assume only "-vcs" packages can have a pkgver() function or who rely on other unreliable assumptions which fail for this package is unfortunate, but it is not a packaging issue.

jonathon commented on 2021-08-06 13:37 (UTC)

If this package pulls directly from a git branch then it should probably be suffixed -git rather than pretending to be a non-VCS package with a static pkgver?

Or, this one should specify the relevant commits and remain reproducible?

selmf commented on 2021-08-05 19:08 (UTC)

@devourer: This is a semi-git package and it tracks the stable branch of pdfium. The fact that your AUR helper cannot handle this does not mean the package is out of date.

devourer commented on 2021-08-04 09:48 (UTC)

I keep getting this error/warning when I upgrade Arch:

-> libpdfium-nojs: local (4515.rdab1161c86.-1) is newer than AUR (4389.r1.157601b9b9-1)

selmf commented on 2021-05-24 11:20 (UTC)

Important: This package depends on libicuuc and needs to be rebuild if the icu package is updated on your system!