Re: [Gimp-developer] xdg-app; was: WGO Transition Meeting



On 17 November 2015 at 18:42, Michael Natterer <mitch gimp org> wrote:

On Tue, 2015-11-17 at 11:17 +0300, Alexandre Prokoudine wrote:
On Tue, Nov 17, 2015 at 11:07 AM, Sam Gleske wrote:

We need a *relocatable* build, but it doesn't need to be static.

- build all deps into a prefix
- enable relocation on all of them where needed/possible
- provide a launcher script
- tar up the install prefix
- ...
- profit


We do this in imgflo, which is based on GEGL. There is no GTK+ though, and
would need to build more dependencies to be fully distro-independent*.
https://github.com/jonnor/imgflo-dependencies/blob/master/Makefile
https://github.com/jonnor/imgflo-dependencies/blob/master/env.sh.in

This also includes headers, including some trickery to make pkg-config
relocatable,
so can also be used for developing. If someone was to make a relocatable
GIMP build, please consider the same, then people can also develop just by
downloading a single bundle.
By building a git checkout of GIMP/GEGL/BABL against the bundled prefix and
then installing into it, one could also develop core things this way (not
just plugins).

https://github.com/jonnor/imgflo/blob/master/Makefile#L66
https://github.com/jonnor/imgflo/blob/master/Makefile#L55

* it can be quite tricky to avoid host dependencies leaking into the build,
and quite a lot of work to build absolutely everything needed (down to or
including glibc). So it is practical to use something that provides some
isolation and some ready-made recipies - like Docker, makechrootpkg (from
Arch), or similar.

-- 
Jon Nordby - www.jonnor.com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]