Merge lp:~larryprice/libertine/ubuntu-app-platform-snap into lp:libertine

Proposed by Larry Price
Status: Work in progress
Proposed branch: lp:~larryprice/libertine/ubuntu-app-platform-snap
Merge into: lp:libertine
Diff against target: 107 lines (+37/-17)
4 files modified
data/snap-runner.wrapper (+0/-11)
libertine/libertine.cpp (+2/-2)
snap/snap-runner.wrapper (+11/-0)
snapcraft.yaml (+24/-4)
To merge this branch: bzr merge lp:~larryprice/libertine/ubuntu-app-platform-snap
Reviewer Review Type Date Requested Status
Libertine CI Bot continuous-integration Approve
Libertine Developers Pending
Review via email: mp+313802@code.launchpad.net

Commit message

Use the ubuntu-app-platform interface in the libertine snap.

Description of the change

Use the ubuntu-app-platform interface in the libertine snap.

Using our own qt causes strange crashes when running the snap confined. This has the added benefit of removing ~30MB from our snap, though it forces an additional ~150MB for the platform snap. ¯\_(ツ)_/¯

To post a comment you must log in.
Revision history for this message
Libertine CI Bot (libertine-ci-bot) wrote :

PASSED: Continuous integration, rev:325
https://jenkins.canonical.com/libertine/job/lp-libertine-ci/287/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/libertine/job/build/591
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=default/479
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=amd64,release=zesty,testname=default/479
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=i386,release=xenial+overlay,testname=default/479
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=i386,release=zesty,testname=default/479
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-0-fetch/601
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=xenial+overlay/583
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=xenial+overlay/583/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=zesty/583
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=zesty/583/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=xenial+overlay/583
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=xenial+overlay/583/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=zesty/583
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=zesty/583/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/libertine/job/lp-libertine-ci/287/rebuild

review: Approve (continuous-integration)
Revision history for this message
Larry Price (larryprice) wrote :

MP is On Hold because snappy is not handling (dis)connecting the platform app during multiple installs: https://bugs.launchpad.net/snappy/+bug/1652369

Unmerged revisions

325. By Larry Price

Use ubuntu-app-platform snap

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'data/snap-runner.wrapper'
2--- data/snap-runner.wrapper 2016-12-06 16:14:42 +0000
3+++ data/snap-runner.wrapper 1970-01-01 00:00:00 +0000
4@@ -1,11 +0,0 @@
5-#!/bin/bash
6-# additional env modifications on top of desktop-launch
7-
8-export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/fakechroot:$LD_LIBRARY_PATH
9-export DEBOOTSTRAP_DIR=$SNAP/usr/share/debootstrap
10-
11-# Useful debug variables
12-# export FAKECHROOT_DEBUG=1
13-# export LIBERTINE_DEBUG=1
14-
15-exec $SNAP/bin/desktop-launch $@
16
17=== modified file 'libertine/libertine.cpp'
18--- libertine/libertine.cpp 2016-10-07 18:58:30 +0000
19+++ libertine/libertine.cpp 2016-12-22 20:55:57 +0000
20@@ -65,7 +65,7 @@
21 for (auto const& sub: sub_paths)
22 {
23 QFileInfo fi(path + "/" + sub + s_main_QML_source_file);
24- if (fi.exists())
25+ if (fi.exists() && fi.isReadable())
26 {
27 return fi.filePath();
28 }
29@@ -78,7 +78,7 @@
30
31
32 /**
33- * Constraucts a Libertine application wrapper object.
34+ * Constructs a Libertine application wrapper object.
35 * @param[in] argc The count of the number of command-line arguments.
36 * @param[in] argv A vector of command-line arguments.
37 *
38
39=== added directory 'snap'
40=== added file 'snap/snap-runner.wrapper'
41--- snap/snap-runner.wrapper 1970-01-01 00:00:00 +0000
42+++ snap/snap-runner.wrapper 2016-12-22 20:55:57 +0000
43@@ -0,0 +1,11 @@
44+#!/bin/bash
45+# additional env modifications on top of desktop-launch
46+
47+export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/fakechroot:$LD_LIBRARY_PATH
48+export DEBOOTSTRAP_DIR=$SNAP/usr/share/debootstrap
49+
50+# Useful debug variables
51+# export FAKECHROOT_DEBUG=1
52+# export LIBERTINE_DEBUG=1
53+
54+exec $SNAP/bin/desktop-launch $@
55
56=== added directory 'snap/ubuntu-app-platform'
57=== modified file 'snapcraft.yaml'
58--- snapcraft.yaml 2016-12-21 21:47:58 +0000
59+++ snapcraft.yaml 2016-12-22 20:55:57 +0000
60@@ -10,23 +10,43 @@
61 libertine-container-manager:
62 command: usr/bin/snap-runner.wrapper libertine-container-manager
63 libertine-manager-app:
64- command: usr/bin/snap-runner.wrapper libertine-manager-app
65+ command: desktop-launch libertine-manager-app
66+ plugs:
67+ - unity7
68+ - platform
69+ - opengl
70+ - home
71+ - network
72 libertine-launch:
73- command: usr/bin/snap-runner.wrapper libertine-launch
74+ command: usr/bin/snap-runner.wrapper libertine-launch "$@"
75
76 # For debugging purposes
77 bash:
78 command: usr/bin/snap-runner.wrapper bash
79
80+plugs:
81+ platform:
82+ interface: content
83+ content: ubuntu-app-platform1
84+ target: ubuntu-app-platform
85+ default-provider: ubuntu-app-platform
86+
87 parts:
88 libertine-source:
89 plugin: libertine
90 source: .
91+ snap:
92+ - -usr/share/doc
93+ - -usr/include
94 after:
95- - desktop-qt5
96+ - desktop-ubuntu-app-platform
97 libertine-deps:
98 plugin: libertine-deps
99+ snap:
100+ - -usr/share/doc
101+ - -usr/include
102 env:
103+ source: snap/
104 plugin: dump
105 organize:
106- data/snap-runner.wrapper: usr/bin/snap-runner.wrapper
107+ snap-runner.wrapper: usr/bin/snap-runner.wrapper

Subscribers

People subscribed via source and target branches