Merge ~sylvain-pineau/checkbox-core-snap:interim_release_support into checkbox-core-snap:master

Proposed by Sylvain Pineau
Status: Work in progress
Proposed branch: ~sylvain-pineau/checkbox-core-snap:interim_release_support
Merge into: checkbox-core-snap:master
Diff against target: 67 lines (+16/-6)
2 files modified
config/wrapper_common_classic (+12/-6)
snap/snapcraft.yaml (+4/-0)
Reviewer Review Type Date Requested Status
Checkbox Developers Pending
Review via email: mp+401725@code.launchpad.net

Description of the change

Experimental support for interim release, requires a full run of edge/classic systems

To post a comment you must log in.

Unmerged commits

c087cec... by Sylvain Pineau

Fix LD_LIBRARY_PATH additions

Add $RUNTIME/usr/lib/$ARCH
Remove $RUNTIME/lib/$ARCH

bbd0212... by Sylvain Pineau

Fix pulseaudio setup

See https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/common/desktop-exports

9368b2d... by Sylvain Pineau

Stage bash since recent version now have requirements on libc6 (>= 2.33)

6c595d0... by Sylvain Pineau

Add perl/perl-base packages to run the same version as the selected base

Required to run jobs using inxi (e.g: system_info_json)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/config/wrapper_common_classic b/config/wrapper_common_classic
2index a2f88bc..15d1c2b 100644
3--- a/config/wrapper_common_classic
4+++ b/config/wrapper_common_classic
5@@ -23,10 +23,10 @@ else
6 append_path PERL5LIB $RUNTIME/usr/lib/$ARCH/perl5/$PERL_VERSION
7 append_path PERL5LIB $RUNTIME/usr/share/perl/$PERL_VERSION
8 append_path PERL5LIB $RUNTIME/usr/share/perl5
9- append_path LD_LIBRARY_PATH $RUNTIME/lib
10- append_path LD_LIBRARY_PATH $RUNTIME/lib/$ARCH
11- append_path LD_LIBRARY_PATH $RUNTIME/usr/lib/$ARCH
12- append_path LD_LIBRARY_PATH $RUNTIME/lib/fwts
13+ prepend_dir LD_LIBRARY_PATH $RUNTIME/lib
14+ prepend_dir LD_LIBRARY_PATH $RUNTIME/usr/lib/
15+ prepend_dir LD_LIBRARY_PATH $RUNTIME/usr/lib/$ARCH
16+ prepend_dir LD_LIBRARY_PATH $RUNTIME/lib/fwts
17 append_path GI_TYPELIB_PATH $RUNTIME/usr/lib/girepository-1.0
18 append_path GI_TYPELIB_PATH $RUNTIME/usr/lib/$ARCH/girepository-1.0
19 prepend_dir PATH $RUNTIME/bin
20@@ -61,10 +61,16 @@ export GST_PLUGIN_SYSTEM_PATH=$RUNTIME/usr/lib/$ARCH/gstreamer-1.0
21 # gst plugin scanner doesn't install in the correct path: https://github.com/ubuntu/snapcraft-desktop-helpers/issues/43
22 export GST_PLUGIN_SCANNER=$RUNTIME/usr/lib/$ARCH/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner
23
24+# Pulseaudio export
25+append_path LD_LIBRARY_PATH $RUNTIME/usr/lib/$ARCH/pulseaudio
26+
27 # Make PulseAudio socket available inside the snap-specific $XDG_RUNTIME_DIR
28 if [ -n "$XDG_RUNTIME_DIR" ]; then
29- export PULSE_RUNTIME_PATH="$XDG_RUNTIME_DIR/../pulse"
30- export PULSE_SYSTEM=1
31+ pulsenative="pulse/native"
32+ pulseaudio_sockpath="$XDG_RUNTIME_DIR/../$pulsenative"
33+ if [ -S "$pulseaudio_sockpath" ]; then
34+ export PULSE_SERVER="unix:${pulseaudio_sockpath}"
35+ fi
36 fi
37
38 # Method for making providers available from the checkbox core snap without the
39diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
40index aa6c7b3..304d134 100644
41--- a/snap/snapcraft.yaml
42+++ b/snap/snapcraft.yaml
43@@ -232,6 +232,7 @@ parts:
44 plugin: checkbox-provider
45 source: git://git.launchpad.net/plainbox-provider-checkbox
46 stage-packages:
47+ - bash
48 - bc
49 - bluez-tests
50 - bonnie++
51@@ -260,6 +261,7 @@ parts:
52 - libasound2
53 - libcap2-bin
54 - libfdt1
55+ - libffi7
56 - lsb-release
57 - lshw
58 - mesa-utils
59@@ -271,6 +273,8 @@ parts:
60 - obexftp
61 - parted
62 - pciutils
63+ - perl
64+ - perl-base # Both perl package are required to run inxi
65 - pulseaudio-utils
66 - pyotherside
67 - python3-dbus

Subscribers

People subscribed via source and target branches