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

Bug 659226

Summary: =dev-util/scons-3.0.1-r100: TryRun+CacheDir broken with Python 3
Product: Gentoo Linux Reporter: Hector Martin <marcan>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://pairlist4.pair.net/pipermail/scons-users/2018-June/007074.html
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 658052    

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.