--- qtcore-5.14.1-r1.ebuild 2020-03-22 22:09:47.427004415 +0800 +++ qtcore-5.14.1-r2.ebuild 2020-03-23 08:47:04.266365832 +0800 @@ -3,7 +3,7 @@ EAPI=7 QT5_MODULE="qtbase" -inherit qt5-build +inherit linux-info qt5-build DESCRIPTION="Cross-platform application development framework" @@ -11,7 +11,7 @@ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" fi -IUSE="icu systemd" +IUSE="icu old-kernel systemd" DEPEND=" dev-libs/double-conversion:= @@ -44,6 +44,13 @@ PATCHES=( "${FILESDIR}/${P}-cmake-macro-backward-compat.patch" ) # bug 703306 +pkg_pretend() { + if kernel_is -lt 3 17 && ! use old-kernel; then + ewarn "The running kernel is older than 3.17. USE=old-kernel is needed for ${CATEGORY}/${PN}" + ewarn "to function on this kernel properly." + fi +} + src_prepare() { # don't add -O3 to CXXFLAGS, bug 549140 sed -i -e '/CONFIG\s*+=/s/optimize_full//' src/corelib/corelib.pro || die @@ -59,6 +66,8 @@ -no-feature-statx # bug 672856 $(qt_use icu) $(qt_use !icu iconv) + $(qt_use !old-kernel feature-renameat2) # needs Linux 3.16, bug 669994 + $(qt_use !old-kernel feature-getentropy) # needs Linux 3.17, bug 669994 $(qt_use systemd journald) ) qt5-build_src_configure