Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 459360 - games-fps/worldofpadman depends on "media-libs/libsdl [X]"
Summary: games-fps/worldofpadman depends on "media-libs/libsdl [X]"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-26 20:27 UTC by Michael Mair-Keimberger (iamnr3)
Modified: 2015-02-08 22:46 UTC (History)
1 user (show)

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 Michael Mair-Keimberger (iamnr3) 2013-02-26 20:27:10 UTC
Summary says it all.

If libsdl isn't build with "X" following error will show up:

WoP 1.6  (ioq3 r2140M) linux-x86_64 Feb 26 2013
Have SSE support
----- FS_Startup -----
Current search path:
/home/michael/.padman/wop
/usr/share/games/worldofpadman/wop
/usr/share/games/worldofpadman/wop/wop_006.pk3 (582 files)
/usr/share/games/worldofpadman/wop/wop_005.pk3 (3224 files)
/usr/share/games/worldofpadman/wop/wop_004.pk3 (798 files)
/usr/share/games/worldofpadman/wop/wop_003.pk3 (296 files)
/usr/share/games/worldofpadman/wop/wop_002.pk3 (1903 files)
/usr/share/games/worldofpadman/wop/wop_001.pk3 (534 files)

----------------------
7337 files in pk3 files
execing default.cfg
couldn't exec wopconfig.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok
----- Client Initialization -----
Couldn't read wophistory.
----- Initializing Renderer ----
-------------------------------
QKEY building random string
QKEY generated
----- Client Initialization Complete -----
----- R_Init -----
SDL_Init( SDL_INIT_VIDEO ) FAILED (No available video device)
SDL_Init( SDL_INIT_VIDEO ) FAILED (No available video device)
Setting r_mode 2 failed, falling back on r_mode 0
SDL_Init( SDL_INIT_VIDEO ) FAILED (No available video device)
----- Client Shutdown (Client fatal crashed: GLimp_Init() - could not load OpenGL subsystem) -----
RE_Shutdown( 1 )
Hunk_Clear: reset the hunk ok
-----------------------
GLimp_Init() - could not load OpenGL subsystem


Probalby other ioq3 games needs this too...?



Portage 2.1.11.52 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.16.0, 3.8.0-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.0-gentoo-x86_64-AMD_FX-tm-8150_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:     7471800 total,   2688140 free
KiB Swap:    8388600 total,   8388600 free
Timestamp of tree: Sat, 23 Feb 2013 05:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo x-local sunrise gamerlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver1 -mno-movbe -mno-fma -mno-bmi -mno-tbm -mpopcnt --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=bdver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=bdver1 -mno-movbe -mno-fma -mno-bmi -mno-tbm -mpopcnt --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=bdver1"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/media/public/overlays/local /media/public/overlays/layman/sunrise /media/public/overlays/layman/gamerlay"
SYNC="rsync://192.168.2.60/gentoo-portage"
USE="acl alsa amd64 avx berkdb bzip2 cli consolekit cracklib crypt cups cxx dbus dri exif fftw flac fortran gallium gdbm gif gpm graphite iconv icu ipv6 jabber jpeg kde kipi lzma mad mmx mmxext modules mp3 mp4 mudflap multilib ncurses nls nptl opengl openmp pam pcre phonon png policykit qt4 readline sdl semantic-desktop session sip sse sse2 sse3 sse4_1 ssl ssse3 svg tcpd threads tiff truetype unicode v4l2 vorbis vpx webp x264 xcb xinerama xv zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="krita sheets words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="r600 radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

media-libs/libsdl-1.2.15-r2 was built with the following:
USE="X alsa audio joystick (multilib) opengl video xinerama xv -aalib -custom-cflags -dga -directfb -fbcon -ggi -libcaca -nas -oss (-ps3) -pulseaudio -static-libs (-svga) -tslib" ABI_X86="64"
CFLAGS="-O2 -pipe -march=bdver1 -mno-movbe -mno-fma -mno-bmi -mno-tbm -mtune=bdver1"
CXXFLAGS="-O2 -pipe -march=bdver1 -mno-movbe -mno-fma -mno-bmi -mno-tbm -mtune=bdver1"
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-02-08 17:21:17 UTC
I think this one actually requires [video] not [X] :). Also check if other flags like audio are not needed.
Comment 2 Michael Mair-Keimberger (iamnr3) 2015-02-08 17:29:41 UTC
I'll gonna test it and report back - will take some time.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2015-02-08 18:16:59 UTC
Needs video and opengl so I added those.  Reopen if you find it needs X.
Comment 4 Michael Mair-Keimberger (iamnr3) 2015-02-08 22:29:43 UTC
Sorry for reopening, but [opengl,video] doesn't seem to be enough.

Below all combination's i've testet today. For me libsdl has to be build with "X" support:

default:
libsdl[alsa,joystick,opengl,sound,video,xinerama] -> don't work
various combinations:
libsdl[opengl,video]                              -> don't work
libsdl[X]                                         -> don't work
libsdl[X,opengl]                                  -> don't work
libsdl[X,video]                                   -> don't work
libsdl[X,opengl,video]                            -> works


for audio, sound & alsa flags are also needed
libsdl[X,video,opengl,sound]                      -> works (no audio)
libsdl[X,video,opengl,alsa]                       -> works (no audio)
libsdl[X,video,opengl,alsa,sound]                 -> works (with audio)

I suggest adding media-libs/libs[X,video,opengl,alsa,sound] as dependency!
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-02-08 22:34:16 UTC
Shouldn't video come with REQUIRED_USE telling you to enable one of the drivers?
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2015-02-08 22:46:40 UTC
great, thanks for testing.  I added the X use dep.

The rest is optional so we don't force people to turn them on.

In fact, probably X is probably is even too far but I'll force it for now until someone with really bizarre video taste complains.