Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 223997

Summary: x11-misc/gaia build fails with scons-0.98.3
Product: Gentoo Linux Reporter: Santiago M. Mola (RETIRED) <coldwind>
Component: New packagesAssignee: Christian Faulhammer (RETIRED) <fauli>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 02_scons_args.patch

Description Santiago M. Mola (RETIRED) gentoo-dev 2008-05-28 20:49:33 UTC
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 Santiago M. Mola (RETIRED) gentoo-dev 2008-05-28 20:51:45 UTC
Created attachment 154623 [details, diff]
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 Christian Faulhammer (RETIRED) gentoo-dev 2008-05-29 12:06:39 UTC
Thanks for your patch.  Fixed.  Still works with 0.97 and exchanged that deprecated env.Copy() with env.Clone()