flatpak-builder, /app and dependent build

Bastien Nocera hadess at hadess.net
Wed Jan 6 19:21:52 UTC 2021


On Wed, 2021-01-06 at 19:05 +0100, Alec Leamas wrote:
> On 06/01/2021 14:50, Alec Leamas wrote:
> > Dear list,
> > 
> > Once again the flatpak world makes me feel silly :(
> > 
> > Have a simple app with a dependency (libgeotiff) which depends on
> > another module named proj (sic!). Both have a standard autotools
> > setup.
> > 
> > Building proj is fine, but when it tries to install into /app/lib
> > it
> > runs into a read-only filesystem error.
> 
> Hm.. answering myself. Problem is that my 'app' really is built as an
> extension, and (I presume) as such cannot really install anything.
> Solution then becomes to bundle the dependent libs within the app
> instead.

You can't write everywhere in /app, you can only write in the
subdirectory for the extension. If you need a new library, make sure
you have a "add-ld-path" section in the extension definition.

Loads of other examples for extension definitions:
https://github.com/search?q=org%3Aflathub+add-ld-path&type=code



More information about the Flatpak mailing list