From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 29038158086 for ; Thu, 11 Nov 2021 14:20:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5DC762BC077; Thu, 11 Nov 2021 14:20:05 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BE2212BC077 for ; Thu, 11 Nov 2021 14:20:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AFE87340FAE for ; Thu, 11 Nov 2021 14:20:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0866A13F for ; Thu, 11 Nov 2021 14:20:00 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1636640397.dcc9a94d7c88352328c9c238c352c0680b88467d.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/bcprov/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/bcprov/bcprov-1.69.ebuild X-VCS-Directories: dev-java/bcprov/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: dcc9a94d7c88352328c9c238c352c0680b88467d X-VCS-Branch: master Date: Thu, 11 Nov 2021 14:20:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 769ff421-8486-46c0-821e-4f20baf95d09 X-Archives-Hash: ce635cf839a9a9099232efd70698f4aa commit: dcc9a94d7c88352328c9c238c352c0680b88467d Author: Miroslav Šulc gentoo org> AuthorDate: Thu Nov 11 14:19:47 2021 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Thu Nov 11 14:19:57 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcc9a94d dev-java/bcprov: fixed out of memory during tests in 1.69 Bug: https://bugs.gentoo.org/823065 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Miroslav Šulc gentoo.org> dev-java/bcprov/bcprov-1.69.ebuild | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/dev-java/bcprov/bcprov-1.69.ebuild b/dev-java/bcprov/bcprov-1.69.ebuild index 7849fe08b47..81cc3229bc0 100644 --- a/dev-java/bcprov/bcprov-1.69.ebuild +++ b/dev-java/bcprov/bcprov-1.69.ebuild @@ -7,7 +7,7 @@ JAVA_PKG_IUSE="doc source test" MAVEN_ID="org.bouncycastle:bcprov-jdk15on:1.69" JAVA_TESTING_FRAMEWORKS="junit-4" -inherit java-pkg-2 java-pkg-simple +inherit java-pkg-2 java-pkg-simple check-reqs DESCRIPTION="Java cryptography APIs" HOMEPAGE="https://www.bouncycastle.org/java.html" @@ -55,12 +55,33 @@ JAVA_TEST_RUN_ONLY=( "org.bouncycastle.util.encoders.test.AllTests" # OK (15 tests) ) +check_env() { + if use test; then + # this is needed only for tests + CHECKREQS_MEMORY="1200M" + check-reqs_pkg_pretend + fi +} + +pkg_pretend() { + check_env +} + +pkg_setup() { + check_env +} + src_prepare() { default cd ../ || die java-pkg_clean } +src_test() { + JAVA_TEST_EXTRA_ARGS+=" -Xmx${CHECKREQS_MEMORY}" + java-pkg-simple_src_test +} + src_install() { default einstalldocs