Package Details: masterpdfeditor 5.4.38-1

Git Clone URL: https://aur.archlinux.org/masterpdfeditor.git (read-only, click to copy)
Package Base: masterpdfeditor
Description: A complete solution for creation and editing PDF files
Upstream URL: https://code-industry.net/free-pdf-editor/
Keywords: master-pdf-editor
Licenses: custom
Submitter: farseerfc
Maintainer: Scimmia
Last Packager: Scimmia
Votes: 156
Popularity: 3.77
First Submitted: 2016-12-05 01:50
Last Updated: 2019-07-10 14:54

Latest Comments

1 2 3 4 5 6 ... Next › Last »

bkb commented on 2020-03-28 10:43

Alors ouiiii euhh, ça marche paaass euuhh

Ou devrais-je dire

Same as @unixtastic, it seems to be a problem related to C libraries and Qt

For reference: https://www.reddit.com/r/openSUSE/comments/fj9seb/masterpdfeditor5_cannot_be_launched_anymore/

wild34 commented on 2020-03-27 10:21

@farseerfc consider the following git patch to fix the annoying issue with Qt libs.

diff --git a/PKGBUILD b/PKGBUILD
index cdfb30e..e0a6916 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,8 +11,13 @@ url='https://code-industry.net/free-pdf-editor/'
 arch=('x86_64')
 license=('custom')
 makedepends=('patchelf')
