pulseaudio: Add audio group explicitly
PATCH 1/1 pulseaudio: Add audio group explicitly
From: Kyungjik Min <[email protected]>
Since pulseaudio-server requires the audio group, we explicitly add it.
When use useradd-staticids or do not use the default group in base-passwd, an error will occur because the audio group is not defined.
NOTE: pulseaudio: Performing useradd with [--root TOPDIR/tmp/work/cortexa72-poky-linux/pulseaudio/17.0/recipe-sysroot --home-dir /var/run/pulse --gid 998 --groups audio,pulse --no-create-home --system --shell /bin/false --uid 998 pulse]
useradd: group 'audio' does not exist
ERROR: pulseaudio: useradd command did not succeed.
--- meta/recipes-multimedia/pulseaudio/pulseaudio.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-multimedia/pulseaudio/pulseaudio.inc +1 -1
@@ -155,7 +155,7 @@ do_install:append() { } USERADD_PACKAGES = "pulseaudio-server" -GROUPADD_PARAM:pulseaudio-server = "--system pulse" +GROUPADD_PARAM:pulseaudio-server = "--system audio; --system pulse" USERADD_PARAM:pulseaudio-server = "--system --home /var/run/pulse \ --no-create-home --shell /bin/false \ --groups audio,pulse --gid pulse pulse"
Quoted 14 lines · Kyungjik Min via lists.openembedded.org
From: Kyungjik Min <[email protected]>
Since pulseaudio-server requires the audio group, we explicitly add it.
When use useradd-staticids or do not use the default group in base-passwd, an error will occur because the audio group is not defined.
NOTE: pulseaudio: Performing useradd with [--root TOPDIR/tmp/work/cortexa72-poky-linux/pulseaudio/17.0/recipe-sysroot --home-dir
/var/run/pulse--gid 998 --groups audio,pulse --no-create-home --system --shell/bin/false--uid 998 pulse]
useradd: group 'audio' does not exist
ERROR: pulseaudio: useradd command did not succeed.
Quoted 2 lines
Signed-off-by Kyungjik Min <[email protected]>---
Hi,
Thanks for your patch.
We get some build errors during the reproducibility test build:
2025-09-01 10:38:39,725 - oe-selftest - INFO - ERROR: Nothing PROVIDES 'pulseaudio' (but /srv/pokybuild/yocto-worker/reproducible/build/meta/recipes-graphics/libsdl2/libsdl2_2.32.8.bb, /srv/pokybuild/yocto-worker/reproducible/build/meta/recipes-multimedia/mpg123/mpg123_1.33.0.bb, /srv/pokybuild/yocto-worker/reproducible/build/meta/recipes-devtools/qemu/qemu_10.0.2.bb, /srv/pokybuild/yocto-worker/reproducible/build/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.26.5.bb, /srv/pokybuild/yocto-worker/reproducible/build/meta/recipes-multimedia/alsa/alsa-plugins_1.2.12.bb DEPENDS on or otherwise requires it) 2025-09-01 10:38:39,725 - oe-selftest - INFO - pulseaudio was skipped: Recipe pulseaudio, package pulseaudio-server: system groupname "audio" does not have a static ID defined. Add audio to one of these files: /srv/pokybuild/yocto-worker/reproducible/build/build-st/meta-selftest/files/static-group
https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/2397
Can you have a look at the issue please?
Thanks,
Mathieu
Signature · 3 lines
Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com