Fix SConf.Streamer to work with non-unicode input on Python 2.x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
scons (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Low
|
Unassigned |
Bug Description
[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:/
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.
except:
# write to file, as stdout/stderr is broken
return 0
def CheckHello(
import sys
context.
stat,out = context.
if stat and out:
else:
return out
env = Environment()
cfg = Configure(env)
cfg.
cfg.
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.
tags: | added: patch trusty |
Changed in scons (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Please find the debdiff attached!