Incompatibility with Python 2.6

Bug #348896 reported by der_vegi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scons (Ubuntu)
Invalid
Undecided
Unassigned
widelands (Ubuntu)
Fix Released
Undecided
Andrew Starr-Bochicchio

Bug Description

Binary package hint: scons

When I try to build Widelands (widelands.org) from source, it does not work with Python 2.6, I get the following error:

Checking for a working C++ compiler ... no
Can't even compile the simplest C++ program! Your setup is beyond broken. Repair it, then try again.

Looking at build/config.log shows me:

g++ -o build/sconf_temp/conftest_0.o -c - D N O P A R A C H U T E - D D E B U G -Ibuild/native-debug build/sconf_temp/conftest_0.cc
g++: D: No such file or directory
g++: N: No such file or directory
g++: O: No such file or directory
g++: P: No such file or directory
etc.

Changing the symlink /usr/bin/python to python2.5 solves the problem.
It looks like there have been bug reports about scons failing with python2.6 before and that this should be fixed by now, but in this case it isn't.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: scons 1.2.0-1ubuntu1
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 LANG=de_DE.UTF-8
SourcePackage: scons
Uname: Linux 2.6.28-11-generic x86_64

Related branches

Revision history for this message
der_vegi (m-may) wrote :
Revision history for this message
John Pye (jdpipe) wrote :

have you done something like

env['CPPDEFINES'] += "-DNOPARACHUTE"

when you should have written

env['CPPDEFINES'] += ["-DNOPARACHUTE"]

perhaps?

Revision history for this message
der_vegi (m-may) wrote :

Well, I have not written any of this source code... *g

There are indeed lines like
'build/scons-tools/scons_configure.py: env.Append(CCFLAGS='-DNOPARACHUTE')'

So if this different behaviour in python 2.6 compared to 2.5 is intended, this is a problem of the widelands source and I could file a bug report there.?

Revision history for this message
der_vegi (m-may) wrote :

Okay, this issue is somehow fixed. The widelands devs changed something in their scons handling and now compiling works with Python 2.6, as well. Closing.

Changed in scons (Ubuntu):
status: New → Invalid
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

While this isn't an issue with scons, it is still present in the version of widelands in Karmic, resulting in it to FTBFS.

Changed in widelands (Ubuntu):
assignee: nobody → Andrew Starr-Bochicchio (andrewsomething)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package widelands - 1:13-2ubuntu1

---------------
widelands (1:13-2ubuntu1) karmic; urgency=low

  * debian/rules:
   - Add localedir and build_id flags.
   - Call scons directly inorder to use the system version not
     the bundled copy.
  * debian/patches/python2.6transition.dpatch:
   - Patch env.Append() lines in build/scons_configure.py to
     work with python 2.6 (LP: #348896).
  * debian/control: Build-Depend on scons.

 -- Andrew Starr-Bochicchio <email address hidden> Mon, 17 Aug 2009 22:34:03 -0400

Changed in widelands (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.