I’m currently trying to snap pinta, an open source paint program written in C#. While I have figured out how to build the application (including applying a patch from debian in a slightly hackish manner), I’m currently stuck at it being unable to find glib-sharp, even after I added it under
After some investigation it appears that the packages GAC (global assembly cache) entries do not exist in the snap, mono needs these entries in order to locate the DLLs and load them. In fact, a lot of the entries for other dependencies are missing from the snap’s GAC as well. The GAC directory is located under
/snap/pinta-casept/current/usr/lib/mono/gac/ in the snap and under
/usr/lib/mono/gac on the host.
My first hunch is that maybe the debian package doesn’t actually contain these entries (instead generating them at install time), but I’m not sure. Can anyone with more experience snapping mono apps chime in here and help me out? The snapcraft.yaml and related files are available at https://github.com/casept/snap-pinta.
One option I have considered is copying the GAC entry from the build host, but that doesn’t seem like the “right way” to do it.