Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831341 - java-utils-2.eclass: ensure dev-java/java-dep-check is pulled
Summary: java-utils-2.eclass: ensure dev-java/java-dep-check is pulled
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
Depends on: 298955 892097
  Show dependency tree
Reported: 2022-01-17 08:49 UTC by Pacho Ramos
Modified: 2024-02-27 09:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

build log (build.log,2.02 KB, text/plain)
2023-01-16 18:59 UTC, Volkmar W. Pogatzki

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2022-01-17 08:49:58 UTC
I was wondering why I was getting this log message in all my systems upon updating of pdftk package:
Install dev-java/java-dep-check for dependency checking

I then saw it comes from java-utils-2_pkg_preinst in java-utils-2.eclass and I wondered why I need to manually emerge that package instead of getting it automatically pulled as BDEPEND as it seems to be needed 

Comment 1 Yuan Liao (Leo3418) 2022-01-18 07:47:53 UTC
dev-java/java-dep-check inherits java-pkg-2.eclass, making it an indirect descendant of java-utils-2.eclass.  If we put BDEPEND="dev-java/java-dep-check" into java-utils-2.eclass, it would effectively be added into dev-java/java-dep-check too, creating a package that unconditionally depends on itself.  Therefore, this is not feasible.

Anyway, the dependency check is just an optional check enabled by setting the JAVA_PKG_STRICT variable.  Setting or unsetting JAVA_PKG_STRICT does not make any difference in terms of functionality and correctness of the build artifacts.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-18 10:04:05 UTC
(We could actually add an exemption for that package.)
Comment 3 Volkmar W. Pogatzki 2023-01-16 18:53:47 UTC
Found on

    Set this variable in make.conf to enable use of dev-java/java-dep-check.
Comment 4 Volkmar W. Pogatzki 2023-01-16 18:59:33 UTC
Created attachment 848691 [details]
build log

The output indeed looks somewhat strange
Comment 5 Volkmar W. Pogatzki 2024-02-27 09:56:21 UTC
There is a similar function in java-ant-2.eclass using
for adding dev-java/ant to DEPEND.

But before forcing java-dep-check into DEPEND the open bugs should be fixed.