Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8755 closed enhancement (fixed)

Add an 'audio' group by default if kmod-alsa is installed.

Reported by: Okkel Klaver <info@…> Owned by: hauke
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

alsa needs a group called 'audio' present on the system. If it can't find an 'audio' group, it will fail. This patch adds an 'audio' group with number 29 to the system. 29 is also used by debian/ubuntu.

Index: sound/alsa/Makefile
===================================================================
--- sound/alsa/Makefile	(revision 24986)
+++ sound/alsa/Makefile	(working copy)
@@ -26,6 +26,11 @@
   AUTOLOAD=$(call AutoLoad,70,$(shell cat ./files/alsa.modules))
 endef
 
+define KernelPackage/alsa/postinst
+	grep -qs "^audio:" "$$IPKG_INSTROOT/etc/group" || echo "audio:x:29:" >> "$$IPKG_INSTROOT/etc/group"
+	exit 0
+endef
+
 ifeq ($(KERNEL),2.4)
   ifeq ($(LINUX_KARCH),i386)
     KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by hauke

  • Owner changed from developers to hauke
  • Status changed from new to assigned

comment:2 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from assigned to closed

Committed in r26042 - thanks!

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.