Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 547898 - dev-java/java-config: make depend-java-query accept wider range of version values
Summary: dev-java/java-config: make depend-java-query accept wider range of version va...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-27 12:18 UTC by Fat-Zer
Modified: 2015-04-27 12:44 UTC (History)
1 user (show)

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


Attachments
A propoused patch to fix the issue (file_547898.txt,1.84 KB, patch)
2015-04-27 12:39 UTC, Fat-Zer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fat-Zer 2015-04-27 12:18:52 UTC
now depend-java-query doesn't accepts several DEPEND versions which looks well from portage's point of view.


Reproducible: Always

Steps to Reproduce:
Run one of:
1. depend-java-query 'virtual/jdk:='
2. depend-java-query 'virtual/jdk:*'
Actual Results:  
And it fails with error "Couldn't find a VM dep"


Inspired by Bug 541644.
Comment 1 James Le Cuirot gentoo-dev 2015-04-27 12:36:55 UTC
Neither of those makes sense for Java.

:* doesn't because all Java software requires a minimum VM version, even if it's something ancient like 1.3 and this is used to set the -source (DEPEND) and -target (RDEPEND) flags.

:= doesn't for the same reason, plus the fact that Java VMs are highly backwards compatible at runtime. On rare occasions, we have to restrict DEPEND because the build breaks against newer VMs but I don't recall ever having to do that for RDEPEND.
Comment 2 Fat-Zer 2015-04-27 12:39:56 UTC
Created attachment 402108 [details, diff]
A propoused patch to fix the issue

Here is a propoused patch.
Comment 3 Fat-Zer 2015-04-27 12:44:04 UTC
(In reply to James Le Cuirot from comment #1)
> Neither of those makes sense for Java.
> 
> :* doesn't because all Java software requires a minimum VM version, even if
> it's something ancient like 1.3 and this is used to set the -source (DEPEND)
> and -target (RDEPEND) flags.
> 
> := doesn't for the same reason, plus the fact that Java VMs are highly
> backwards compatible at runtime. On rare occasions, we have to restrict
> DEPEND because the build breaks against newer VMs but I don't recall ever
> having to do that for RDEPEND.

Ok, so the DEPEND in the Bug 541644 just supposed to be wrong... thanks for quick reply.