Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267734 - media-sound/pulseaudio ebuild installs wrong init.d script
Summary: media-sound/pulseaudio ebuild installs wrong init.d script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-28 06:37 UTC by Max Arnold
Modified: 2009-08-21 23:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Arnold 2009-04-28 06:37:46 UTC
When pulseaudio-0.9.9 compiled without alsa, avahi, hal and bluetooth USE-flags, it places copy of /etc/conf.d/pulseaudio to /etc/init.d/pulseaudio and fails to start.

Reproducible: Always

Steps to Reproduce:
USE="-alsa -avahi -hal -bluetooth" emerge pulseaudio
cat /etc/init.d/pulseaudio
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-05-13 19:41:42 UTC

*** This bug has been marked as a duplicate of bug 263350 ***
Comment 2 Max Arnold 2009-05-14 12:31:20 UTC
> *** This bug has been marked as a duplicate of bug 263350 ***

Are you sure? Init script itself is fine, there is error in the ebuild.
From src_install:

use alsa && neededservices="$neededservices alsasound"
        use avahi && neededservices="$neededservices avahi-daemon"
        use hal && neededservices="$neededservices hald"
        use bluetooth && neededservices="$neededservices bluetooth"
(1)     [[ -n ${neededservices} ]] && sed -e "s/@neededservices@/need $neededservices/" "${FILESDIR}/pulseaudio.init.d-2" > "${T}/pulseaudio"
(2)     doinitd "${T}/pulseaudio"

If all use flags are unset, neededservices variable is empty and line (1) not executed. But line (2) still tries to install "${T}/pulseaudio", which contains conf.d file left from previous steps.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-08-21 23:17:02 UTC
Right
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-08-21 23:18:33 UTC
Thanks for reporting, fixed now.