You are not logged in.

#1 2024-10-19 10:07:24

iRunLinuxOnAMac
Member
From: Greece
Registered: 2024-09-29
Posts: 6

Libgda-5 installation on Arch

Hello,

I've been trying to compile an app from source, and it lists Libgda-5 as a dependency.
The AUR package doesn't install, as I get this error from yay

==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: libgda-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
libgda - exit status 4

What should I do? Am I doing something wrong?

Offline

#2 2024-10-19 11:26:23

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,381
Website

Re: Libgda-5 installation on Arch

Try building it with makepkg, and post the full output.

https://bbs.archlinux.org/viewtopic.php?id=57855

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2024-10-22 20:48:58

iRunLinuxOnAMac
Member
From: Greece
Registered: 2024-09-29
Posts: 6

Re: Libgda-5 installation on Arch

Offline

#4 2024-10-22 21:43:40

loqs
Member
Registered: 2014-03-06
Posts: 18,012

Re: Libgda-5 installation on Arch

You have run into https://aur.archlinux.org/packages/libg … ent-983392 and https://aur.archlinux.org/packages/libg … ent-983748 which also applies to firebird 4.0 also the mysql bindings also fails to build.
Diff of changes that allowed me to build with jdbc, postgres and berkley db support with firebird and mysql support removed:

diff --git a/PKGBUILD b/PKGBUILD
index 415c824..a7c5302 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,16 @@
 # Contributor: tobias <tobias@archlinux.org>
 # Contributor: Tobias Kieslich <tobias@justdreams.de>
 
-pkgname=(libgda libgda-{firebird,jdbc,mysql,postgres})
+pkgname=(libgda libgda-{jdbc,postgres})
 pkgver=5.2.10
 pkgrel=5
 pkgdesc="Database access library"
 url="https://www.gnome-db.org/"
 arch=(x86_64)
 license=(GPL)
