diff --git a/app-emulation/box64/box64-0.2.2.ebuild b/app-emulation/box64/box64-0.2.2.ebuild index 1dcaf87e14..71cef82cdc 100644 --- a/app-emulation/box64/box64-0.2.2.ebuild +++ b/app-emulation/box64/box64-0.2.2.ebuild @@ -15,6 +15,18 @@ KEYWORDS="~arm64 ~ppc64" IUSE="aot" REQUIRED_USE="aot? ( arm64 )" +pkg_setup() { + if [[ $(tc-endian) == big ]]; then + eerror "box86/box64 sadly does not support big endian systems." + die "big endian not supported!" + fi + + if [[ ${CHOST} != *gnu* || ${CHOST} != *linux* ]]; then + eerror "box86/64 requires a glibc and a linux system. Musl support is possible, upstream welcomes PRs!" + die "Not a GNU+Linux system" + fi +} + src_configure() { local -a mycmakeargs=( -DNOGIT=1 diff --git a/app-emulation/box64/box64-0.3.0.ebuild b/app-emulation/box64/box64-0.3.0.ebuild index e6b02b1257..b882fa8dcf 100644 --- a/app-emulation/box64/box64-0.3.0.ebuild +++ b/app-emulation/box64/box64-0.3.0.ebuild @@ -14,6 +14,18 @@ SLOT="0" KEYWORDS="~arm64 ~ppc64" IUSE="static" +pkg_setup() { + if [[ $(tc-endian) == big ]]; then + eerror "box86/box64 sadly does not support big endian systems." + die "big endian not supported!" + fi + + if [[ ${CHOST} != *gnu* || ${CHOST} != *linux* ]]; then + eerror "box86/64 requires a glibc and a linux system. Musl support is possible, upstream welcomes PRs!" + die "Not a GNU+Linux system" + fi +} + src_configure() { local -a mycmakeargs=( -DNOGIT=1 diff --git a/app-emulation/box64/box64-9999.ebuild b/app-emulation/box64/box64-9999.ebuild index 91c4682ffd..6d30a199a8 100644 --- a/app-emulation/box64/box64-9999.ebuild +++ b/app-emulation/box64/box64-9999.ebuild @@ -14,6 +14,24 @@ SLOT="0" KEYWORDS="" IUSE="static" +pkg_setup() { + if [[ $(tc-endian) == big ]]; then + eerror "box86/box64 sadly does not support big endian systems." + die "big endian not supported!" + fi + + if [[ ${CHOST} != *linux* ]]; then + eerror "box86/64 requires a linux system." + die "Not a GNU+Linux system" + fi + + if [[ ${CHOST} != *gnu* ]]; then #in case musl support is added in master branch + ewarn "" + ewarn "box86/64 will likely not build or run on a non-glibc system." + ewarn "" + fi +} + src_configure() { local -a mycmakeargs=( -DNOGIT=0