Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317375 - games-sports/torcs-1.3.1 still fails plib detection with multiple sound devices
Summary: games-sports/torcs-1.3.1 still fails plib detection with multiple sound devices
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-26 20:28 UTC by Arttu Valo
Modified: 2010-04-26 23:16 UTC (History)
0 users

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


Attachments
config log showing the first sandbox violation (config.log,39.62 KB, text/plain)
2010-04-26 20:35 UTC, Arttu Valo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arttu Valo 2010-04-26 20:28:45 UTC
Bug #290839 solution added a sandbox workaround to torcs ebuild, "addpredict /dev/snd/controlC0". But it only works for controlC0 (sound device #0 control), while I also have controlC1, and in addition /dev/dsp gets scanned during the configuration run. From config.log:

configure:9429: $? = 0
configure:9435: ./conftest
AL lib: alsa.c:995: control open (0): Permission denied
ACCESS DENIED  open_wr:      /dev/snd/controlC1

And after fixing that the same for /dev/dsp:

ACCESS DENIED  open_wr:      /dev/dsp

My solution was to replace the single addpredict line with following:

        for i in /dev/snd/controlC? ; do addpredict $i ; done
        if [[ -e /dev/dsp ]] ; then addpredict /dev/dsp ; fi

(I also think that this might be the same as bug #307635 - but it is closed due to no requested extra info provided by the original reporter.)
Comment 1 Arttu Valo 2010-04-26 20:31:22 UTC
~ # emerge --info torcs
Portage 2.2_rc67 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.10.1-r1, 2.6.33-gentoo-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.33-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3500+-with-gentoo-1.12.13
Timestamp of tree: Sun, 25 Apr 2010 12:15:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8-sse3 -mmmx -msse -msse2 -msse3 -m3dnow -mfpmath=sse -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8-sse3 -mmmx -msse -msse2 -msse3 -m3dnow -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en fi"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java-overlay /var/lib/layman/science /var/lib/layman/qting-edge /var/lib/layman/kde /home/me/devel/ownportage"
SYNC="rsync://zerver/gentoo-portage"
USE="3dnow 3dnowext R X X509 a52 aac aalib abiword accessibility acl acpi ada agg akode akonadi alsa amd64 amd64codecs amr animgif ao aotuv apache2 apm assistant atmo audiofile avahi bazaar berkdb bidi bittorrent bl blas bluetooth bonjour boost bzip2 cairo caps cdaudio cdda cdio cdparanoia cdr chm clearcase cli clucene consolekit corba cpudetection cracklib crypt css cuda cups curl cvs cxx daap darcs dbus dga dia dirac directfb djvu docbook dot dri dts dv dvb dvd dvdr dvdread dvi ebook eds elf emf emovix enca encode exif expat faac faad fam fame ffmpeg fftw firefox flac fluidsynth fontconfig fontforge fortran fpx ftp fuse gadu galago gcrypt gd gdbm geoip ggi gif gimp git glib glitz gmm gmp gnome-keyring gnuplot gnutls gphoto2 gpm gps graphviz groupwise gs gsf gsm gstreamer gtk guile gzip h224 h281 h323 hal haskell hdri html ical icecast iconv icu id3tag idn ieee1394 ilbc imagemagick imap imlib imlib2 iodbc ipv6 irc irda jabber jack jai java java6 javascript jbig jimi jingle joystick jpeg jpeg2k kate kde kerberos keyring kipi kpathsea ladspa lame lapack lash lasi latex lcms ldap libass libcaca libnotify libproxy libsamplerate libtiger libv4l2 libwww lm_sensors log4j logrotate loop-aes lua lyx lzma lzo mad madwifi matroska mbrola md5sum meanwhile mercurial midi mikmod mime mjpeg mmap mmx mmxext mng modplug modules mono moonlight mozdevelop mp2 mp3 mp4 mpeg mplayer msn mtp mudflap multilib multimedia musepack mysql mzscheme nas ncurses nemesi netjack netmeeting netpbm networkmanager nfs nls nntp nptl nptlonly nsplugin nuv objc objc++ objc-gc ocaml octave odbc ogg openal openct openexr opengl openmp oscar oss otr pam pango pascal pcre pda pdf perforce perl phonon pkcs11 plasma plotutils png pnm policykit pop portaudio postgres postscript povray pppd ps pvr python q32 qalculate qq qt3 qt3support qt4 quicktime qwt radio radius rar raw rcs rdesktop rdp readline redland reflection rle rss rtf ruby samba sametime sasl scanner schroedinger scim sdl sdl-image seamonkey semantic-desktop servletapi session shout silc sip skype slang slp smartcard smi sms sndfile soap socks5 sound speex spell spl sql sqlite sqlite3 sse sse2 sse3 ssh ssl stream subversion svg swig sysfs syslog szip taglib tcl tcpd teletext tetex tga theora threads tiff timezone timidity tk transmitter truetype twolame udev unicode upnp usb v4l v4l2 vcd vcdinfo vcdx vdpau vdr vga video vnc vorbis vorbis-psy wav wavpack webdav webkit wifi winpopup wlm wma wmf wpd wpg x264 xanim xforms xine xml xmlpatterns xmp xorg xpm xprint xrandr xscreensaver xsl xslt xulrunner xv xvid xvmc yahoo yv12 zephyr zeroconf zip zlib zoran zvbi" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse virtualbox vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fi" LIRC_DEVICES="all" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy intel nv nvidia v4l vesa virtualbox"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

games-sports/torcs-1.3.1 was built with the following:
USE="(multilib)"
Comment 2 Arttu Valo 2010-04-26 20:35:19 UTC
Created attachment 229321 [details]
config log showing the first sandbox violation
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-04-26 21:07:47 UTC
The same fix needs to be applied to games-sports/speed-dreams too, then.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2010-04-26 23:16:09 UTC
fixed.