Summary: | dev-python/pygame fails to compile on machines without X | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Robin Johnson <robbat2> |
Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | beowulfwork, ian, kayos, pacho |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
no-x11.patch
new epatch line in pygame-1.7.1.ebuild for the no-x11.patch |
Description
Robin Johnson
2005-04-17 22:17:00 UTC
hrmm, more upstream than us. there is no option in pygame to turn off X support, or so it seems. Same problem here :-( Really annoying when trying to build a media box on framebuffer. I only found one solution for the moment : add >=dev-python/pygame-1.6.1 to /etc/portage/package.mask... Same here. I also use 1.6 instead (which has some bugs of it own though) same problem here a solution is to enter #define DISABLE_X11 into /usr/include/SDL/SDL_syswm.h it then compiles withour x11 support Adding "=x11-themes/gdm-themes-2.0-r2" to /etc/portage/package.mask made it possible to make real "emerge world" upgrades instead of having to run emerge -p world and then cutnpaste all programs except gdm-themes. Could anyone provide any debugging-hints so that i can file a better bug-report? Have you tried with dev-python/pygame-1.7.1? Good luck! See above and get back to us, please. (In reply to comment #6) > Have you tried with dev-python/pygame-1.7.1? No luck, 1.7.1 behaves same as 1.6.1. I don't know anything about python, but is there a way to define DISABLE_X11 in the config file for pygame somehow?? That, and an 'X' use flag, would seem to make the most sense to me... I've been trying but i can't seem to figgure it out.. Oh yeah -- it still fails, this should probably be reopened.. Created attachment 124726 [details, diff]
no-x11.patch
This patch changes '!defined(DISABLE_X11)' which isn't used anywhere, to 'defined(SDL_VIDEO_DRIVER_X11)' which is enabled when SDL is built with X11 support.
Can be added to the ebuild with a standard epatch line.
Hi, it works for me... Would it be too much of a hassle to include the following lines into pygame-1.7.1.ebuild if ! use X; then cd "${S}" epatch "${FILESDIR}/no-x11.patch" fi This would avoid much confusion. Created attachment 145782 [details, diff]
new epatch line in pygame-1.7.1.ebuild for the no-x11.patch
This patch to the ebuild applies the other patch automatically if the X use flag is not set. Other solution could be, too look if libsdl was build with X
|