-depends=(gtksourceview3 libxslt python libsecret graphviz goocanvas iso-codes libgee openssl)
-makedepends=(glade mariadb-libs postgresql-libs libfbclient jdk11-openjdk intltool
-             gobject-introspection gtk-doc vala itstool gnome-common git)
+depends=(gtksourceview3 libxslt python libsecret graphviz goocanvas iso-codes libgee openssl db)
+makedepends=(glade postgresql-libs jdk11-openjdk intltool
+             gobject-introspection gtk-doc vala itstool gnome-common git glib2-devel)
 _commit=85a2532df64698306fd3be324bb2052fb1b80fd3  # tags/LIBGDA_5_2_10^0
 source=("git+https://gitlab.gnome.org/GNOME/libgda.git#commit=$_commit"
         0001-Use-single-header-with-GtkSource.patch
@@ -45,7 +45,7 @@ prepare() {
 
 build() {
   cd $pkgname
-  CFLAGS+=" -Wno-deprecated-declarations"
+  CFLAGS+=" -Wno-deprecated-declarations -Wno-incompatible-pointer-types -Wno-int-conversion"
   ./configure --prefix=/usr --sysconfdir=/etc --disable-static \
       --with-bdb=/usr --with-bdb-libdir-name=lib \
       --enable-json --enable-system-sqlite --enable-binreloc \
@@ -66,7 +66,7 @@ package_libgda() {
 
   mkdir -p providers
   local provider
-  for provider in firebird jdbc mysql postgres; do
+  for provider in jdbc postgres; do
     mv "$pkgdir"/usr/lib/libgda-$_apiver/providers/libgda-$provider[-.]*so \
        "$pkgdir"/usr/lib/pkgconfig/libgda-$provider-$_apiver.pc \
        "$pkgdir"/usr/share/libgda-$_apiver/${provider}_specs_*.xml \
@@ -86,12 +86,6 @@ _packageprovider() {
   mv providers/${1}_specs_*.xml "$pkgdir/usr/share/libgda-$_apiver"
 }
 
-package_libgda-firebird() {
-  pkgdesc="libgda provider for Firebird"
-  depends=(libgda libfbclient)
-  _packageprovider firebird
-}
-
 package_libgda-jdbc() {
   pkgdesc="libgda provider for JDBC"
   depends=(libgda java-environment)
@@ -101,12 +95,6 @@ package_libgda-jdbc() {
   mv providers/gdaprovider-$_apiver.jar "$pkgdir/usr/lib/libgda-$_apiver/providers"
 }
 
-package_libgda-mysql() {
-  pkgdesc="libgda provider for MySQL"
-  depends=(libgda mariadb-libs)
-  _packageprovider mysql
-}
-
 package_libgda-postgres() {
   pkgdesc="libgda provider for PostgreSQL"
   depends=(libgda postgresql-libs)

Offline

#5 2024-10-28 19:19:59

iRunLinuxOnAMac
Member
From: Greece
Registered: 2024-09-29
Posts: 6

Re: Libgda-5 installation on Arch

loqs wrote:

You have run into https://aur.archlinux.org/packages/libg … ent-983392 and https://aur.archlinux.org/packages/libg … ent-983748 which also applies to firebird 4.0 also the mysql bindings also fails to build.
Diff of changes that allowed me to build with jdbc, postgres and berkley db support with firebird and mysql support removed:

diff --git a/PKGBUILD b/PKGBUILD
index 415c824..a7c5302 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,16 @@
 # Contributor: tobias <tobias@archlinux.org>
 # Contributor: Tobias Kieslich <tobias@justdreams.de>
 
-pkgname=(libgda libgda-{firebird,jdbc,mysql,postgres})
+pkgname=(libgda libgda-{jdbc,postgres})
 pkgver=5.2.10
 pkgrel=5
 pkgdesc="Database access library"
 url="https://www.gnome-db.org/"
 arch=(x86_64)
 license=(GPL)
-depends=(gtksourceview3 libxslt python libsecret graphviz goocanvas iso-codes libgee openssl)
-makedepends=(glade mariadb-libs postgresql-libs libfbclient jdk11-openjdk intltool
-             gobject-introspection gtk-doc vala itstool gnome-common git)
+depends=(gtksourceview3 libxslt python libsecret graphviz goocanvas iso-codes libgee openssl db)
+makedepends=(glade postgresql-libs jdk11-openjdk intltool
+             gobject-introspection gtk-doc vala itstool gnome-common git glib2-devel)
 _commit=85a2532df64698306fd3be324bb2052fb1b80fd3  # tags/LIBGDA_5_2_10^0
 source=("git+https://gitlab.gnome.org/GNOME/libgda.git#commit=$_commit"
         0001-Use-single-header-with-GtkSource.patch
@@ -45,7 +45,7 @@ prepare() {
 
 build() {
   cd $pkgname
-  CFLAGS+=" -Wno-deprecated-declarations"
+  CFLAGS+=" -Wno-deprecated-declarations -Wno-incompatible-pointer-types -Wno-int-conversion"
   ./configure --prefix=/usr --sysconfdir=/etc --disable-static \
       --with-bdb=/usr --with-bdb-libdir-name=lib \
       --enable-json --enable-system-sqlite --enable-binreloc \
@@ -66,7 +66,7 @@ package_libgda() {
 
   mkdir -p providers
   local provider
-  for provider in firebird jdbc mysql postgres; do
+  for provider in jdbc postgres; do
     mv "$pkgdir"/usr/lib/libgda-$_apiver/providers/libgda-$provider[-.]*so \
        "$pkgdir"/usr/lib/pkgconfig/libgda-$provider-$_apiver.pc \
        "$pkgdir"/usr/share/libgda-$_apiver/${provider}_specs_*.xml \
@@ -86,12 +86,6 @@ _packageprovider() {
   mv providers/${1}_specs_*.xml "$pkgdir/usr/share/libgda-$_apiver"
 }
 
-package_libgda-firebird() {
-  pkgdesc="libgda provider for Firebird"
-  depends=(libgda libfbclient)
-  _packageprovider firebird
-}
-
 package_libgda-jdbc() {
   pkgdesc="libgda provider for JDBC"
   depends=(libgda java-environment)
@@ -101,12 +95,6 @@ package_libgda-jdbc() {
   mv providers/gdaprovider-$_apiver.jar "$pkgdir/usr/lib/libgda-$_apiver/providers"
 }
 
-package_libgda-mysql() {
-  pkgdesc="libgda provider for MySQL"
-  depends=(libgda mariadb-libs)
-  _packageprovider mysql
-}
-
 package_libgda-postgres() {
   pkgdesc="libgda provider for PostgreSQL"
   depends=(libgda postgresql-libs)

So what do I need to do exactly? I cannot understand clearly.  Sorry for the late reply, I just came back from a trip.

Last edited by iRunLinuxOnAMac (2024-10-28 19:20:20)

Offline

#6 2024-10-28 19:53:32

loqs
Member
Registered: 2014-03-06
Posts: 18,012

Re: Libgda-5 installation on Arch

git clone https://aur.archlinux.org/libgda.git
cd libgda
curl -o PKGBUILD.diff http://0x0.st/X0PZ.diff # download the PKGBUILD changes
git apply -v PKGBUILD.diff

Then build the package as you would normally.

Offline

Board footer

Powered by FluxBB