diff options
author | Matt Turner <mattst88@gentoo.org> | 2021-03-11 11:36:22 -0500 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2021-03-11 11:38:00 -0500 |
commit | de371306554b093d175fa9e12163b2e377d17762 (patch) | |
tree | b37d0ff75779ac9450b95326f8297a4a340584dc /media-libs/mesa | |
parent | x11-drivers/xf86-video-geode: Fix build with GCC-10 (diff) | |
download | gentoo-de371306554b093d175fa9e12163b2e377d17762.tar.gz gentoo-de371306554b093d175fa9e12163b2e377d17762.tar.bz2 gentoo-de371306554b093d175fa9e12163b2e377d17762.zip |
media-libs/mesa: Check for CONFIG_KCMP on appropriate kernel versions
Closes: https://bugs.gentoo.org/775095
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'media-libs/mesa')
-rw-r--r-- | media-libs/mesa/mesa-20.3.4.ebuild | 10 | ||||
-rw-r--r-- | media-libs/mesa/mesa-21.0.0_rc5.ebuild | 12 | ||||
-rw-r--r-- | media-libs/mesa/mesa-9999.ebuild | 12 |
3 files changed, 29 insertions, 5 deletions
diff --git a/media-libs/mesa/mesa-20.3.4.ebuild b/media-libs/mesa/mesa-20.3.4.ebuild index 25e12ae1cd24..3bcef8c19175 100644 --- a/media-libs/mesa/mesa-20.3.4.ebuild +++ b/media-libs/mesa/mesa-20.3.4.ebuild @@ -333,7 +333,15 @@ pkg_setup() { if use video_cards_i965 || use video_cards_iris || use video_cards_radeonsi; then - CONFIG_CHECK="~CHECKPOINT_RESTORE" + if kernel_is -ge 5 11 3; then + CONFIG_CHECK="~KCMP" + elif kernel_is -ge 5 11; then + CONFIG_CHECK="~CHECKPOINT_RESTORE" + elif kernel_is -ge 5 10 20; then + CONFIG_CHECK="~KCMP" + else + CONFIG_CHECK="~CHECKPOINT_RESTORE" + fi linux-info_pkg_setup fi diff --git a/media-libs/mesa/mesa-21.0.0_rc5.ebuild b/media-libs/mesa/mesa-21.0.0_rc5.ebuild index 8aeb115afdd8..9eb4c9820785 100644 --- a/media-libs/mesa/mesa-21.0.0_rc5.ebuild +++ b/media-libs/mesa/mesa-21.0.0_rc5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -337,7 +337,15 @@ pkg_setup() { if use video_cards_i965 || use video_cards_iris || use video_cards_radeonsi; then - CONFIG_CHECK="~CHECKPOINT_RESTORE" + if kernel_is -ge 5 11 3; then + CONFIG_CHECK="~KCMP" + elif kernel_is -ge 5 11; then + CONFIG_CHECK="~CHECKPOINT_RESTORE" + elif kernel_is -ge 5 10 20; then + CONFIG_CHECK="~KCMP" + else + CONFIG_CHECK="~CHECKPOINT_RESTORE" + fi linux-info_pkg_setup fi diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index c004f76fad6a..9aa7c68c80fe 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -337,7 +337,15 @@ pkg_setup() { if use video_cards_i965 || use video_cards_iris || use video_cards_radeonsi; then - CONFIG_CHECK="~CHECKPOINT_RESTORE" + if kernel_is -ge 5 11 3; then + CONFIG_CHECK="~KCMP" + elif kernel_is -ge 5 11; then + CONFIG_CHECK="~CHECKPOINT_RESTORE" + elif kernel_is -ge 5 10 20; then + CONFIG_CHECK="~KCMP" + else + CONFIG_CHECK="~CHECKPOINT_RESTORE" + fi linux-info_pkg_setup fi |