]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
python-config.sh: don't reassign ${prefix}
authorMatt Weber <matthew.weber@rockwellcollins.com>
Wed, 18 Oct 2017 16:55:23 +0000 (11:55 -0500)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 26 Nov 2017 19:57:06 +0000 (20:57 +0100)
commitfb2f02ebaf76dfc4405deb9b5983d601392faafa
treef8319e9da847cab7295f6183c9348f1061cb1d19
parent1ecf38cb2fa82ccbfdcb60fd4115e494feda2733
python-config.sh: don't reassign ${prefix}

When prefix is set to a path like /usr during crossbuild
the sed operations end up executing twice, once for the prefix
reassignment and another for includedir if it is set as a string
including the ${prefix} variable.  This results in an issue
when the build directory is under /usr.

This patch updates the remaining location which uses the prefix
variable to also sed and update to use the real path.

Upstream bug report:
https://bugs.python.org/issue31713

Buildroot bug:
https://bugs.busybox.net/show_bug.cgi?id=10361

Fixes failures like the following:
dbus-python-1.2.4 | NOK | http://autobuild.buildroot.net/results/758858efa97b6273c1b470513f5492258a6d8853

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
[Arnout: refer to autobuild failures that still exist]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(cherry picked from commit 04d1699ba4cecaa77f688b4effbcac5e84419b15)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/python3/0029-python-config.sh-don-t-reassign-prefix.patch [new file with mode: 0644]