Summary: | java-utils-2.eclass: ensure dev-java/java-dep-check is pulled | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Pacho Ramos <pacho> |
Component: | Eclasses | Assignee: | Java team <java> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | gentoo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 298955, 892097 | ||
Bug Blocks: | |||
Attachments: | build log |
Description
Pacho Ramos
2022-01-17 08:49:58 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. (We could actually add an exemption for that package.) Found on https://wiki.gentoo.org/wiki/Java_Developer_Guide#Variables JAVA_PKG_STRICT=true Set this variable in make.conf to enable use of dev-java/java-dep-check. Created attachment 848691 [details]
build log
The output indeed looks somewhat strange
There is a similar function in java-ant-2.eclass using JAVA_ANT_E_DEPEND and JAVA_ANT_DISABLE_ANT_CORE_DEP for adding dev-java/ant to DEPEND. But before forcing java-dep-check into DEPEND the open bugs should be fixed. |