From 4a58545d1dd3bf03f4874c8f1244d49fdac02aa0 Mon Sep 17 00:00:00 2001 From: Denis Reva Date: Sun, 25 Dec 2022 13:53:51 +0500 Subject: media-libs/amdvlk: Updated requirements checking Signed-off-by: Denis Reva --- media-libs/amdvlk/amdvlk-2022.4.4.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'media-libs') diff --git a/media-libs/amdvlk/amdvlk-2022.4.4.ebuild b/media-libs/amdvlk/amdvlk-2022.4.4.ebuild index 27a9903d6..0b0f75db4 100644 --- a/media-libs/amdvlk/amdvlk-2022.4.4.ebuild +++ b/media-libs/amdvlk/amdvlk-2022.4.4.ebuild @@ -34,7 +34,7 @@ RDEPEND=" ${DEPEND} >=media-libs/vulkan-loader-1.3.224[${MULTILIB_USEDEP}] dev-util/glslang[${MULTILIB_USEDEP}]" -CHECKREQS_MEMORY="16G" +CHECKREQS_MEMORY="7G" CHECKREQS_DISK_BUILD="4G" S="${WORKDIR}" CMAKE_USE_DIR="${S}/xgl" @@ -71,6 +71,15 @@ PATCHES=( "${FILESDIR}/amdvlk-2022.4.4-r1-disable-Werror.patch" #887777 ) +pkg_pretend(){ + ewarn "It's generally recomended to have at least 16GB memory to build" + ewarn "However, experiments shows that if you'll use MAKEOPTS=\"-j1\" you can build it with 8GB RAM" + ewarn "See https://wiki.gentoo.org/wiki/AMDVLK#Additional_system_requirements_to_build" + ewarn "Use CHECKREQS_DONOTHING=1 if you need to bypass memory checking" + + check-reqs_pkg_pretend +} + src_prepare() { einfo "moving src to proper directories" mkdir -p "${S}" -- cgit v1.2.3-65-gdbad