aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-06-14 13:39:45 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2022-06-14 20:20:52 +0200
commitdfaa1f6e860d5bcf3ab1d9a930baedae1bdb6d73 (patch)
tree1d911a433abdb083f7e76d36e2186406af7d265c /eclass
parentqt5-build.eclass: Support future double-digit Qt-5.15 patch releases (diff)
downloadqt-dfaa1f6e860d5bcf3ab1d9a930baedae1bdb6d73.tar.gz
qt-dfaa1f6e860d5bcf3ab1d9a930baedae1bdb6d73.tar.bz2
qt-dfaa1f6e860d5bcf3ab1d9a930baedae1bdb6d73.zip
qt5-build.eclass: Add _QT5_GENTOOPATCHSET_REV qtbase patchset logic
Usage may be extended to other QT5_MODULEs in the future. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt5-build.eclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 2272e2e2..39a72e57 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -63,6 +63,13 @@ readonly QT5_PV
# The upstream package name of the module this package belongs to.
# Used for SRC_URI and S.
+# @ECLASS_VARIABLE: _QT5_GENTOOPATCHSET_REV
+# @DEFAULT_UNSET
+# @INTERNAL
+# @DESCRIPTION:
+# Gentoo downstream patchset version applied over qtbase. Used for SRC_URI and
+# applied in src_prepare.
+
# @ECLASS_VARIABLE: QT5_TARGET_SUBDIRS
# @DEFAULT_UNSET
# @DESCRIPTION:
@@ -115,6 +122,11 @@ if [[ ${PN} != qtwebengine ]]; then
esac
fi
+if [[ ${QT5_MODULE} == qtbase ]] && [[ ${PV} == 5.15.[4-9]* ]]; then
+ _QT5_GENTOOPATCHSET_REV=1
+ SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/qtbase-5.15-gentoo-patchset-${_QT5_GENTOOPATCHSET_REV}.tar.xz"
+fi
+
# @ECLASS_VARIABLE: QT5_BUILD_DIR
# @OUTPUT_VARIABLE
# @DESCRIPTION:
@@ -189,6 +201,8 @@ qt5-build_src_prepare() {
# Respect build variables in configure tests (bug #639494)
sed -i -e "s|\"\$outpath/bin/qmake\" \"\$relpathMangled\" -- \"\$@\"|& $(qt5_qmake_args) |" configure || die
+
+ [[ -n ${_QT5_GENTOOPATCHSET_REV} ]] && eapply "${WORKDIR}/qtbase-5.15-gentoo-patchset-${_QT5_GENTOOPATCHSET_REV}"
fi
[[ -n ${QT5_KDEPATCHSET_REV} ]] && eapply "${WORKDIR}/${QT5_MODULE}-${PV}-gentoo-kde-${QT5_KDEPATCHSET_REV}"