commit:     4a58545d1dd3bf03f4874c8f1244d49fdac02aa0
Author:     Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Sun Dec 25 08:53:51 2022 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun Dec 25 09:09:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4a58545d

media-libs/amdvlk: Updated requirements checking

Signed-off-by: Denis Reva <denis7774 <AT> gmail.com>

 media-libs/amdvlk/amdvlk-2022.4.4.ebuild | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

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}"

Reply via email to