Summary: | media-gfx/graphviz-2.47.1 -- ERROR: could not convert string to float | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gary E. Miller <gem> |
Component: | Current packages | Assignee: | Mikle Kolyada (RETIRED) <zlogene> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adam, alexandref75, candrews, danielcdawson, gem, jstein, neil, phantom4, sam, soap, zeekec |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=785820 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | vuild.log |
Description
Gary E. Miller
2021-04-24 18:01:54 UTC
Created attachment 702258 [details]
vuild.log
build.log
have you actually selected a java VM as default? I get the same error. eselect java-vm list Available Java Virtual Machines: [1] openjdk-bin-8 system-vm java-config -f openjdk-bin-8 java-config -L The following VMs are available for generation-2: *) AdoptOpenJDK 8.282_p08 [openjdk-bin-8] Given the "unable to convert '*' to float" error, I suspect it may be the last of these that's the issue? I'm not sure how to track what the "java-pkg-opt-2_pkg_setup" call in the ebuild is actually calling. Same error here and tried with openjdk and oracle-jdk-bin # eselect java-vm list Available Java Virtual Machines: [1] openjdk-11 system-vm [2] openjdk-bin-8 [3] openjdk-jre-bin-11 [4] oracle-jdk-bin-1.8 # eselect java-vm list Available Java Virtual Machines: [1] openjdk-11 [2] openjdk-bin-8 [3] openjdk-jre-bin-11 [4] oracle-jdk-bin-1.8 system-vm This is being reported in function java-pkg_switch-vm() in java-utils-2.eclass. At line 2688, it calls to depend-java-query, a utility from dev-java/java-config, with (in this case) the DEPEND string. But it seems depend-java-query doesn't understand the slot wildcard in "virtual/jdk:*", and gives this not-so-helpful error as a result. I've reported this as bug 785820. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b092cac29d00008a19b3766a2dfe5e74a135055 commit 1b092cac29d00008a19b3766a2dfe5e74a135055 Author: David Seifert <soap@gentoo.org> AuthorDate: 2021-04-27 07:59:20 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-04-27 07:59:20 +0000 media-gfx/graphviz: Fix building with USE=java Closes: https://bugs.gentoo.org/785436 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: David Seifert <soap@gentoo.org> media-gfx/graphviz/graphviz-2.47.1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Thanks for reporting this: Now I get: --- USE=-java +++ USE=java @@ -73,6 +73,25 @@ │ └── xdot.h ├── lib64 │ ├── graphviz + │ │ ├── java + │ │ │ ├── libgv.so -> org/graphviz/libgv_java.so + │ │ │ └── org + │ │ │ └── graphviz + │ │ │ ├── gv.class + │ │ │ ├── gv.java + │ │ │ ├── gvJNI.class + │ │ │ ├── gvJNI.java + │ │ │ ├── libgv_java.so + │ │ │ ├── SWIGTYPE_p_Agedge_t.class + │ │ │ ├── SWIGTYPE_p_Agedge_t.java + │ │ │ ├── SWIGTYPE_p_Agnode_t.class + │ │ │ ├── SWIGTYPE_p_Agnode_t.java + │ │ │ ├── SWIGTYPE_p_Agraph_t.class + │ │ │ ├── SWIGTYPE_p_Agraph_t.java + │ │ │ ├── SWIGTYPE_p_Agsym_t.class + │ │ │ ├── SWIGTYPE_p_Agsym_t.java + │ │ │ ├── SWIGTYPE_p_FILE.class + │ │ │ └── SWIGTYPE_p_FILE.java │ │ ├── libgvplugin_core.so -> libgvplugin_core.so.6.0.0 │ │ ├── libgvplugin_core.so.6 -> libgvplugin_core.so.6.0.0 │ │ ├── libgvplugin_core.so.6.0.0 @@ -319,6 +338,7 @@ │ ├── cdt.3.bz2 │ ├── cgraph.3.bz2 │ ├── expr.3.bz2 + │ ├── gv.3java.bz2 │ ├── gv.3python.bz2 │ ├── gvc.3.bz2 │ ├── gvpr.3.bz2 @@ -328,4 +348,4 @@ └── man7 └── graphviz.7.bz2 -24 directories, 304 files +27 directories, 321 files The fix changed from any java version to java:1.8, was that intentional?
If you support both java-8 and java-11 you should have
>=virtual/jdk-1.8:*
Also, you can have different java versions from build resp. run time.
RDEPEND should probably use virtual/jre instead.
> If you support both java-8 and java-11 you should have
> >=virtual/jdk-1.8:*
I see depend-java-query is fine with that. Looks like it just takes the version when it's specified and ignores the slot. That tool still needs fixing, though, since the existing spec was valid, wasn't it?
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fcdce010276f2877fa8af7bc0a4ac526ee4c384 commit 2fcdce010276f2877fa8af7bc0a4ac526ee4c384 Author: David Seifert <soap@gentoo.org> AuthorDate: 2021-05-07 09:45:41 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-05-07 09:45:41 +0000 media-gfx/graphviz: Make java dependencies more permissive Bug: https://bugs.gentoo.org/785436 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: David Seifert <soap@gentoo.org> media-gfx/graphviz/graphviz-2.47.1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) |