linux-info.eclass: Die in most of public-ish APIs on non-Linux
authorMichał Górny <mgorny@gentoo.org>
Thu, 8 Mar 2018 16:24:12 +0000 (17:24 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 9 Jul 2018 16:54:47 +0000 (18:54 +0200)
commit9e7c4b6d2daa9a8b1c33154f8dd296a2d1a26e92
tree5cbb041232b57228c61de8089a12e5dc81ffd9d7
parent51562449412d635b03cb71132315f0045dd33819
linux-info.eclass: Die in most of public-ish APIs on non-Linux

Add appropriate 'die' calls in most of the seemingly public APIs
of the eclass that could be called by ebuilds and that are going to fail
horribly when used on non-Linux systems. This means that
e.g. 'kernel_is' calls need to be explicitly guarded in ebuilds, as we
can't really reasonably return 'true' or 'false' if there is no Linux
kernel in the first place.
eclass/linux-info.eclass