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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22907>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to