summaryrefslogtreecommitdiffstats
path: root/Doc/using
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-09-27 05:45:06 (GMT)
committerBenjamin Peterson <benjamin@python.org>2017-09-27 05:45:06 (GMT)
commit14086cfc5eed8c5e78342d79e5db87a135d75fa8 (patch)
treede496547ead8046e677932ac396ffd8544bffef6 /Doc/using
parent31aca4bf79217e6ec4c1d056d3ad7ed4dd469c78 (diff)
downloadcpython-14086cfc5eed8c5e78342d79e5db87a135d75fa8.zip
cpython-14086cfc5eed8c5e78342d79e5db87a135d75fa8.tar.gz
cpython-14086cfc5eed8c5e78342d79e5db87a135d75fa8.tar.bz2
closes bpo-22140: Prevent double substitution of prefix in python-config.sh (#3769)
Fix the logic in python-config.sh to avoid attempting to substitute prefix in a variable that might have already been subject to substitution. This e.g. happened if @exec_prefix@ was defined as "${prefix}" (which is the default of the configure script) -- in which case the exec_prefix_build variable was initialized with already-subtituted prefix, and then another round of substitution was performed which might have resulted in duplicate prefix. To avoid that, rename the variables so that the variables matching likely configure names (prefix, exec_prefix) retain their original values and a '_real' suffix is used for the real values of prefix. Furthermore, replace the unnecessary prefix and exec_prefix substitutions with direct prefix_real references since the sed always replaced the whole string anyway by design.
Diffstat (limited to 'Doc/using')
0 files changed, 0 insertions, 0 deletions