Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 785436 - media-gfx/graphviz-2.47.1 -- ERROR: could not convert string to float
Summary: media-gfx/graphviz-2.47.1 -- ERROR: could not convert string to float
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-24 18:01 UTC by Gary E. Miller
Modified: 2022-04-25 14:35 UTC (History)
11 users (show)

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


Attachments
vuild.log (media-gfx:graphviz-2.47.1:20210424-175948.log,3.44 KB, text/plain)
2021-04-24 18:02 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2021-04-24 18:01:54 UTC
Fails to emerge.

Reproducible: Always

Steps to Reproduce:
1. emerge graphviz
2.
3.
Actual Results:  
 * Package:    media-gfx/graphviz-2.47.1
 * Repository: gentoo
 * Maintainer: zlogene@gentoo.org soap@gentoo.org
 * USE:        X abi_x86_64 amd64 cairo elibc_glibc gtk guile java kernel_linux 
nls pdf perl python python_single_target_python3_8 qt5 svg tcl userland_GNU
 * FEATURES:   network-sandbox preserve-libs userpriv usersandbox
 * Using python3.8 to build
!!! ERROR: could not convert string to float: '*'
 * Unable to determine VM for building from dependencies:


Expected Results:  
A good emerge

kong ~ # emerge --info '=media-gfx/graphviz-2.47.1::gentoo'
Portage 3.0.18 (python 3.8.9-final-0, default/linux/amd64/17.1/desktop, gcc-10.3.0, glibc-2.33, 5.11.12-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.11.12-gentoo-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.2.5
KiB Mem:    16355332 total,   4458880 free
KiB Swap:   33554428 total,  32782900 free
Timestamp of repository gentoo: Sat, 24 Apr 2021 16:45:01 +0000
Head commit of repository gentoo: 6abbdc7f12ef6d61677fcd2f5b9c8621e124663d
sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 4.2.1 [disabled]
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p8::gentoo, 3.6.12-r1::gentoo, 3.7.10_p1::gentoo, 3.8.9::gentoo, 3.9.4::gentoo, 3.10.0_alpha7::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/ccache:          4.2.1::gentoo
dev-util/cmake:           3.20.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r2::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.23::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo, 2.36.1-r1::gentoo
sys-devel/gcc:            10.3.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: --exclude ChangeLog* --delete-excluded
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

brother-overlay
    location: /var/lib/layman/brother-overlay
    sync-type: laymansync
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 50

guru
    location: /var/lib/layman/guru
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50

vifino-overlay
    location: /var/lib/layman/vifino-overlay
    sync-type: laymansync
    sync-uri: https://github.com/vifino/vifino-overlay.git
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=znver2 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --backtrack=5"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance candy clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com http://gentoo.mirrors.tera-byte.com/ http://gentoo.cs.utah.edu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j6 -l4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog* --delete-excluded"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp/"
USE="12bit 256-color X a52 aac aacplus aacs aalib acl acpi additions adns ads aes afterimage aio alsa amarok amazon amd64 ao apache2 appindicator applet ares aspell asyncdns attica audiofile auth autoipd avahi avx avx2 background bash-completion bcmath berkdb binfilter bl blink bluetooth bluray bogofilter bonjour bonobo bookmarks boost bootsplash branding bzip2 cacert cairo calf caps cdaudio cdda cdinstall cdr celt cgi cgroup chromecast chroot clang cle266 cli command-args contentcache corba corefonts crypt cscope css csv ctype cups curl curlwrappers cursors cxx daap dane dav1d dba dbm dbus dbx dcc dcraw declarative devfs26 device-mapper dirac disassembler discard-path discid divx dlz dmi dmx dnssec docbook dpms dri dri3 drm dtmf dts dv dvb dvbcsa dvben50221 dvd dvdr dvdread dvi dynagraph dynamicplugin ecc edl egl elogind emboss encode equalizer escreen espeak ethereal etwin exif expat exscalibar extensions extramodules faac faad fading-colors faillog fame fat fdk festival ffmpeg ffmpeg-mt ffmpegthumbnailer fftw fits flac flatfile fltk fma fma3 fmod fontconfig foomatic-db foomaticdb fortran fpm fpx freetts ftp g3dvl gadu gajim gallium gcj gconf gd gdal gdbm gdu gecko-mediaplayer geoip geometry geonames geotiff gif gimp gimpprint git glamor glew glib glitz glut gmath gmedia gml gmp gmplayer gnuplot gnustep gnutls go gpg gphoto2 gpm gps grammar graphviz grass gs gsl gsm gstreamer gtk gtk3 gtkhtml gtkspell gui guile h323 hardened harfbuzz hdf5 hdhomerun hdri highlight hostip howl howl-compat http http2 httpd icecast iconv icq icu id3 idea ilbc imagemagick imap imlib imlib2 inkjar inode inotify insecure-savers int64 introspection ipmi ipsec iptv ipv6 iso14755 jabber jadetex java javascript jbig jce jingle john jpeg karma keybinder kpathsea ladspa lame lastfm latex lcms libass libcanberra libedit libextractor libglvnd libinput libnotify libsamplerate libtirpc libv4l2 libvisual lm-sensors lm_sensors lmdb logrotate lpr lto lua lv2 lxc lyrics lzma lzo mad manual map mapnik marble mariadb matroska mbox md5sum mda-lv2 mdadm mdnsresponder-compat menubar microdns midi mikmod milter mime mimencode mmap mmx mmxext mng mnogosearch mod modplug mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpg123 mplayer mpm-worker mtp multilib multimedia munin-apache munin-dhcp munin-irc munin-squid munin-surfboard musepack musicbrainz mysqli mythtv na_dd na_icons nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net netlink network networking nfs nfsv4 nfsv41 nls nodrm nominatim nptl nsplugin offensive ogg oggvorbis on-the-fly-crypt openal opencl openctl openexr opengl openmp openssh openssl opensslcrypt opus oscar osmesa otr pam pango parse-clocks passfile passwdqc passwordsave paste64 pcap pci pcmcia pcntl pcre pdf pdfimport perl pgo php pidgin pixbuf player plazes plotutils png pnm policykit pop3d popcnt portage portaudio posix postproc ppds print printsupport priority procmail proj pulseaudio pvr python pyzor qml qt5 quicktime rar raw razor rc5 rdesktop readline realmedia realtime recursor remix rle romio rpc rpz rrdcgi rrdtool rss rtc rtf rtmp rtsp rubberband run-as-root scanner schroedinger screen scripts scrypt sctp sdk sdl seccomp secure-delete sendmail sendto sensord serial server sftp sftplogging shape sharedext sharedmem shmvideo shorten shout silc sip sipim skins slp smi smime smp smtp sndfile snmp soap sockets sofia-sip softfax sound sox spamassassin speex spell spf split-usr sqlite sqlite3 srtp sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssse3 startup-notification static-libs static-modules stats stream subtitles subversion svg svgz swat swig syntax-check sysfs syslog sysvipc szip t1lib taglib tagwriting tcl tcltk tcpd template tetex tga themes theora thesaurus threads threadsafe thumbnail thunar thunderbird tiff timidity tk tokenizer tokyocabinet toolame toolbar tools transcode tremor truetype twolame type1 udev udf udisks ugly unbound unicode unzip update_drivedb upnp upower ups urandom uriparser usb utils v4l v4l2 vaapi vala valgrind vdpau vdr vhosts video vim vim-syntax visualization vlc vlm vnc vorbis vorbis-psy vulkan vxml watchdog wav wavpack web webkit webkit2 webp wfs wg-quick widescreen wikipedia winbind wma wmf wmp wxwidgets wxwindows x264 x265 xattr xcb xcomposite xface xft xine xinerama xml xmlrpc xmltv xorg xosd xpm xrandr xrender xscreensaver xsettings xsl xslt xterm xulrunner xv xvfb xvid xz yaepg yahoo yahoo-geo zeroconf zip zlib zrtp zstd zvbai zvbi" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu gentoo_platforms_efi-32 gentoo_platforms_efi-64 pc" INPUT_DEVICES="evdev roccat_savu libinput joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" QEMU_SOFTMMU_TARGETS="arm ppc ppc64 x86_64" QEMU_USER_TARGETS="arm ppc ppc64 x86_64" RUBY_TARGETS="ruby30" SANE_BACKENDS="gphoto2 abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc25 dc210 dc240 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax_pp umax1220u xerox_mfp" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RUSTFLAGS
Comment 1 Gary E. Miller 2021-04-24 18:02:54 UTC
Created attachment 702258 [details]
vuild.log

build.log
Comment 2 David Seifert gentoo-dev 2021-04-25 09:00:37 UTC
have you actually selected a java VM as default?
Comment 3 Adam Jones 2021-04-25 12:35:12 UTC
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.
Comment 4 Alexandre Ferreira 2021-04-25 14:16:01 UTC
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
Comment 5 Daniel Dawson 2021-04-26 12:25:16 UTC
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.
Comment 6 Larry the Git Cow gentoo-dev 2021-04-27 07:59:33 UTC
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(-)
Comment 7 David Seifert gentoo-dev 2021-04-27 08:00:11 UTC
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
Comment 8 Joakim Tjernlund 2021-04-27 09:19:18 UTC
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.
Comment 9 Daniel Dawson 2021-04-27 12:45:17 UTC
> 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?
Comment 10 Larry the Git Cow gentoo-dev 2021-05-07 09:46:00 UTC
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(-)