Hi all,
This all happens on an up to date openrc machine with the profile
default/linux/amd64/17.0/desktop/plasma
I've added a few hooks to the emerge process via the bashrc that is in
/etc/portage. One of the things I do upon emerge failure is kill vlc,
which would have been playing a random song, and then attempt to start
alsaplayer[1] with a specific song. This means that I can be pottering
around the house/shed and if the "failure song" starts playing, I know
something is up. The problem is getting the failure song to play.
If I log in as my usual user, alsaplayer will run the song. If I then
"su" into root, I'm in wheel, alsaplayer will play the song. The problem
is that when the emerge runs, then fails, alsaplayer can't appear to
fire up. When an emerge fails, I get the usual error listings then the
following:
* ACCESS DENIED: open_wr: /dev/snd/controlC0
* ACCESS DENIED: open_wr: /dev/snd/controlC0
ALSA lib
/var/tmp/portage/media-libs/alsa-lib-1.1.9/work/alsa-lib-1.1.9/src/confmisc.c:674:(snd_determine_driver)
could not open control for card 0
ALSA lib
/var/tmp/portage/media-libs/alsa-lib-1.1.9/work/alsa-lib-1.1.9/src/conf.c:3572:(snd_config_hooks_call)
function snd_config_hook_load_for_all_cards returned error: Permission
denied
....
...
..
.
Amongst this stuff is a line:
LOG FILE: "/var/log/sandbox/sandbox-20431.log"
which I think confirms my suspicions that something is wrong with my
sandbox as I also get this error when the email fails and just before
the failure hook, running alsaplayer, is run:
ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded
(cannot open shared object file): ignored.
Are there any emerge/sandbox gurus out there who might have an idea as
to what's going on? Any thoughts are greatly apreciated,
Andrew
[1] vlc won't play as root hence I tried alsaplayer