Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359079 - games-emulation/gcube-0.4-r1 require "joystick" use flag in libsdl
Summary: games-emulation/gcube-0.4-r1 require "joystick" use flag in libsdl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 19:54 UTC by Jeremy MANSON
Modified: 2011-03-15 20:18 UTC (History)
1 user (show)

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


Attachments
gcube-0.4-r2.ebuild (gcube-0.4-r2.ebuild,925 bytes, text/plain)
2011-03-15 19:54 UTC, Jeremy MANSON
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy MANSON 2011-03-15 19:54:20 UTC
Created attachment 266011 [details]
gcube-0.4-r2.ebuild

gcc -Wl,-O1 -Wl,--as-needed -march=k8 -O2 -pipe -msse3 -DDEFAULT_COLOR_MODE=1 ppc_disasm.o general.o config.o video_sdl.o audio_sdl.o cpu.o mem.o diskio.o hw.o hw_ai_dsp.o hw_cp.o hw_di.o hw_exi.o hw_gx.o hw_mi.o hw_pe.o hw_pi.o hw_si.o hw_vi.o hle.o hle_math.o hle_general.o gx.o gx_texture.o gx_transform.o gcube.o -o gcube `sdl-config --libs` -mno-windows -mcygwin -lz -lGL
video_sdl.o: In function `video_close':
video_sdl.c:(.text+0x366): undefined reference to `SDL_JoystickClose'
video_sdl.o: In function `video_init':
video_sdl.c:(.text+0x877): undefined reference to `SDL_NumJoysticks'
video_sdl.c:(.text+0x890): undefined reference to `SDL_JoystickClose'
video_sdl.c:(.text+0x8a4): undefined reference to `SDL_JoystickEventState'
video_sdl.c:(.text+0x8a9): undefined reference to `SDL_NumJoysticks'
video_sdl.c:(.text+0x8d0): undefined reference to `SDL_JoystickOpen'
collect2: ld returned 1 exit status
make: *** [gcube] Error 1
emake failed
 * ERROR: games-emulation/gcube-0.4-r1 failed (compile phase):
 *   died running emake, base_src_make
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2661:  Called games_src_compile
 *   environment, line 1488:  Called base_src_make
 *   environment, line  297:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "died running emake, $FUNCNAME";
 * 
 * If you need support, post the output of 'emerge --info =games-emulation/gcube-0.4-r1',
 * the complete build log and the output of 'emerge -pqv =games-emulation/gcube-0.4-r1'.
 * The complete build log is located at '/var/tmp/portage/games-emulation/gcube-0.4-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/gcube-0.4-r1/temp/environment'.
 * S: '/var/tmp/portage/games-emulation/gcube-0.4-r1/work/0.4'

>>> Failed to emerge games-emulation/gcube-0.4-r1, Log file:

>>>  '/var/tmp/portage/games-emulation/gcube-0.4-r1/temp/build.log'

 * Messages for package games-emulation/gcube-0.4-r1:

 * ERROR: games-emulation/gcube-0.4-r1 failed (compile phase):
 *   died running emake, base_src_make
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2661:  Called games_src_compile
 *   environment, line 1488:  Called base_src_make
 *   environment, line  297:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "died running emake, $FUNCNAME";
 * 
 * If you need support, post the output of 'emerge --info =games-emulation/gcube-0.4-r1',
 * the complete build log and the output of 'emerge -pqv =games-emulation/gcube-0.4-r1'.
 * The complete build log is located at '/var/tmp/portage/games-emulation/gcube-0.4-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/gcube-0.4-r1/temp/environment'.
 * S: '/var/tmp/portage/games-emulation/gcube-0.4-r1/work/0.4'


reproduce the bug :

USE="-joystick" emerge libsdl ; emerge gcube
Comment 1 Rafał Mużyło 2011-03-15 20:10:51 UTC
'joystick' is among libsdl flags that are on by default and the ebuild gives a firm warning about disabling them.

Still, adding a usedep isn't that hard.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2011-03-15 20:18:50 UTC
fixed.  thanks for the bug report.