-source_x86_64=("https://code-industry.net/public/master-pdf-editor-${pkgver}-qt5.amd64.tar.gz")
-sha1sums_x86_64=('fd3e19479a298bfe6770b5dddd67b009742e9321')
+source_x86_64=("https://code-industry.net/public/master-pdf-editor-${pkgver}-qt5-all.amd64.tar.gz" "masterpdfeditor.sh.patch")
+sha1sums_x86_64=('bff9d66b531e60603a9221cf6bd2595c6bf602d6'
+                 'bc98283763d229f6d0d0a50350fb02daeba9238c')
+prepare() {
+    cd "$srcdir/master-pdf-editor-${pkgver%%.*}"
+    patch -p1 -i "$srcdir/masterpdfeditor.sh.patch"
+}

 package() {
   depends=('gcc-libs' 'glibc' 'libgl' 'nspr' 'nss' 'qt5-base' 'qt5-svg' 'sane')
@@ -21,7 +26,7 @@ package() {
   cp -a --no-preserve=ownership master-pdf-editor-${pkgver%%.*} "$pkgdir/opt/"

   cd "$pkgdir/opt/master-pdf-editor-${pkgver%%.*}"
-  ln -sr masterpdfeditor${pkgver%%.*} -t "$pkgdir/usr/bin/"
+  ln -sr masterpdfeditor${pkgver%%.*}.sh "$pkgdir/usr/bin/masterpdfeditor${pkgver%%.*}"
   install -Dm644 masterpdfeditor${pkgver%%.*}.desktop -t "$pkgdir/usr/share/applications/"
   install -Dm644 license.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
   patchelf --remove-rpath masterpdfeditor${pkgver%%.*}
diff --git a/masterpdfeditor.sh.patch b/masterpdfeditor.sh.patch
new file mode 100644
index 0000000..7a31742
--- /dev/null
+++ b/masterpdfeditor.sh.patch
@@ -0,0 +1,12 @@
+--- a/masterpdfeditor5.sh  2020-03-27 10:57:36.818464325 +0100
++++ b/masterpdfeditor5.sh  2020-03-27 10:58:22.561935668 +0100
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+  appname=`basename $0 | sed s,\.sh$,,`
+- libpath=$(cd "$(dirname "$0")"; pwd)
+- dirname=`dirname $0`
++ libpath="$(cd $(dirname "$(readlink -f "$0")"); pwd)"
++ dirname="$libpath"
+  tmp="${dirname#?}"
+  
+  if [ "${dirname%$tmp}" != "/" ]; then

jdegreef commented on 2020-03-14 20:03

@unixtastic Did you read what's below your comment ? Everything is explained. 1. remove Aur version 2. download the "all" version from Code Industry 3. Install it 4. run /opt/master-pdf-editor-5/masterpdfeditor5.sh 5. smile :)

unixtastic commented on 2020-03-14 19:49

This doesn't run.

  • masterpdfeditor5: symbol lookup error: masterpdfeditor5: undefined symbol: _ZN10QMutexPool17globalInstanceGetEPKv

ldd doesn't show any missing libraries. The command mentioned below, /opt/master-pdf-editor-5/masterpdfeditor5.sh, doesn't exist.

pgoetz commented on 2020-03-11 11:11

@Chester A tar.gz file is just a compressed archive similar to a zip file, and it's universal across all linux platforms; i.e. there's nothing magic about installing it on Arch. Also note that this won't currently work unless you downloaded the "-all" version which includes the older Qt libraries. Here are the steps, which you'll need to run as root, and assuming you downloaded the masterpdfeditor5 tarball to /home/chester:

# cd /opt

# tar xvfp /home/chester/master-pdf-editor-5.4.38-qt5-all.amd64.tar.gz

# cd /usr/local/bin

  • Now use your favorite text editor to create a shell script called masterpdfeditor5 with these contents: (You can skip this step if you only ever launch programs from the GUI)

#!/bin/sh

app_path="/opt/master-pdf-editor-5"

LD_LIBRARY_PATH=$app_path/lib:$app_path/platforms:$app_path/printsupport:$app_path/iconengines:$app_path/imageformats:$app_path/platformthemes:$LD_LIBRARY_PATH

export LD_LIBRARY_PATH

$app_path/masterpdfeditor5 "$@"


Finally,

# cp /opt/master-pdf-editor-5/masterpdfeditor5.desktop /usr/share/applications

# chmod 644 /usr/share/applications/masterpdfeditor5.desktop

If you uninstalled the AUR package using pacman -Rns you will probably have unmet dependencies. I had to install the sane package; you might run into other unmet dependencies. Warning: generally installing from tarball is something that should be left to those with a fair level of linux expertise -- a typo could screw up your system. Also if you go back to using the AUR package, you'll need to clean up after yourself by hand; i.e. remove everything you've created in the previous steps.

Chester commented on 2020-03-11 03:37

I downloaded the official version from code industry. How does one install a tar.gz in Arch?

jdegreef commented on 2020-03-10 01:34

This pkg is out of date (07/2019). I report it as ofd yesterday but it seems my comment vanished in the air. Just install the official version from code industry and you'll be happy :-)))

pgoetz commented on 2020-03-06 16:59

@j1simon:

Having two versions of Qt libraries installed at same time is not a good idea, not this way, so I agree with Scimmia's comment: "Switching to all bundled libs like that is NOT a solution".

Except that this is basically what containers, AppImage, Snap, and Flatpack do, not to mention all applications in MacOS? Agreed that the sandboxing is missing, but...

You are also free to create a new AUR package to install the version with all the libraries (master-pdf-editor-5.4.38-qt5-all.amd64.tar.gz). But if anyone does, be very careful not to screw up the system's Qt libraries.

Given that those libraries get installed in /opt/master-pdf-editor-5/lib/, I'm hard pressed to see how this could happen. Can you concoct an example?

I have complained directly to Code Industry about this, and they view it as a solved problem: just use the version with bundled libraries. You open a support case about this and they close it with this response.

its4nitya commented on 2020-03-06 15:35

The patch by @solnce works for me. +1

solnce commented on 2020-02-28 12:50

There is a new tar ball upstream that has the script. Consider this patch.

diff --git a/PKGBUILD b/PKGBUILD
index cdfb30e..9025c82 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,8 +11,8 @@ url='https://code-industry.net/free-pdf-editor/'
 arch=('x86_64')
 license=('custom')
 makedepends=('patchelf')
-source_x86_64=("https://code-industry.net/public/master-pdf-editor-${pkgver}-qt5.amd64.tar.gz")
-sha1sums_x86_64=('fd3e19479a298bfe6770b5dddd67b009742e9321')
+source_x86_64=("https://code-industry.net/public/master-pdf-editor-${pkgver}-qt5-all.amd64.tar.gz")
+sha1sums_x86_64=('bff9d66b531e60603a9221cf6bd2595c6bf602d6')

 package() {
   depends=('gcc-libs' 'glibc' 'libgl' 'nspr' 'nss' 'qt5-base' 'qt5-svg' 'sane')