Merge ~ogra/snappy-hwe-snaps/+git/pulseaudio:add-network-bind into ~snappy-hwe-team/snappy-hwe-snaps/+git/pulseaudio:master

Proposed by Oliver Grawert
Status: Rejected
Rejected by: Oliver Grawert
Proposed branch: ~ogra/snappy-hwe-snaps/+git/pulseaudio:add-network-bind
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/pulseaudio:master
Diff against target: 95 lines (+26/-12)
3 files modified
snapcraft.yaml (+25/-8)
tests/lib/prepare.sh (+0/-3)
tests/lib/restore-each.sh (+1/-1)
Reviewer Review Type Date Requested Status
System Enablement Bot continuous-integration Needs Fixing
Alfonso Sanchez-Beato Approve
Review via email: mp+373452@code.launchpad.net

Commit message

for pulse modules allowing network based playback and streaming we need the network-bind plug for the pulseaudio binary to allow socket creation, see:

https://forum.snapcraft.io/t/pulseaudio-snap-does-not-have-network-plug/13474

also move to "base: core" and adjust snapcraft.yaml for this change

Description of the change

for pulse modules allowing network based playback and streaming we need the network-bind plug for the pulseaudio binary to allow socket creation, see:

https://forum.snapcraft.io/t/pulseaudio-snap-does-not-have-network-plug/13474

To post a comment you must log in.
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

LGTM

review: Approve
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 3d9c8d055e827f8a873a6bc17140a5203fcfa382

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1260/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
4fac4de... by Oliver Grawert

drop unapplicable test

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 4fac4de6af7d3da7fdec5a645262e7cdbec9e533

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1261/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
574a89e... by Oliver Grawert

force "base: core" so we dont use core18

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 574a89e7be666c48711906d3761166adfacb52e4

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1262/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
81c0b8a... by Oliver Grawert

replace copy plugin, it got dropped from snapcraft

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 81c0b8af1a1d6df390a979acf186662859535caf

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1263/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
c1f0264... by Oliver Grawert

filesets do not support the snap target anymore, needs to be stage

1f9fb7c... by Oliver Grawert

make sure the binaries we want to copy have been built, add "after: pulseaudio" to pulseaudio-common

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: c1f02643d7510d040b15a65de9d3e545be7ae1c2

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1264/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 1f9fb7c6cdbb89320a13e542d042ec06e6b11260

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1265/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
3c744cb... by Oliver Grawert

add proper "source:" entry for pulseaudio-common, drop "after:", fis test even more

802ac0b... by Oliver Grawert

use mkdir -p so manual re-builds do not fail

adb61eb... by Oliver Grawert

new snapcraft does not automatically stage dependencies, add a proper list of stage-packages to pulseaudio part

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 802ac0b025ff2cb2e6b9b5c4d5fd302ba11f19fb

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1266/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: adb61eb102487a7a84ca74d992186c0e365d3fd9

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1267/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)

Unmerged commits

adb61eb... by Oliver Grawert

new snapcraft does not automatically stage dependencies, add a proper list of stage-packages to pulseaudio part

802ac0b... by Oliver Grawert

use mkdir -p so manual re-builds do not fail

3c744cb... by Oliver Grawert

add proper "source:" entry for pulseaudio-common, drop "after:", fis test even more

1f9fb7c... by Oliver Grawert

make sure the binaries we want to copy have been built, add "after: pulseaudio" to pulseaudio-common

c1f0264... by Oliver Grawert

filesets do not support the snap target anymore, needs to be stage

81c0b8a... by Oliver Grawert

replace copy plugin, it got dropped from snapcraft

574a89e... by Oliver Grawert

force "base: core" so we dont use core18

4fac4de... by Oliver Grawert

drop unapplicable test

3d9c8d0... by Oliver Grawert

add network and network-bind to pulseaudio, so plugins using network audio can create sockets

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/snapcraft.yaml b/snapcraft.yaml
2index b4bf686..abbaea5 100644
3--- a/snapcraft.yaml
4+++ b/snapcraft.yaml
5@@ -10,11 +10,13 @@ description: |
6 https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/pulseaudio
7 grade: stable
8 confinement: strict
9+base: core
10
11 apps:
12 pulseaudio:
13 command: bin/pulseaudio
14 daemon: simple
15+ plugs: [network, network-bind]
16 slots: [service]
17 pactl:
18 command: bin/client-wrapper usr/bin/pactl
19@@ -47,12 +49,15 @@ plugs:
20
21 parts:
22 pulseaudio-common:
23- plugin: copy
24- files:
25- bin/pulseaudio: bin/pulseaudio
26- bin/client-wrapper: bin/client-wrapper
27- bin/config: bin/config
28- data/copyright: usr/share/doc/pulseaudio/copyright
29+ source: .
30+ plugin: nil
31+ override-build: |
32+ mkdir -p $SNAPCRAFT_PART_INSTALL/bin
33+ mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/doc/pulseaudio
34+ for binfile in pulseaudio client-wrapper config; do
35+ cp -av bin/$binfile $SNAPCRAFT_PART_INSTALL/bin/
36+ done
37+ cp -av data/copyright $SNAPCRAFT_PART_INSTALL/usr/share/doc/pulseaudio/
38
39 alsa-lib:
40 plugin: autotools
41@@ -78,7 +83,7 @@ parts:
42 - usr/lib/alsa-lib/*
43 - usr/share/alsa/*
44
45- snap:
46+ stage:
47 - $libasound2
48
49
50@@ -152,5 +157,17 @@ parts:
51 - usr/lib/pulseaudio/*.so
52 - usr/share/pulseaudio/*
53
54- snap:
55+ stage:
56 - $wanted
57+
58+ stage-packages:
59+ - libasyncns0
60+ - libflac8
61+ - libltdl7
62+ - libogg0
63+ - libsbc1
64+ - libsndfile1
65+ - libspeexdsp1
66+ - libtdb1
67+ - libvorbis0a
68+ - libvorbisenc2
69diff --git a/tests/lib/prepare.sh b/tests/lib/prepare.sh
70index e14a9b2..7f0791e 100644
71--- a/tests/lib/prepare.sh
72+++ b/tests/lib/prepare.sh
73@@ -20,9 +20,6 @@ for name in $gadget_name $kernel_name $core_name; do
74 fi
75 done
76
77-echo "Kernel has a store revision"
78-snap list | grep ^${kernel_name} | grep -E " [0-9]+\s+canonical"
79-
80 install_snap_under_test
81
82 # Snapshot of the current snapd state for a later restore
83diff --git a/tests/lib/restore-each.sh b/tests/lib/restore-each.sh
84index 541ba8c..1d6d412 100644
85--- a/tests/lib/restore-each.sh
86+++ b/tests/lib/restore-each.sh
87@@ -6,7 +6,7 @@
88 for snap in /snap/*; do
89 snap="${snap:6}"
90 case "$snap" in
91- "bin" | "$gadget_name" | "$kernel_name" | "$core_name" | "$SNAP_NAME")
92+ "bin" | "$gadget_name" | "$kernel_name" | core* | "$SNAP_NAME")
93 ;;
94 *)
95 snap remove "$snap"

Subscribers

People subscribed via source and target branches