qt5 packages: set correct PATH when running qmake
authorThomas De Schampheleire <patrickdepinguin@gmail.com>
Wed, 19 Mar 2014 19:30:06 +0000 (20:30 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 26 Mar 2014 16:04:49 +0000 (17:04 +0100)
commitb923fdffdd77bccef2822748a2adcb9a04a1f1fa
tree95c7f58e9196e9d28ae36052d0d01e7710b3e8c0
parent205839d085508b83d9437f2fbe002ef076aa0cdb
qt5 packages: set correct PATH when running qmake

The qmake step of qt5 packages may attempt to run pkg-config. If qmake is
executed in an environment where the buildroot host directory is not in
PATH, pkg-config from the build machine may be used (/usr/bin/pkg-config).
This causes qt5 package compilation to fail on machines that do not have
pkg-config installed.
Refer to mailing list thread [1] for a specific error case.

This patch prepends TARGET_MAKE_ENV (which sets PATH) to the qmake call.

Reported-by: Marco Trapanese <marcotrapanese@gmail.com>
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
[1] http://lists.busybox.net/pipermail/buildroot/2014-March/092283.html
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
13 files changed:
package/qt5/qt5connectivity/qt5connectivity.mk
package/qt5/qt5declarative/qt5declarative.mk
package/qt5/qt5graphicaleffects/qt5graphicaleffects.mk
package/qt5/qt5imageformats/qt5imageformats.mk
package/qt5/qt5multimedia/qt5multimedia.mk
package/qt5/qt5quick1/qt5quick1.mk
package/qt5/qt5quickcontrols/qt5quickcontrols.mk
package/qt5/qt5script/qt5script.mk
package/qt5/qt5sensors/qt5sensors.mk
package/qt5/qt5serialport/qt5serialport.mk
package/qt5/qt5svg/qt5svg.mk
package/qt5/qt5x11extras/qt5x11extras.mk
package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk