Skip to contentSkip to conversation

Make pulseaudio run by default

PATCH In review Sujith H 2 participants 3 messages Jul 30, 2014 – Sep 8, 2014

lore
Share & tools
lore

Sujith H

author
#0 lore raw

PATCH 1/1 Make pulseaudio run by default

From: Sujith H <[email protected]>

This change will help pulseaudio run by default on the target. On the bootup user can see pulseaudio service started.

---
 meta-ivi/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-ivi/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend +1 -1
index e32efa7..5401c66 100644
@@ -7,7 +7,7 @@ PR = "r1"
 inherit systemd
 
 SYSTEMD_PACKAGES = "${PN}-server"
-SYSTEMD_SERVICE = "pulseaudio.service"
+SYSTEMD_SERVICE_${PN}-server = "pulseaudio.service"
 
 PACKAGECONFIG_remove = "bluez4"
 PACKAGECONFIG_append = " bluez5"
Signature · 1 line
1.8.4
#1 lore raw

Hi Sujith,

First of all please format summary following:
http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines

Quoted 16 lines · Sujith H

From: Sujith H <[email protected]>

This change will help pulseaudio run by default on the target. On the bootup user can see pulseaudio service started.

---
 meta-ivi/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-ivi/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend +0 -0
index e32efa7..5401c66 100644

meta-ivi/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend PR = "r1" · line 10

Quoted 5 lines
meta-ivi/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend +1 -1
@@ -7,7 +7,7 @@ PR = "r1"
 inherit systemd
 
 SYSTEMD_PACKAGES = "${PN}-server"
-SYSTEMD_SERVICE = "pulseaudio.service"
+SYSTEMD_SERVICE_${PN}-server = "pulseaudio.service"

There is no functional change between these too. (read
http://patchwork.openembedded.org/patch/29049/). In both cases the services ends up in pulseaudio-server package.

The autostart feature is handled by SYSTEMD_AUTO_ENABLE which has as the default value "enable". So, pulseaudio should be up and running in the current setup.

Quoted 6 lines
meta-ivi/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend +0 -1
 PACKAGECONFIG_remove = "bluez4"
 PACKAGECONFIG_append = " bluez5"
--

1.8.4

--
Andrei Gherzan | Wind River Systems
m: +40 734 450 615 | p: +40 236 320 307

#2 lore raw
In reply to Sujith H

Hello,

Quoted 25 lines · Sujith H

From: Sujith H <[email protected]>

This change will help pulseaudio run by default on the target. On the bootup user can see pulseaudio service started.

---
 meta-ivi/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-ivi/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend +1 -2
index e32efa7..5401c66 100644
@@ -7,7 +7,7 @@ PR = "r1"
 inherit systemd
 
 SYSTEMD_PACKAGES = "${PN}-server"
-SYSTEMD_SERVICE = "pulseaudio.service"
+SYSTEMD_SERVICE_${PN}-server = "pulseaudio.service"
 
 PACKAGECONFIG_remove = "bluez4"
 PACKAGECONFIG_append = " bluez5"
--
Quoted 2 lines

1.8.4

First of all sorry for this late reply. I was able to reproduce and understand the issue here. The idea is that the bbclass is parsing the 'per package' SYSTEMD_SERVICE variable (SYSTEMD_SERVICE_${PN}) [systemd.bbclass line 167] and based on this it installs the post install script.

Patch merged to master.

Thanks a lot.

--
Andrei Gherzan | Wind River Systems
m: +40 734 450 615