sys-libs/libomp: Perform PDS checks only for relevant kernel versions
authorMichał Górny <mgorny@gentoo.org>
Tue, 30 Jan 2018 19:29:00 +0000 (20:29 +0100)
committerMichał Górny <mgorny@gentoo.org>
Tue, 30 Jan 2018 19:31:21 +0000 (20:31 +0100)
commit0d9c0f4a785d5021d3c01307388d0ecbf0f63cd4
tree475bc0f6d4d18b3da6fa5171d7e499a28cd5c0eb
parenta7ab02c765e783a78fc8aea6a26f41127b2eadc7
sys-libs/libomp: Perform PDS checks only for relevant kernel versions

Update the PDS check logic to apply only when running the Linux kernel,
versions between 4.13 and 4.15. That covers the range of -pf kernels
that have the broken PDS version, and I think we can reasonably assume
users will not be updating the patch along with the kernel.

Also, perform the check only once in pkg_pretend. There is really
no point in repeating it as packages do not alter kernel configuration.

Closes: https://bugs.gentoo.org/638410
sys-libs/libomp/libomp-4.0.1.ebuild
sys-libs/libomp/libomp-5.0.1.ebuild
sys-libs/libomp/libomp-6.0.9999.ebuild
sys-libs/libomp/libomp-9999.ebuild