Gir files are not installed using the correct prefix
VERSION : 5.2.5
Currently working on updating Sequeler (a SQL client built using libgda) Flatpak to the latest version which uses the GNOME Runtime 3.30 which is based on FDO 18.08. In the old version of the freedesktop runtime, everything worked fine as FreeDesktop people were patching pkg-config to detect the locations correctly (which is not the case anymore).
Using those env variables doesn't fix it anymore
"env": {
"PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR": "/app/share/gir-1.0",
"PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR": "/app/lib/girepository-1.0"
}
So I tried to use make-install-args
the same was I did with libgee
"make-install-args": ["girdir=/app/share/gir-1.0", "typelibdir=/app/lib/girepository-1.0"]
but still libgda tried to isntall gir files in /usr/share/
instead of '/app`.
I don't have any idea why it's the case here.
Here's the flatpak manifest used to build Sequeler in case it's needed for testing
{
"app-id": "com.github.alecaddd.sequeler",
"runtime": "org.gnome.Platform",
"runtime-version": "3.30",
"sdk": "org.gnome.Sdk",
"base":"io.elementary.BaseApp",
"base-version": "juno",
"command": "com.github.alecaddd.sequeler",
"cleanup": [
"/include",
"/lib/pkgconfig",
"/lib/debug",
"/share/vala",
"/man",
"*.a",
"*.la"
],
"build-options": {
"env": {
"PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR": "/app/share/gir-1.0",
"PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR": "/app/lib/girepository-1.0"
}
},
"finish-args": [
/* X11 + XShm */
"--share=ipc", "--socket=x11",
/* Wayland */
"--socket=wayland",
/* Libsecret BUS */
"--talk-name=org.freedesktop.secrets",
/* Filesystem*/
"--filesystem=home",
/* dconf */
"--filesystem=xdg-run/dconf", "--filesystem=~/.config/dconf:ro",
"--talk-name=ca.desrt.dconf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
/* access localhost databases */
"--share=network"
],
"modules": [
{
"name": "libxml2",
"build-options": {
"config-opts": [
"--with-python=no"
]
},
"cleanup": [
"/share/doc/",
"/share/gtk-doc/"
],
"sources": [{
"type": "archive",
"url": "https://github.com/GNOME/libxml2/archive/v2.9.8.tar.gz",
"sha256": "ff879b0d9142564bfe63df9753df936f05150afdd7bae07261f12d4dad33ba4a"
}]
},
{
"name": "gtksourceview",
"build-options": {
"config-opts": [
"--enable-gtk-doc=no"
]
},
"sources": [{
"type": "archive",
"url": "https://download.gnome.org/sources/gtksourceview/3.24/gtksourceview-3.24.9.tar.xz",
"sha256": "699d76a453e6a3d3331906346e3dbfa25f2cbc9ec090e46635e9c6bb595e07c2"
}]
},
{
"name": "postgresql-libs",
"build-options": {
"config-opts": [
"--with-python=no",
"--with-perl=no",
"--with-libxml",
"--with-openssl"
]
},
"sources": [{
"type": "archive",
"url": "https://ftp.postgresql.org/pub/source/v10.5/postgresql-10.5.tar.bz2",
"sha256": "6c8e616c91a45142b85c0aeb1f29ebba4a361309e86469e0fb4617b6a73c4011"
}]
},
{
"name": "jemalloc",
"cleanup": [
"/bin/",
"/share"
],
"sources": [{
"type": "archive",
"url": "https://github.com/jemalloc/jemalloc/releases/download/4.5.0/jemalloc-4.5.0.tar.bz2",
"sha256": "9409d85664b4f135b77518b0b118c549009dc10f6cba14557d170476611f6780"
}]
},
{
"name": "libaio",
"buildsystem": "simple",
"build-commands": [
"make",
"make prefix=/app install"
],
"sources": [{
"type": "archive",
"url": "http://ftp.de.debian.org/debian/pool/main/liba/libaio/libaio_0.3.110.orig.tar.gz",
"sha256": "e019028e631725729376250e32b473012f7cb68e1f7275bfc1bbcdd0f8745f7e"
}]
},
{
"name": "mariadb",
"buildsystem": "cmake",
"no-make-install": true,
"config-opts": [
"-DCMAKE_BUILD_TYPE=Release",
"-DBUILD_CONFIG=mysql_release",
"-DWITH_INNOBASE_STORAGE_ENGINE=1",
"-DWITHOUT_ARCHIVE_STORAGE_ENGINE=1",
"-DWITHOUT_BLACKHOLE_STORAGE_ENGINE=1",
"-DWITHOUT_PARTITION_STORAGE_ENGINE=1",
"-DWITHOUT_TOKUDB=1",
"-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1",
"-DWITHOUT_FEDERATED_STORAGE_ENGINE=1",
"-DWITHOUT_PBXT_STORAGE_ENGINE=1"
],
"post-install": [
"make -C libmysql install",
"make -C include install",
"install -Dm755 scripts/mysql_config /app/bin/mysql_config",
"install -Dm644 support-files/mariadb.pc /app/share/pkgconfig/mariadb.pc"
],
"cleanup": [
"/bin/"
],
"sources": [{
"type": "archive",
"url": "http://ftp.hosteurope.de/mirror/archive.mariadb.org/mariadb-10.1.24/source/mariadb-10.1.24.tar.gz",
"sha256": "b3df99ae5b1ec8cf6cede4cbc4ae3f54ce66464549cba6d56d9ff4d24e4d551e"
}]
},
{
"name": "libgda",
"config-opts": [
"--with-java=no",
"--with-jni=no",
"--with-oracle=no"
],
"make-install-args": ["girdir=/app/share/gir-1.0", "typelibdir=/app/lib/girepository-1.0", "prefix=/app"],
"sources": [{
"type": "archive",
"url": "https://download.gnome.org/sources/libgda/5.2/libgda-5.2.5.tar.xz",
"sha256": "e3d2e4c28c08a22efd520767fa9d16e92cc1821f693261d7cb2892cc23ec90c8"
}]
},
{
"name": "sequeler",
"buildsystem": "meson",
"config-opts": ["--buildtype=release"],
"sources": [{
"type": "archive",
"url": "https://github.com/Alecaddd/sequeler/archive/v0.6.3.tar.gz",
"sha256": "157a9a0ba5d758ea5727acffb862aa6591f4567f6b98eb1a2bf38f9de335b2b2"
}]
}
]
}