Public bug reported:
[Impact]
SConf is used in most SCons-based build systems, when building software
using SCons configure checks that output anything to stdout / stderr
fail.
[Test Case]
An example if provided in the upstream bug description:
https://bitbucket.org/scons/scons/pull-requests/127/fixed-
sconfstreamer-to-work-with-non/diff
Take the following script, save it as SConstruct and run scons:
def hello(target, source, env):
import traceback
try:
print 'hello!\n' # this breaks the script
with open(env.subst('$TARGET', target = target),'w') as f:
f.write('yes')
except:
# write to file, as stdout/stderr is broken
traceback.print_exc(file=open('traceback','w'))
return 0
def CheckHello(context):
import sys
context.Display('Checking whether hello works... ')
stat,out = context.TryAction(hello,'','.in')
if stat and out:
context.Result(out)
else:
context.Result('failed')
return out
env = Environment()
cfg = Configure(env)
cfg.AddTest('CheckHello', CheckHello)
cfg.CheckHello()
env = cfg.Finish()
If the package is broken, the check will fail:
$ scons
scons: Reading SConscript files ...
Checking whether hello works... failed
With the fixed package the check will succeed:
$ scons
scons: Reading SConscript files ...
Checking whether hello works... yes
[Regression Potential]
The patch was taken from the upstream bug tracker and is already in the
version shipped with the latest Ubuntu.
** Affects: scons (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1524058
Title:
Fix SConf.Streamer to work with non-unicode input on Python 2.x
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/scons/+bug/1524058/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs