Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257979 - games-strategy/freeciv-2.1.8: USE="alsa" fails to build alsa plugin (no sound)
Summary: games-strategy/freeciv-2.1.8: USE="alsa" fails to build alsa plugin (no sound)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-07 03:53 UTC by Boney McCracker
Modified: 2009-02-07 05:30 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 Boney McCracker 2009-02-07 03:53:05 UTC
On a system with working alsa sound, could not get freeciv to make sounds.  Freeciv ebuild appears to be set up to rely upon some sort of autodetection I do not pretend to understand, but it doesn't seem to have worked for me.

Thank you for your time.

Reproducible: Always

Steps to Reproduce:
1. On an x86 lacking esd, sdl, or sound support other than alsa... 
2. Emerge freeciv with USE="alsa gtk nls readline -Xaw3d -auth -dedicated -esd -sdl"
3. Start civclient
4. Note there is no sound.
5. Open 'local options' and try to select a sound plugin; no there are no sound plugins listed to choose from.
6. Edit ~/.civclientrc and note the line:

     default_sound_plugin_name=""

7.  Edit that line to read:

     default_sound_plugin_name="alsa"

8.  Restart the game.

9.  Note that there is still no sound, although "alsa" is now listed as the selected sound plugin.

10.  Review freeciv-2.1.8.ebuild.  Note the lines:

        #FIXME --enable-{alsa,esd,sdl-mixer} actually disable them...
        #FIXME   ==> use --disable-* only, and autodetect to enable.
        use alsa || mysoundconf="${mysoundconf} --disable-alsa"
        use esd || mysoundconf="${mysoundconf} --disable-esd"
        use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer"

Wonder ignorantly what exactly that's all about and why said autodetection isn't resulting in the game producing sounds, which appears to be the intent.
Actual Results:  
Not able to get sound working (although it works on other machines with esd).

Expected Results:  
Would like to be able to get sound working with just alsa, without having to run a sound daemon.

~ # emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-i686-Intel-R-_Pentium-R-_4_CPU_1400MHz-with-glibc2.0
Timestamp of tree: Fri, 06 Feb 2009 07:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fforce-addr -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fforce-addr -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo http://gentoo.osuosl.org/ http://open-systems.ufl.edu/mirrors/gentoo "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--hash-style=gnu"
LINGUAS="en_US en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa berkdb bzip2 caps cdr cli cracklib crypt dbus dri dvd exif ffmpeg gdbm gif gpm gtk hal iconv java jpeg lcms midi mmx mudflap ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre perl png python readline reflection session spl sse sse2 ssl sysfs tiff truetype unicode win32codecs x86 xorg xulrunner zlib" ALSA_CARDS="emu10k1" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Boney McCracker 2009-02-07 05:30:12 UTC
When I start the client from the command line:

~ $ civclient
2: No real audio plugin present.
2: Proceeding with sound support disabled
2: For sound support, install SDL_mixer
2: http://www.libsdl.org/projects/SDL_mixer/index.html

When I try to enable real audio support in the only packages on my system that respect that USE flag (mplayer and win32codecs), I find it is forcibly masked (as in " (-real) " ).

Looking at the ebuilds, I see that USE="real" has been disabled and support moved to a separate ebuild: media-libs/realcodecs.  That ebuild was masked in November:

# Steve Dibb <beandog@gentoo.org> (5 Nov 2008)
# Mask realplayer, real codecs for security, upstream issues, bug 245662
# http://forums.gentoo.org/viewtopic-t-713051.html

I've read the bug and thread.  And this bug is invalid.  Sorry for wasting anybody's time who actually read it.


245662