Package Details: tableplus 0.1.258-1

Git Clone URL: https://aur.archlinux.org/tableplus.git (read-only, click to copy)
Package Base: tableplus
Description: Modern, native, and friendly GUI tool for relational databases (Alpha)
Upstream URL: https://tableplus.com/
Keywords: database gui mysql postgres tool
Licenses: custom
Submitter: rew1red
Maintainer: sistematico (cookingspoon721, igormp)
Last Packager: igormp
Votes: 15
Popularity: 0.30
First Submitted: 2019-12-02 20:06 (UTC)
Last Updated: 2024-11-15 15:23 (UTC)

Pinned Comments

sistematico commented on 2023-03-05 17:55 (UTC)

Version bumped, no need for /usr/bin/env LD_LIBRARY_PATH=/opt/tableplus/lib /usr/local/bin/tableplus anymore.

o/

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

wooque commented on 2021-12-26 18:56 (UTC) (edited on 2021-12-26 18:56 (UTC) by wooque)

Version for Ubuntu 21.10 won't work as it depends on libldap 2.5 which was never packaged for Arch (Arch went 2.4->2.6) and glibc 2.34 which is newer than latest Arch.

I made version for Ubuntu 20.04 to work with older libldap and libgio as before but also needed libsasl from Ubuntu package, did not work with Arch libsasl no matter what I tried.

hps commented on 2021-11-15 08:28 (UTC)

Heads up again

Same story with libldap 2.6, now in testing.

We specifically need libldap_r-2.4.so.2.11.7 and liblber-2.4.so.2.11.7 from libldap-2.4.59-2-x86_64.pkg.tar.zst

mdarr commented on 2021-11-02 04:49 (UTC) (edited on 2021-11-02 05:30 (UTC) by mdarr)

Here's a patch which preloads an old version of glib2 (2.68.4) within the tableplus executable itself, applying the fix in a launcher-agnostic manner.

To avoid tab/space issues, use this GitHub gist instead of copy & pasting the patch.

diff --git a/.SRCINFO b/.SRCINFO
index c87c1f1..d815b00 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = tableplus
    pkgdesc = Modern, native, and friendly GUI tool for relational databases (Alpha)
    pkgver = 0.1.176
-   pkgrel = 1
+   pkgrel = 2
    url = https://tableplus.com/
    arch = x86_64
    license = custom
@@ -10,7 +10,11 @@ pkgbase = tableplus
    depends = gnome-keyring
    source = LICENSE
    source = https://deb.tableplus.com/debian/pool/main/t/tableplus/tableplus_0.1.176_amd64.deb
+   source = run-patched-tableplus.sh
+   source = https://archive.archlinux.org/packages/g/glib2/glib2-2.68.4-1-x86_64.pkg.tar.zst
    sha256sums = 76f924b1ebad5309ccf0dd7f3fe3d1b57ff3088b208a603900b0e240fdb5debb
    sha256sums = 5aadff18ee5ec29a5b169fc8aab2d13a3aecc200f773136c0a8fb43cfc283860
+   sha256sums = f8f6f42e6149cc66d7052ef9d1b90db9f975c040bb365249b7744e8d440b20b9
+   sha256sums = e8e759bd9abb58c93067e199088077f3d6fa2c608ebc6f571cb9dd814812bcea

 pkgname = tableplus
diff --git a/.gitignore b/.gitignore
index a598864..8551814 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
 *.tar.gz
 *.tar.xz
+*.tar.zst
 tableplus*
 pkg
 deb
diff --git a/PKGBUILD b/PKGBUILD
index 2d6f95f..5a285f4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,16 +3,20 @@

 pkgname=tableplus
 pkgver=0.1.176
