python3: add patch to fix --includes / --ldflags output of python3-config
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 20 Nov 2014 13:53:30 +0000 (14:53 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 22 Nov 2014 18:14:11 +0000 (19:14 +0100)
commitfbb8cbfdf4ef0be10d2e9b8e51cde98d2909a120
tree74a832dfaadae48d06124d7c45f77307b02e145c
parenta8998ae9c545f2fc262f9925f85835a92a86ee5c
python3: add patch to fix --includes / --ldflags output of python3-config

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.

Submitted upstream: http://bugs.python.org/issue22907

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python3/python3-017-python-config-include-libdir.patch [new file with mode: 0644]