[New-bugs-announce] [issue22907] Misc/python-config.sh.in: ensure sed invocations only match beginning of strings

Peter Korsgaard report at bugs.python.org
Thu Nov 20 14:00:52 CET 2014


New submission from Peter Korsgaard:

The build/real prefix handling using sed breaks if build != real and the
standard include / lib directories are used ($prefix/include and $prefix/lib).

E.G.

prefix_build="/usr", libdir="$prefix/lib", includedir="$prefix/include".

If this gets installed with make DESTDIR="/foo" install, then we end up with prefix_real = prefix = "/foo/usr" as expected, but
includedir="/foo/foo/usr/include" and libdir="/foo/foo/usr/lib" because of the double sed invocation (prefix is already expanded).  Work around it by ensuring we only match the beginning of the string.

----------
components: Cross-Build
files: 0001-Misc-python-config.sh.in-ensure-sed-invocations-only.patch
keywords: patch
messages: 231427
nosy: peko
priority: normal
severity: normal
status: open
title: Misc/python-config.sh.in: ensure sed invocations only match beginning of strings
versions: Python 3.4
Added file: http://bugs.python.org/file37234/0001-Misc-python-config.sh.in-ensure-sed-invocations-only.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22907>
_______________________________________


More information about the New-bugs-announce mailing list