Show
Ignore:
Timestamp:
11/08/17 02:45:42 (3 years ago)
Author:
jwoithe
Message:

Additional scons3 compatibility fixes (add implicit bytes/string conversions).

Within the scons scripts, some of the env[VAR] calls return bytes under
scons3. Implicit conversion of bytes to strings has been removed in python3
which necessitates the use of decode() in some instances which expect
strings to prevent type mismatch errors. This change does not affect
compatibility with scons2.

Thanks to Orcan Ogetbil for his scons3 tests and the patch (via the
ffado-devel mailing list).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/alsa/SConscript

    r2714 r2718  
    3838 
    3939if 'ALSA_FLAGS' in env and env['ALSA_FLAGS']: 
    40     env.MergeFlags( env["ALSA_FLAGS"]
     40    env.MergeFlags( env["ALSA_FLAGS"].decode()
    4141    env.MergeFlags( "-DPIC" ) 
    4242    alsaplugin = env.SharedLibrary( "asound_module_pcm_ffado", sources )