Building guh snappy package
Jamie Strandboge
jamie at canonical.com
Wed Sep 23 21:04:04 UTC 2015
On 09/23/2015 10:14 AM, Simon Stürz wrote:
...
> export QT_PLUGIN_PATH=$SNAPP_APP_PATH/usr/lib/qt5/plugins
> export LD_LIBRARY_PATH=$SNAPP_APP_PATH/usr/lib:$LD_LIBRARY_PATH
> $SNAPP_APP_PATH/usr/bin/guhd -n
>
> Since the last update, the env $SNAPP_APP_PATH does not exist any more. Is there
> a new (maybe better) way to get the app directory? Or a better way to add the
> lib path?
Use SNAP_ instead of SNAPP_. All SNAPP_* variables are deprecated.
> Currently this is the most important question for me. I really have no idea how
> to continue from here. If each snappy package can bring it's own libs, is there
> a mechanism which allows the binary to find those libs?
You might be interested in the snapcraft project. I'll let others comment on it.
> 2. In the deb package of guh, there is also a config file which normally is
> placed in /etc/guh/guhd.conf. For the snappy app I placed this config file in
> $SNAPP_APP_PATH/config. Is there a convention where service settings should be
> placed?
>
You can put it anywhere in your app-specific directories. If it is read-only
SNAP_APP_PATH is fine but if it is meant to change, use SNAP_APP_DATA_PATH.
> 3. guhd provides also a logging system, which creates a sqlite database. Is
> /var/log/guhd.log still the right place for that?
>
No, your logging should be under SNAP_APP_DATA_PATH somewhere.
> 4. How can I make a snappy package for multiple architectures? Since I already
> have debian packages of guh for armhf, i386 and amd64 (vivid) is there a
> possibility to use these builds? Where do I have to place the different arch
> libs in the snappy environment and where the binaries?
>
Yes, snapcraft should be able to do this for you as well since you are able to
reuse debs from the Ubuntu archive. Again, I'll let others comment.
> I hope you guys can help me! :) I'm thankful for any suggestions!
>
Hope this helps! :)
--
Jamie Strandboge http://www.ubuntu.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20150923/45728083/attachment.pgp>
More information about the snappy-app-devel
mailing list