Skip to contentSkip to conversation

package/python-pyqt5: Fix per-package build

Buildroot Peter Korsgaard 1 participant 1 message Jan 26, 2022

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=eed125b1ca46965f43ffe699b3c307ab496c0835
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.02.x

pyqt5 uses qmake internally, but is python package rather than a qmake package. Therefore, we need to manually apply the same fixup as for qmake packages.

Without this, top-level parallel build may fail because dependencies are looked for in the qt5 per-package staging directory instead of the python-pyqt5 one.

(cherry picked from commit 51c22b4ba905f8e0a0f75189715eab628cefab6c)
---
 package/python-pyqt5/python-pyqt5.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/python-pyqt5/python-pyqt5.mk +5 -0
index 8f28c90d15..b05043563e 100644
@@ -152,6 +152,11 @@ define PYTHON_PYQT5_GENERATE_QTDETAIL
 	)
 endef
 
+# The file "qt.conf" can be used to override the hard-coded paths that are
+# compiled into the Qt library. We need it to make "qmake" relocatable and
+# tweak the per-package install pathes
+PYTHON_PYQT5_PRE_CONFIGURE_HOOKS += QT5_QT_CONF_FIXUP
+
 PYTHON_PYQT5_CONF_OPTS = \
 	--bindir $(TARGET_DIR)/usr/bin \
 	--destdir $(TARGET_DIR)/usr/lib/$(PYTHON_PYQT5_PYTHON_DIR)/site-packages \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot