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
=== removed file 'data/snap-runner.wrapper'
--- data/snap-runner.wrapper 2016-12-06 16:14:42 +0000
+++ data/snap-runner.wrapper 1970-01-01 00:00:00 +0000
@@ -1,11 +0,0 @@
1#!/bin/bash
2# additional env modifications on top of desktop-launch
3
4export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/fakechroot:$LD_LIBRARY_PATH
5export DEBOOTSTRAP_DIR=$SNAP/usr/share/debootstrap
6
7# Useful debug variables
8# export FAKECHROOT_DEBUG=1
9# export LIBERTINE_DEBUG=1
10
11exec $SNAP/bin/desktop-launch $@
120
=== modified file 'libertine/libertine.cpp'
--- libertine/libertine.cpp 2016-10-07 18:58:30 +0000
+++ libertine/libertine.cpp 2016-12-22 20:55:57 +0000
@@ -65,7 +65,7 @@
65 for (auto const& sub: sub_paths)65 for (auto const& sub: sub_paths)
66 {66 {
67 QFileInfo fi(path + "/" + sub + s_main_QML_source_file);67 QFileInfo fi(path + "/" + sub + s_main_QML_source_file);
68 if (fi.exists())68 if (fi.exists() && fi.isReadable())
69 {69 {
70 return fi.filePath();70 return fi.filePath();
71 }71 }
@@ -78,7 +78,7 @@
7878
7979
80/**80/**
81 * Constraucts a Libertine application wrapper object.81 * Constructs a Libertine application wrapper object.
82 * @param[in] argc The count of the number of command-line arguments.82 * @param[in] argc The count of the number of command-line arguments.
83 * @param[in] argv A vector of command-line arguments.83 * @param[in] argv A vector of command-line arguments.
84 *84 *
8585
=== added directory 'snap'
=== added file 'snap/snap-runner.wrapper'
--- snap/snap-runner.wrapper 1970-01-01 00:00:00 +0000
+++ snap/snap-runner.wrapper 2016-12-22 20:55:57 +0000
@@ -0,0 +1,11 @@
1#!/bin/bash
2# additional env modifications on top of desktop-launch
3
4export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/fakechroot:$LD_LIBRARY_PATH
5export DEBOOTSTRAP_DIR=$SNAP/usr/share/debootstrap
6
7# Useful debug variables
8# export FAKECHROOT_DEBUG=1
9# export LIBERTINE_DEBUG=1
10
11exec $SNAP/bin/desktop-launch $@
012
=== added directory 'snap/ubuntu-app-platform'
=== modified file 'snapcraft.yaml'
--- snapcraft.yaml 2016-12-21 21:47:58 +0000
+++ snapcraft.yaml 2016-12-22 20:55:57 +0000
@@ -10,23 +10,43 @@
10 libertine-container-manager:10 libertine-container-manager:
11 command: usr/bin/snap-runner.wrapper libertine-container-manager11 command: usr/bin/snap-runner.wrapper libertine-container-manager
12 libertine-manager-app:12 libertine-manager-app:
13 command: usr/bin/snap-runner.wrapper libertine-manager-app13 command: desktop-launch libertine-manager-app
14 plugs:
15 - unity7
16 - platform
17 - opengl
18 - home
19 - network
14 libertine-launch:20 libertine-launch:
15 command: usr/bin/snap-runner.wrapper libertine-launch21 command: usr/bin/snap-runner.wrapper libertine-launch "$@"
1622
17 # For debugging purposes23 # For debugging purposes
18 bash:24 bash:
19 command: usr/bin/snap-runner.wrapper bash25 command: usr/bin/snap-runner.wrapper bash
2026
27plugs:
28 platform:
29 interface: content
30 content: ubuntu-app-platform1
31 target: ubuntu-app-platform
32 default-provider: ubuntu-app-platform
33
21parts:34parts:
22 libertine-source:35 libertine-source:
23 plugin: libertine36 plugin: libertine
24 source: .37 source: .
38 snap:
39 - -usr/share/doc
40 - -usr/include
25 after:41 after:
26 - desktop-qt542 - desktop-ubuntu-app-platform
27 libertine-deps:43 libertine-deps:
28 plugin: libertine-deps44 plugin: libertine-deps
45 snap:
46 - -usr/share/doc
47 - -usr/include
29 env:48 env:
49 source: snap/
30 plugin: dump50 plugin: dump
31 organize:51 organize:
32 data/snap-runner.wrapper: usr/bin/snap-runner.wrapper52 snap-runner.wrapper: usr/bin/snap-runner.wrapper

Subscribers

People subscribed via source and target branches