Bug 223997 - x11-misc/gaia build fails with scons-0.98.3
Bug#: 223997 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P3
Resolution: FIXED Assigned To: fauli@gentoo.org Reported By: coldwind@gentoo.org
Component: Ebuilds
URL: 
Summary: x11-misc/gaia build fails with scons-0.98.3
Keywords:  
Status Whiteboard: 
Opened: 2008-05-28 20:49 0000
Description:   Opened: 2008-05-28 20:49 0000
x11-misc/gaia-0.1.2 fails to build with dev-util/scons-0.98.3:

[ $ ~/dev/gaia-0.1.2  ] scons use_env=yes
scons: Reading SConscript files ...
TypeError: coercing to Unicode: need string or buffer, dict found:
  File "/home/coldwind/dev/gaia-0.1.2/SConstruct", line 28:
    env = Environment( options = opts )
  File "/usr/lib64/scons-0.98.3/SCons/Environment.py", line 916:
    variables.Update(self)
  File "/usr/lib64/scons-0.98.3/SCons/Variables/__init__.py", line 165:
    if os.path.exists(filename):
  File "/usr/lib64/python2.5/posixpath.py", line 171:
    st = os.stat(path)

------- Comment #1 From Santiago M. Mola 2008-05-28 20:51:45 0000 -------
Created an attachment (id=154623) [details]
02_scons_args.patch

Patch from Debian. It's backwards compatible with, at least, scons 0.97.

There's a deprecation warning which may be worth to fix too:
scons: warning: The env.Copy() method is deprecated; use the env.Clone() method
instead.

------- Comment #2 From Christian Faulhammer 2008-05-29 12:06:39 0000 -------
Thanks for your patch.  Fixed.  Still works with 0.97 and exchanged that
deprecated env.Copy() with env.Clone()