mpd: fix service start errors with 0.24 version
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 17 Dec 2025 21:51:04 +0000 (16:51 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Fri, 23 Jan 2026 16:45:15 +0000 (11:45 -0500)
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
recipes-multimedia/musicpd/mpd_%.bbappend

index fb74473..a74f64e 100644 (file)
@@ -46,6 +46,11 @@ do_install:append() {
 
     # Disabling autostart of mpd.socket, in order to enable zeroconf:
     rm ${D}${systemd_system_unitdir}/mpd.socket
+
+    # Fix bug preventing mpd from starting properly:
+    #     ...mpd... exception: Failed to set group 29: Invalid argument
+    sed -e 's/^\(PrivateUsers=.*\)/#\1/' \
+        -i ${D}${systemd_system_unitdir}/mpd.service
 }
 
 # Disabling autostart of mpd.socket, in order to enable zeroconf: