]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-136097: Fix sysconfig._parse_makefile() (#136166)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 4 Oct 2025 13:57:12 +0000 (16:57 +0300)
committerGitHub <noreply@github.com>
Sat, 4 Oct 2025 13:57:12 +0000 (14:57 +0100)
commit9e3542a6c26a849012216f5f754f16043d775c42
tree3d05f19412e8eab19201d5f53b804de1694f2f9c
parentae6e7f572c18d9183cb23e6e53c3324dd9bf0c64
gh-136097: Fix sysconfig._parse_makefile() (#136166)

* Fix potential infinite recursion.
* Fix a bug when reference can cross boundaries of substitutions, e.g.
  a=$(
  b=$(a)a)
* Fix potential quadratic complexity.
* Fix KeyError for undefined CFLAGS, LDFLAGS, or CPPFLAGS.
* Fix infinite recursion when keep_unresolved=False.
* Unify behavior with keep_unresolved=False for bogus $ occurred before
  and after variable references.
Lib/sysconfig/__main__.py
Lib/test/test_sysconfig.py
Misc/NEWS.d/next/Library/2025-07-01-14-44-03.gh-issue-136097.bI1n14.rst [new file with mode: 0644]