python-config.sh: don't reassign ${prefix}
authorMatt Weber <matthew.weber@rockwellcollins.com>
Wed, 18 Oct 2017 16:55:23 +0000 (11:55 -0500)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 5 Nov 2017 14:42:33 +0000 (15:42 +0100)
commit04d1699ba4cecaa77f688b4effbcac5e84419b15
tree0d089b4eb2258a3b35b9afe6c7008d25702b996d
parent0437d2f8f6ef8c10b529c154f4534453ce34607b
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>
package/python3/0029-python-config.sh-don-t-reassign-prefix.patch [new file with mode: 0644]