mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
app-emulation/darling: fix pkg_pretend and pkg_setup functions
Signed-off-by: Abishek Jakkala <thysupremematrix@tuta.io>
This commit is contained in:
@@ -393,13 +393,24 @@ pkg_pretend(){
|
||||
CHECKREQS_DISK_BUILD="16G"
|
||||
CHECKREQS_MEMORY="4G"
|
||||
|
||||
check-reqs_pkg_setup
|
||||
check-reqs_pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup(){
|
||||
pkg_pretend
|
||||
# https://unix.stackexchange.com/questions/131954/check-sse3-support-from-bash
|
||||
if ! grep -qE '^flags.* (sse3|pni)' /proc/cpuinfo; then
|
||||
eerror "darling requires a cpu with support of the sse3 instruction set"
|
||||
die "cpu doesn't support sse3 instruction set"
|
||||
fi
|
||||
|
||||
if kernel_is -lt 5 0; then
|
||||
eerror "darling requires Linux kernel 5.0 or newer to be installed"
|
||||
die "darling requires Linux kernel 5.0 or newer"
|
||||
fi
|
||||
|
||||
CHECKREQS_DISK_BUILD="16G"
|
||||
CHECKREQS_MEMORY="4G"
|
||||
|
||||
check-reqs_pkg_setup
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user