package/x11r7/libxcb: Use host-python3 instead of host-python(2)
authorTitouan Christophe <titouanchristophe@gmail.com>
Sun, 24 Jan 2021 10:57:36 +0000 (11:57 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 24 Jan 2021 16:08:22 +0000 (17:08 +0100)
Signed-off-by: Titouan Christophe <titouanchristophe@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/x11r7/libxcb/libxcb.mk

index fb691c24223dde886427686eca775e7d8552ff30..9a35a7299587c4fcdc1225b7914f01297a7cfee6 100644 (file)
@@ -14,17 +14,17 @@ LIBXCB_INSTALL_STAGING = YES
 
 LIBXCB_DEPENDENCIES = \
        host-libxslt xcb-proto xlib_libXdmcp xlib_libXau \
-       host-xcb-proto host-python host-pkgconf
+       host-xcb-proto host-python3 host-pkgconf
 HOST_LIBXCB_DEPENDENCIES = \
        host-libxslt host-xcb-proto host-xlib_libXdmcp \
-       host-xlib_libXau host-python host-pkgconf
+       host-xlib_libXau host-python3 host-pkgconf
 
 LIBXCB_CONF_OPTS = --with-doxygen=no
 HOST_LIBXCB_CONF_OPTS = --with-doxygen=no
 
-# libxcb is not python3 friendly, so force the python interpreter
-HOST_LIBXCB_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/bin/python2
-LIBXCB_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/bin/python2
+# Force detection of Buildroot host-python3 over system python
+LIBXCB_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/bin/python3
+HOST_LIBXCB_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/bin/python3
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))