java-utils-2.eclass: re-enable PORTAGE_QUIET

There are packages like javacup and jflex which cannot be built from
source without using a pre-built runtime version of itself. Re-emerging
these packages using the installed instead of the bundled pre-built
version was causing the java-pkg_getjar() function to trigger
java-pkg_ensure-dep() to issue a "QA Notice: java-pkg_ensure-dep:"
message.

This commit ports the PORTAGE_QUIET variable to java-pkg_getjar() so
that it works again as it did in the past for ant-based ebuilds.

Bug: https://bugs.gentoo.org/937047
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/44017
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki 2025-05-18 17:53:34 +02:00 committed by Sam James
parent a044497080
commit 74969e0432
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -1305,7 +1305,7 @@ java-pkg_getjar() {
classpath=$(java-config --classpath=${pkg})
[[ $? != 0 ]] && die ${error_msg}
java-pkg_ensure-dep "${build_only}" "${pkg}"
[[ -z ${PORTAGE_QUIET} ]] && java-pkg_ensure-dep "${build_only}" "${pkg}"
# Record the package(Virtual) as a dependency and then set build_only
# So that individual jars are not recorded.
@ -1325,7 +1325,7 @@ java-pkg_getjar() {
if [[ "$(basename ${jar})" == "${target_jar}" ]] ; then
# Only record jars that aren't build-only
if [[ -z "${record_jar}" ]]; then
if [[ -z "${record_jar}" && -z ${PORTAGE_QUIET} ]]; then
if [[ -z "${build_only}" ]]; then
java-pkg_record-jar_ "${pkg}" "${jar}"
else