Hi,
When converting a python flatpak project from gnome-46 to gome-47, the dependency’s introspection data are not found anymore.
Simple manifest example:
{
"app-id": "com.example.TestVte",
"runtime": "org.gnome.Platform",
"runtime-version": "46",
"sdk": "org.gnome.Sdk",
"command": "test_vte",
"finish-args": [
"--device=dri",
"--share=ipc",
"--socket=fallback-x11",
"--socket=wayland"
],
"cleanup": [
"/include",
"/lib/pkgconfig",
"/man",
"/share/aclocal",
"/share/doc",
"/share/gtk-doc",
"/share/man",
"/share/pkgconfig",
"*.la",
"*.a"
],
"modules": [
{
"name": "vte",
"buildsystem": "meson",
"config-opts": [
"-Dglade=false",
"-Dgtk3=false",
"-Dgtk4=true",
"-Dvapi=false"
],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/vte.git",
"tag": "0.78.0"
}
]
},
{
"name": "test_vte",
"builddir": true,
"buildsystem": "simple",
"build-commands": [
"echo '#!/usr/bin/env python3' > test_vte",
"echo 'import gi' >> test_vte",
"echo 'from gi.repository import Vte' >> test_vte",
"echo 'print(Vte.get_user_shell())' >> test_vte",
"install -m 755 test_vte /app/bin/test_vte"
],
"sources": [
]
}
]
}
The executable script will load Vte
and print the user shell path.
On gnome-46 runtime, it works and prints /bin/sh
.
On gnome-47, it fails with an error “gi: Vte not found”.
Looking at the build logs, it seems gnome-47 installs the Vte’s GIR under /app/lib64/
, while gnome-46 used /app/lib/
.
Any idea what to change in the manifest to make it work on gnome-47?