Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351722 - media-sound/pulseaudio-0.9.22 installs an init script that erroniously checks for HAL support
Summary: media-sound/pulseaudio-0.9.22 installs an init script that erroniously checks...
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: 2011-01-15 02:59 UTC by Mike Auty (RETIRED)
Modified: 2011-03-27 16:58 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 Mike Auty (RETIRED) gentoo-dev 2011-01-15 02:59:30 UTC
So the init script on pulseaudio-0.9.22 fails to start with:

ikelos pulse # /etc/init.d/pulseaudio start
 * Caching service dependencies ...
Service `pulseaudio' needs non existant service `hald'                                                                                        [ ok ]
 * ERROR: pulseaudio needs service(s) hald

The reason this requires HAL, is that the following exists in the init script:

#ifdef HAL
        if egrep -q '^[[:space:]]*load-module[[:space:]]+module-hal-detect' "$script"; then
            needs="${needs} hald"
        fi
#endif

This should have been removed by the unifdef command carried out in the ebuild, but since all traces of HAL were removed because of bug 349050 it stays present, and the default pulseaudio system.pa ($script) contains a conditional load-hal-module option.

The quickest resolution would be to produce a new init script that does not contain the #ifdef HAL segment, and then bump all pulseaudio ebuilds that do not support HAL to install the new init script.  Let me know if you need any more information...  5:)
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-03-27 16:58:45 UTC
+  27 Mar 2011; Samuli Suominen <ssuominen@gentoo.org> pulseaudio-0.9.22.ebuild,
+  +files/pulseaudio.init.d-5:
+  Remove last trace of sys-apps/hal from init.d script wrt #351722. No revision
+  bump because USE="system-wide" is masked.