Thanks to visit codestin.com
Credit goes to github.com

Skip to content

config.py does not support some custom edits to mbedtls_config.h #10398

@borrrden

Description

@borrrden

Summary

config.py works in 3.6.3, but not 3.6.4 (scripting errors)

System information

Mbed TLS version (number or commit id): 3.6.4
Operating system and version: Any
Configuration (if not default, please attach mbedtls_config.h): n/a
Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
Additional environment information: Tested with python 3.8, 3.10, and 3.13

Expected behavior

config.py functions correctly

Actual behavior

Traceback (most recent call last):
  File ".\vendor\mbedtls\scripts\config.py", line 413, in <module>
    sys.exit(MbedTLSConfigTool().main())
  File ".\vendor\mbedtls\scripts\config.py", line 362, in __init__
    self.config = MbedTLSConfig(self.args.file)
  File ".\vendor\mbedtls\scripts\config.py", line 315, in __init__
    self.settings.update({name: config_common.Setting(configfile, active, name, value, section)
  File ".\vendor\mbedtls\scripts\config.py", line 315, in <dictcomp>
    self.settings.update({name: config_common.Setting(configfile, active, name, value, section)
  File "[...]\vendor\mbedtls\scripts\..\framework\scripts\mbedtls_framework\config_common.py", line 296, in parse_file
    setting = self._parse_line(line)
  File "[...]\vendor\couchbase-lite-core\vendor\mbedtls\scripts\..\framework\scripts\mbedtls_framework\config_common.py", line 285, in _parse_line
    m.group('define') + name +
TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'

Steps to reproduce

python scripts/config.py

Additional information

This is almost certainly caused by the migration to the "framework" submodule, which contains the actual config logic, while the top level config is in a separate repo (this one).

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions