• [gentoo-dev] [PATCH] java-utils-2.eclass: add --runtime-only argument t

    From Florian Schmaus@21:1/5 to All on Tue Jun 25 11:30:01 2024
    Some packages only need the jar at runtime, not at compile time. For
    example https://bugs.gentoo.org/934659#c2

    Bug: https://bugs.gentoo.org/934659
    Signed-off-by: Florian Schmaus <flow@gentoo.org>
    ---
    eclass/java-utils-2.eclass | 10 +++++++---
    1 file changed, 7 insertions(+), 3 deletions(-)

    diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
    index adbc5242053a..3c2d190c4c15 100644
    --- a/eclass/java-utils-2.eclass
    +++ b/eclass/java-utils-2.eclass
    @@ -1137,7 +1137,7 @@ java-pkg_jarfrom() {
    }

    # @FUNCTION: java-pkg_getjars
    -# @USAGE: [--build-only] [--with-dependencies] <package1>[,<package2>...]
    +# @USAGE: [--build-only] [--runtime-only] [--with-dependencies] <package1>[,<package2>...]
    # @DESCRIPTION:
    # Get the classpath provided by any number of packages
    # Among other things, this can be passed to 'javac -classpath' or 'ant -lib'. @@ -1157,6 +1157,7 @@ java-pkg_jarfrom() {
    # Parameters:
    # --build-only - makes the jar(s) not added into package.env DEPEND line.
    # (assumed automatically when called inside src_test)
    +# --runtime-only - marks the jar(s) not added into package.env RDEPEND line.
    # --with-dependencies - get jars also from requested package's