[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-24 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a7bb2ef636a by Victor Stinner in branch '3.2': Issue #12070: Fix the Makefile parser of the sysconfig module to handle http://hg.python.org/cpython/rev/4a7bb2ef636a New changeset 98ff40ee0106 by Victor Stinner in branch 'default': (Merge 3.2) Issu

[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-24 Thread STINNER Victor
STINNER Victor added the comment: distutils.sysconfig has also a parse_makefile() function, but it doesn't have the bug. Attached patch fixes this issue: keep "bogus" variables unchanged and adds tests for _parse_makefile(). -- keywords: +patch versions: +Python 3.2 Added file: http:

[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-13 Thread STINNER Victor
STINNER Victor added the comment: Oh, the problem is that the prefix variable value is seen as "bogus" ($/home/haypo/...: $ is a typo made by me!) and the variable is removed from variables. But other variables depend on the prefix and so we have an unlimited loop. Possibles fixes: - raise

[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-13 Thread STINNER Victor
STINNER Victor added the comment: My OS is Debian Sid. Important note: I use LC_ALL=C and so ASCII locale encoding. -- ___ Python tracker ___ __

[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-13 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file21993/Makefile.loop ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-13 Thread STINNER Victor
New submission from STINNER Victor : $ ./python -c "import sysconfig; sysconfig._parse_makefile('Makefile.loop')" It loops on the following variables: 'DESTSHARED'='$(BINLIBDEST)/lib-dynload' 'INCLDIRSTOMAKE'='$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)' 'CONFINCLUDEPY'='$(CON