Summary: | patch for games-board/pouetchess-0.2.0-r1: LibSDL headers are required for this program | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Steve Pedersen <stevep86> |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | orzel |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Adds generic x86_64 support for pouetChess.
truncates 'cute' cpu detection |
Description
Steve Pedersen
2008-06-30 04:44:07 UTC
Created attachment 158909 [details, diff]
Adds generic x86_64 support for pouetChess.
(My first patch)
Ug. The code in there that tries to be cute and figure out the CXXFLAGS by looking at /proc/cpuinfo should be ditched althogether. The users' CXXFLAGS should just be used directly. I'd take a patch for that, but not more crap on top of the pile that's there already. Actually, portage substitutes the CXXFLAGS after the configuration is complete. This was just the least intrusive method (i could think of) to make configuration successful. I guess i could write a patch which ditches the detection, but it would be a lot bigger.. same problem here : the SDL.h is not found although present, and scons thinks i'm on x86, while i'm on ppc : ...... Detecting processor... Couldn't detect your CPU, guessing i686 compatible.. Checking for SDL... Checking for sdl-config... /usr/bin/sdl-config Checking for LibSDL >= 1.2.8... 1.2.13 Checking for C header file SDL.h... no Checking for C header file SDL/SDL.h... no Checking for C header file SDL11/SDL.h... no LibSDL headers are required for this program * * ERROR: games-board/pouetchess-0.2.0-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2267: Called die * The specific snippet of code: * scons configure strip=false prefix="${GAMES_PREFIX}" datadir="${GAMES_DATADIR}"/${PN} $(use debug && echo debug=1) || die "scons configure failed"; * The die message: * scons configure failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/environment'. * * Messages for package games-board/pouetchess-0.2.0-r1: * * ERROR: games-board/pouetchess-0.2.0-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2267: Called die * The specific snippet of code: * scons configure strip=false prefix="${GAMES_PREFIX}" datadir="${GAMES_DATADIR}"/${PN} $(use debug && echo debug=1) || die "scons configure failed"; * The die message: * scons configure failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/environment'. * colibri ~ # ls -l /usr/include/SDL/SDL.h -rw-r--r-- 1 root root 3133 May 26 14:09 /usr/include/SDL/SDL.h resync and try it again without the silly cflags setting code being run. Created attachment 160707 [details, diff]
truncates 'cute' cpu detection
It still won't obey my LDFLAGS, and it passes both CFLAGS & CXXFLAGS.
I'm just not good enough to crack all of this. (I might've tried if SCons was fully documented.. --And I didn't just become a dad!)
Please double-check, Mr. Bones.
Comment on attachment 160707 [details, diff]
truncates 'cute' cpu detection
It still won't obey my LDFLAGS, and it passes both CFLAGS & CXXFLAGS.
I'm just not good enough to crack all of this. (I might've tried if SCons was
fully documented.. -- And if I didn't just become a dad!)
Please double-check, Mr. Bones.
The problem has been fixed by mr_bones on 17-Jul-08 |