(Note: This is a bug for an ebuild submitted by myself) dev-java/ant-core-1.10.9-r1 forbids USE="doc" on arm and arm64 architectures, which is a regression because dev-java/ant-core-1.10.9 allows it on them. The reason is that one dependency required to build the documentation, dev-java/sun-jai-bin, is not keyworded on those architectures yet. The dependency is required to resolve https://bugs.gentoo.org/780531. From lines 26-31 in ant-core-1.10.9-r1.ebuild: # Some dependencies for building Javadoc are unavailable on these architectures REQUIRED_USE="doc? ( !arm !arm64 )" CDEPEND=">=virtual/jdk-1.8:*" DEPEND="${CDEPEND} doc? ( !arm? ( !arm64? ( Attempting to install dev-java/ant-core-1.10.9-r1 with USE="doc" on those architectures might give an error like: $ USE="doc" emerge --pretend '=dev-java/ant-core-1.10.9-r1' These are the packages that would be merged, in order: Calculating dependencies | !!! Problem resolving dependencies for =dev-java/ant-core-1.10.9-r1 ... done! !!! The ebuild selected to satisfy "=dev-java/ant-core-1.10.9-r1" has unmet requirements. - dev-java/ant-core-1.10.9-r1::gentoo USE="doc (prefix) -source" The following REQUIRED_USE flag constraints are unsatisfied: doc? ( !arm64 ) The above constraints are a subset of the following complete expression: doc? ( !arm !arm64 ) With dev-java/ant-core-1.10.9: $ USE="doc" emerge --pretend '=dev-java/ant-core-1.10.9' These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] dev-java/ant-core-1.10.9 USE="doc -source"
FWIW, we should use masks for stuff like this to allow easy overriding for example, not REQUIRED_USE.
(In reply to Sam James from comment #1) > FWIW, we should use masks for stuff like this to allow easy overriding for > example, not REQUIRED_USE. Makes sense, thanks for the tip!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aba550072ebec9355bda94608ff0aa33a73d0dc commit 4aba550072ebec9355bda94608ff0aa33a73d0dc Author: Yuan Liao <liaoyuan@gmail.com> AuthorDate: 2022-01-27 00:40:30 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-02-03 06:55:30 +0000 dev-java/ant-core: Enable USE="doc" on all architectures for 1.10.9-r2 Closes: https://bugs.gentoo.org/831424 Signed-off-by: Yuan Liao <liaoyuan@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/24007 Signed-off-by: Florian Schmaus <flow@gentoo.org> dev-java/ant-core/ant-core-1.10.9-r2.ebuild | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)