dev-lang/go: 1.14: check running kernel version before compiling
authorWilliam Hubbs <william.hubbs@sony.com>
Sun, 8 Mar 2020 18:43:15 +0000 (19:43 +0100)
committerWilliam Hubbs <williamh@gentoo.org>
Mon, 9 Mar 2020 17:10:45 +0000 (12:10 -0500)
commit7e804a5ea4822b370bc0eb2fc33296ba4ec4cb7e
tree6585a51a99082726f4d156f75b60edd3a98ea0f9
parent1845882cabdb74ef1ee3a23e2f5c416ab118f84c
dev-lang/go: 1.14: check running kernel version before compiling

Compilation will fail if the host is running certain versions of the
Linux kernel with the message: runtime: mlock of signal stack failed: 12

Note from williamh:
The original pr checked for kernel versions not listed in the upstream
issue, so I reworked it. Also, it used pkg_setup instead of pkg_pretend
for the checks.

Closes: https://bugs.gentoo.org/711884
Closes: https://github.com/gentoo/gentoo/pull/14868
Signed-off-by: William Hubbs <williamh@gentoo.org>
dev-lang/go/go-1.14.ebuild