Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 103885

Summary: alsa-utils ebuild don't install init script file 'alsasound'
Product: Gentoo Linux Reporter: mona- <mona->
Component: New packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: major CC: viriiboxen
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description mona- 2005-08-26 23:22:45 UTC
I emerged alsa-utils-1.0.9a-r1.
At last of it,

"you should add alsasound to the boot runlevel.
 You can do this as root like so:
  # rc-update add alsasound boot"

appeared such message and i followed it.
but,

" * /sbin/rc-update: /etc/init.d/alsasound not found; aborting."

above message appeared.

I had searched 'alsasound' in /etc/init.d, but it didn't there.
Then i saw the ebuild and found a reason of this problem.

In alsa-utils-1.0.9a-r1.ebuild, line 45,

"  newinitd ${FILESDIR}/alsasound"

The newinitd has only one argment.

by http://dev.gentoo.org/~plasmaroo/devmanual/function-reference/install-functions/
>The new* functions take exactly two arguments (except as noted)
> -- the first is the source name, the second the name to use 
>when installing.

It should be that,

"  newinitd ${FILESDIR}/alsasound alsasound"

I rewrited the ebuild above and tried emerge again, and succeed.

Reproducible: Always
Steps to Reproduce:
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-27 02:13:54 UTC
Thanks, it should have been a "doinitd". 
Fixed now. 
 
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-27 04:10:48 UTC
*** Bug 103907 has been marked as a duplicate of this bug. ***