-pkgrel=1
+pkgrel=2
 pkgdesc='Modern, native, and friendly GUI tool for relational databases (Alpha)'
 arch=('x86_64')
 url='https://tableplus.com/'
 license=('custom')
 depends=('gtksourceview3' 'libgee' 'gnome-keyring')
 source=('LICENSE'
-        "https://deb.tableplus.com/debian/pool/main/t/tableplus/tableplus_${pkgver}_amd64.deb")
+        "https://deb.tableplus.com/debian/pool/main/t/tableplus/tableplus_${pkgver}_amd64.deb"
+        'run-patched-tableplus.sh'
+        "https://archive.archlinux.org/packages/g/glib2/glib2-2.68.4-1-x86_64.pkg.tar.zst")
 sha256sums=('76f924b1ebad5309ccf0dd7f3fe3d1b57ff3088b208a603900b0e240fdb5debb'
-            '5aadff18ee5ec29a5b169fc8aab2d13a3aecc200f773136c0a8fb43cfc283860')
+            '5aadff18ee5ec29a5b169fc8aab2d13a3aecc200f773136c0a8fb43cfc283860'
+            'f8f6f42e6149cc66d7052ef9d1b90db9f975c040bb365249b7744e8d440b20b9'
+            'e8e759bd9abb58c93067e199088077f3d6fa2c608ebc6f571cb9dd814812bcea')

 prepare() {
     tar -xf "${srcdir}/data.tar.xz"
@@ -22,10 +26,12 @@ package() {
     cd "$srcdir"

     install -d "${pkgdir}/opt/tableplus/"
-    install -Dm755 opt/tableplus/tableplus -t "$pkgdir/usr/local/bin/"
+    install -Dm755 opt/tableplus/tableplus -t "$pkgdir/opt/tableplus/bin/"
+    install -Dm755 run-patched-tableplus.sh "$pkgdir/usr/local/bin/tableplus"
     install -Dm644 opt/tableplus/tableplus.desktop -t "${pkgdir}/usr/share/applications/"
     install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
     cp -r opt/tableplus/resource "${pkgdir}/opt/tableplus/"
+    cp usr/lib/libgio-2.0.so.0.6800.4 "${pkgdir}/opt/tableplus/libgio-2.0.so.0.6800.4"

     echo "" >> "${pkgdir}/usr/share/applications/tableplus.desktop"
     echo "Categories=Utility;Development;" >> "${pkgdir}/usr/share/applications/tableplus.desktop"
@@ -33,4 +39,6 @@ package() {

     find "${pkgdir}/opt/tableplus/" -type d -exec chmod 755 {} \;
     find "${pkgdir}/opt/tableplus/" -type f -exec chmod 644 {} \;
+
+    chmod 755 "${pkgdir}/opt/tableplus/bin/tableplus"
 }
diff --git a/run-patched-tableplus.sh b/run-patched-tableplus.sh
new file mode 100755
index 0000000..35548fc
--- /dev/null
+++ b/run-patched-tableplus.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+LD_PRELOAD=/opt/tableplus/libgio-2.0.so.0.6800.4 /opt/tableplus/bin/tableplus

wooque commented on 2021-09-22 15:14 (UTC) (edited on 2021-09-22 15:15 (UTC) by wooque)

Current workaround:

rew1red commented on 2021-09-22 15:06 (UTC)

@wooque / @hps --

This seems like an issue Tableplus will need to address. I was going to suggest their issue tracker (https://github.com/TablePlus/TablePlus-Linux/issues) but I can see you've already opened a report!

wooque commented on 2021-09-21 18:42 (UTC)

glib2 2.70 is no longer in testing and will affect everyone. I don't know where to report, is this TablePlus issue or glib2 issue?

hps commented on 2021-09-21 11:50 (UTC)

Just a heads up: tableplus segfaults with glib2 2.70.0 from testing. A workaround for now is to extract the old version of glib2 (2.68.4) somewhere and preload libgio-2.0.so

like so env LD_PRELOAD=/home/hps/glib2tmp/libgio-2.0.so.0.6800.4 tableplus

kode54 commented on 2021-08-27 20:46 (UTC)

Sorry for even suggesting that, I knew it wasn't true anyway. I assumed he merely made an assumption about the project without looking into it. I hope he doesn't feel put off to the point that he can't even respond here. He does a lot of good work for the AUR.

rew1red commented on 2021-08-27 15:18 (UTC)

I never assumed malicious intent-- it's why I took the time to offer explanation!

I genuinely assume that nearly everybody active in the AUR has good intentions behind their actions.