Package: balder2d Version: 1.0-1 Serverity: wishlist Tags: patch Ubuntu has begun to transition to python 2.6, and this package, as distributed, requires python 2.4. I am attaching a fix that debian may be interested in, that allows the program to build and run using python 2.6.
This patch has been tested with ubuntu, and works as expected. No known regressions or issues caused by applying this patch when using python 2.6 as the default python.
--- balder2d-1.0/bin/scripts/test/SConscript.orig 2009-03-04 02:08:28.889345969 -0330 +++ balder2d-1.0/bin/scripts/test/SConscript 2009-03-04 02:08:45.792355358 -0330 @@ -1,4 +1,4 @@ -env = Environment(CPPPATH='/usr/include/python2.4') +env = Environment(CPPPATH='/usr/include/python2.6') -env.Program('runtests', 'runtests.cpp', LIBS='python2.4') +env.Program('runtests', 'runtests.cpp', LIBS='python2.6') --- balder2d-1.0/SConstruct.orig 2009-03-04 03:34:15.408360339 -0330 +++ balder2d-1.0/SConstruct 2009-03-04 03:34:34.488360465 -0330 @@ -1,5 +1,5 @@ # SConstruct for building balder2d with scons -includepath = ['/usr/include/python2.4','include'] +includepath = ['/usr/include/python2.6','include'] env = Environment(CPPPATH=includepath) #avoid leaving .sconsign files all over the place, put all signatures in: env.SConsignFile("scons-signatures") @@ -10,7 +10,7 @@ import glob files = glob.glob("src/*.cpp") + glob.glob("src/*/*.cpp") + glob.glob("src/menu/*/*.cpp")+ glob.glob("src/*/*.c") -libs = Split('guichan_sdl guichan SDL_image SDL_mixer SDL_gfx python2.4 physfs') +libs = Split('guichan_sdl guichan SDL_image SDL_mixer SDL_gfx python2.6 physfs') env.ParseConfig('sdl-config --cflags --libs') env.Program('bin/balder2d',files, LIBS=libs)