Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659226 - =dev-util/scons-3.0.1-r100: TryRun+CacheDir broken with Python 3
Summary: =dev-util/scons-3.0.1-r100: TryRun+CacheDir broken with Python 3
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL: https://pairlist4.pair.net/pipermail/...
Whiteboard:
Keywords:
Depends on:
Blocks: 658052
  Show dependency tree
 
Reported: 2018-06-26 10:47 UTC by Hector Martin
Modified: 2020-06-21 06:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hector Martin 2018-06-26 10:47:42 UTC
Minimal reproducer:

======
CacheDir('objects')

env = Environment()

def CompilerCheck(context):
    context.Message("Checking for a working C compiler ")
    ret = context.TryRun("int a;\n", '.c' )[0]
    context.Result(ret)
    if ret == 0:
        return False

conf = Configure(Environment(),
                 custom_tests = {"CompilerCheck" : CompilerCheck})

conf.CompilerCheck()
======

I've traced this down to mixing of bytes/str in Node.FS.File.get_cachedir_bsig and reported it upstream to scons-users. Opening this bug to track it on the Gentoo side.
Comment 1 Hector Martin 2020-06-21 06:09:52 UTC
Can no longer repro, presumably upstream fixed this at some point.