"need string or buffer, list found" build bug

2008-07-02
2013-04-17
  • Trying to build 0.5.7 on CentOS 5.2 I get this:

    Chmod("[<SCons.Node.FS.File instance at 0xb7a30f4c>]", 0755)
    scons: *** [/var/tmp/wlassistant-0.5.7-4-root-root/usr/bin/wlassistant] Exception
    Traceback (most recent call last):
      File "/usr/lib/scons-0.98.5/SCons/Taskmaster.py", line 222, in execute
        self.targets[0].build()
      File "/usr/lib/scons-0.98.5/SCons/Node/__init__.py", line 372, in build
        apply(self.get_executor(), (self,), kw)
      File "/usr/lib/scons-0.98.5/SCons/Executor.py", line 145, in __call__
        return self.do_execute(target, kw)
      File "/usr/lib/scons-0.98.5/SCons/Executor.py", line 131, in do_execute
        status = apply(act, (self.targets, self.get_sources(), env), kw)
      File "/usr/lib/scons-0.98.5/SCons/Action.py", line 468, in __call__
        stat = self.execute(target, source, env)
      File "/usr/lib/scons-0.98.5/SCons/Action.py", line 846, in execute
        result = self.execfunction(target=target, source=rsources, env=env)
      File "/usr/lib/scons-0.98.5/SCons/Action.py", line 991, in __call__
        return apply(self.parent.actfunc, args, kw)
    TypeError: coercing to Unicode: need string or buffer, list found
    scons: building terminated because of errors.
    make: *** [install] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.1992 (%install)

    Debian seems to have had the same problem for a long time, see
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456834

    Other packages run into this too, e.g. skim. The fix seems dead easy if you know where in the code the error is caused:
    https://bugs.launchpad.net/ubuntu/+source/skim/+bug/187863
    http://launchpadlibrarian.net/11970309/kubuntu_03_fix_scons_chmod_error.patch

    Any chance of a fix?

    Z

     
    • Nick Borisov
      Nick Borisov
      2009-06-10

      Hi!

      Sure, let me check it.