• [gentoo-dev] [PATCH 1/4] java-pkg-2.eclass: mark functions as deprecate

    From Volkmar W. Pogatzki@21:1/5 to All on Sat Aug 24 14:50:02 2024
    Deprecating java-ant-2.eclass would be the next step.

    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    ---
    eclass/java-pkg-2.eclass | 4 +++-
    1 file changed, 3 insertions(+), 1 deletion(-)

    diff --git a/eclass/java-pkg-2.eclass b/eclass/java-pkg-2.eclass
    index c17a9db26b3b..0409a7c70e0e 100644
    --- a/eclass/java-pkg-2.eclass
    +++ b/eclass/java-pkg-2.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 2004-2023 Gentoo Authors
    +# Copyright 2004-2024 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: java-pkg-2.eclass
    @@ -63,6 +63,7 @@ java-pkg-2_src_prepare() {


    # @FUNCTION: java-pkg-2_src_compile
    +# @DEPRECATED: none
    # @DESCRIPTION:
    # Default src_compile for java packages
    #
    @@ -98,6 +99,7 @@ java-pkg-2_src_compile() {
    }

    # @FUNCTION: java-pkg-2_src_test
    +# @DEPRECATED: none
    # @DESCRIPTION:
    # src_test, not exported.
    java-pkg-2_src_test() {
    --
    2.41.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Volkmar W. Pogatzki@21:1/5 to All on Sat Aug 24 14:50:02 2024
    since it is already advised to not use it

    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    ---
    eclass/java-utils-2.eclass | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
    index 9c657cc4c1f9..647f25e2c987 100644
    --- a/eclass/java-utils-2.eclass
    +++ b/eclass/java-utils-2.eclass
    @@ -1140,7 +1140,7 @@ java-pkg_jarfrom() {
    # @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'. +# Among other things, this can be passed to 'javac -classpath'.
    # The providing packages are recorded as dependencies into package.env DEPEND
    # line, unless "--build-only" is passed as the very first argument, for jars
    # that have to be present only at build time and are not needed on runtime
    --
    2.41.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)