Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 831424

Summary: dev-java/ant-core-1.10.9-r2 disables USE="doc" on arm, arm64 architectures
Product: Gentoo Linux Reporter: Yuan Liao (Leo3418) <liaoyuan>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/24007
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 831385, 831930, 831932, 831935    
Bug Blocks:    

Description Yuan Liao (Leo3418) 2022-01-18 20:12:18 UTC
(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"
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-20 05:30:46 UTC
FWIW, we should use masks for stuff like this to allow easy overriding for example, not REQUIRED_USE.
Comment 2 Yuan Liao (Leo3418) 2022-01-20 16:33:48 UTC
(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!
Comment 3 Larry the Git Cow gentoo-dev 2022-02-03 06:56:32 UTC
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(-)