From 70cf72055587f45bbfb82c536f0937adb5e212ca Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 13 Jul 2020 14:47:35 -0400 Subject: [PATCH 1/2] python-PyQt5-webengine: mark nocross due to broken package configure script --- srcpkgs/python-PyQt5-webengine/template | 41 ++++++------------------- 1 file changed, 10 insertions(+), 31 deletions(-) diff --git a/srcpkgs/python-PyQt5-webengine/template b/srcpkgs/python-PyQt5-webengine/template index 3a925a224e9..d11a226bc04 100644 --- a/srcpkgs/python-PyQt5-webengine/template +++ b/srcpkgs/python-PyQt5-webengine/template @@ -1,14 +1,11 @@ # Template file for 'python-PyQt5-webengine' pkgname=python-PyQt5-webengine version=5.13.2 -revision=2 +revision=3 wrksrc="PyQtWebEngine-${version}" -pycompile_module="PyQt5WebEngine" -hostmakedepends="pkg-config qt5-qmake - qt5-declarative-devel qt5-webchannel-devel qt5-location-devel - python-devel python3-devel python-PyQt5-devel - qt5-webengine-devel" -makedepends="${hostmakedepends/pkg-config/}" +hostmakedepends="pkg-config qt5-qmake python python-PyQt5 python3-PyQt5" +makedepends="qt5-declarative-devel qt5-webchannel-devel qt5-location-devel + qt5-webengine-devel python-devel python3-devel python-PyQt5-devel" depends="python-PyQt5-${version}_${revision} python-PyQt5-webchannel-${version}_${revision}" short_desc="Python2 bindings for the Qt5 toolkit - webengine module" maintainer="Alessio Sergi " @@ -17,6 +14,7 @@ homepage="https://www.riverbankcomputing.com/software/pyqtwebengine/intro" distfiles="https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/${version}/PyQtWebEngine-${version}.tar.gz" checksum=4264911b5847c75721d8c9c30af92e58a216bd25ceef37f7abf921005c1d45a9 lib32disabled=yes +nocross="file-based configuration mechanism is broken" case "$XBPS_TARGET_MACHINE" in ppc64le*) ;; @@ -34,34 +32,15 @@ pre_build() { } do_build() { - local _sysroot= _configuration= py_abiver= qt_version for pyver in $py2_ver $py3_ver; do - if [ "$pyver" = "$py3_ver" ]; then - py_abiver="$py3_abiver" - fi - cd $wrksrc/pyqt5-$pyver - if [ "$CROSS_BUILD" ]; then - qt_version=$(qmake -query QT_VERSION) -cat > pyqt5_${XBPS_CROSS_TRIPLET}.cfg < Date: Mon, 13 Jul 2020 14:53:01 -0400 Subject: [PATCH 2/2] qutebrowser: disable webengine for cross builds python3-PyQt5-webengine is nocross because its configure script is broken for anything but native builds. Better to have a current qutebrowser that uses -webkit than a stale package with old -webengine. --- srcpkgs/qutebrowser/template | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srcpkgs/qutebrowser/template b/srcpkgs/qutebrowser/template index 6c0d25a4d7b..848546131d5 100644 --- a/srcpkgs/qutebrowser/template +++ b/srcpkgs/qutebrowser/template @@ -2,7 +2,7 @@ # not noarch as the package might be built with different backend for each arch pkgname=qutebrowser version=1.13.0 -revision=1 +revision=2 build_style=python3-module hostmakedepends="python3-setuptools asciidoc" depends="python3-PyQt5-quick python3-Jinja2 python3-Pygments python3-pyPEG2 @@ -21,7 +21,10 @@ build_options="webengine" desc_option_webengine="Build Qt5 WebEngine support" if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then - if [ "$XBPS_TARGET_WORDSIZE" = "$XBPS_WORDSIZE" ]; then + # qt5-webengine is only available for little-endian systems + if [ "$XBPS_TARGET_WORDSIZE" = "$XBPS_WORDSIZE" -a -z "$CROSS_BUILD" ]; then + # qt5-webengine can only be built when target and host bitness match + # python3-PyQt5-webengine is currently nocross build_options_default="webengine" fi fi