This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Misc/python-config.sh.in: ensure sed invocations only match beginning of strings
Type: Stage:
Components: Cross-Build Versions: Python 3.4
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: peko
Priority: normal Keywords: patch

Created on 2014-11-20 13:00 by peko, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
0001-Misc-python-config.sh.in-ensure-sed-invocations-only.patch peko, 2014-11-20 13:00 patch fixing issue
Messages (1)
msg231427 - (view) Author: Peter Korsgaard (peko) Date: 2014-11-20 13:00
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.
History
Date User Action Args
2022-04-11 14:58:10adminsetgithub: 67096
2014-11-20 13:00:52pekocreate