Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599372 - dev-db/mariadb-10.0.28 fails to resolve its dependencies with jdbc use flag
Summary: dev-db/mariadb-10.0.28 fails to resolve its dependencies with jdbc use flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-10 09:07 UTC by Joerg Schaible
Modified: 2018-05-15 17:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Schaible 2016-11-10 09:07:50 UTC
If the jdbc use flag is set, mariadb fails to build, because it does not find/accept one of the installed JDKs:

============ %< ================
>>> Emerging (1 of 4) dev-db/mariadb-10.0.28::gentoo
 * mariadb-10.0.28.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...              [ ok ]
 * mysql-extras-20160629-1442Z.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
!!! ERROR: Couldn't find a VM dep
 * Unable to determine VM for building from dependencies:
NV_DEPEND: || ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
        server? ( extraengine? ( jdbc? ( >=virtual/jdk-1.6 ) ) )

        !bindist? ( >=sys-libs/readline-4.1:0=  )
        server? (
                extraengine? (
                        odbc? ( dev-db/unixODBC:0= )
                        xml? ( dev-libs/libxml2:2= )
                )
                oqgraph? ( >=dev-libs/boost-1.40.0:0= dev-libs/judy:0= )
                pam? ( virtual/pam:0= )
                tokudb? ( app-arch/snappy )
        )
        >=dev-libs/libpcre-8.35:3=
 jdbc? ( >=dev-java/java-config-2.2.0-r3  ) virtual/pkgconfig  sys-devel/make >=dev-util/cmake-2.8.12 
        kernel_linux? (
                sys-process/procps:0=
                dev-libs/libaio:0=
        )
        >=sys-apps/sed-4
        >=sys-apps/texinfo-4.7-r1
        !dev-db/mariadb-native-client[mysqlcompat]
        jemalloc? ( dev-libs/jemalloc:0= )
        tcmalloc? ( dev-util/google-perftools:0= )
        systemtap? ( >=dev-util/systemtap-1.3:0= )
        openssl? ( >=dev-libs/openssl-1.0.0:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,static-libs?] )
        libressl? ( dev-libs/libressl:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,static-libs?] )
        >=sys-libs/zlib-1.2.3:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,static-libs?]
        sys-libs/ncurses:0=

        virtual/yacc
        static? ( sys-libs/ncurses[static-libs] )

 * ERROR: dev-db/mariadb-10.0.28::gentoo failed (setup phase):
 *   Failed to determine VM for building.
 * 
 * Call stack:
 *                ebuild.sh, line  115:  Called pkg_setup
 *   mariadb-10.0.28.ebuild, line   61:  Called java-pkg-opt-2_pkg_setup
 *    java-pkg-opt-2.eclass, line   38:  Called java-pkg_init
 *      java-utils-2.eclass, line 2192:  Called java-pkg_switch-vm
 *      java-utils-2.eclass, line 2654:  Called die
 * The specific snippet of code:
 *                                      die "Failed to determine VM for building."
 * 
 * If you need support, post the output of `emerge --info '=dev-db/mariadb-10.0.28::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mariadb-10.0.28::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =mariadb-10.0.28
 * The complete build log is located at '/var/log/portage/dev-db:mariadb-10.0.28:20161110-081400.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/portage/dev-db/mariadb-10.0.28/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/portage/dev-db/mariadb-10.0.28/temp/die.env'.
 * Working directory: '/usr/lib64/python3.4/site-packages'
 * S: '/var/tmp/portage/portage/dev-db/mariadb-10.0.28/work/mysql'

>>> Failed to emerge dev-db/mariadb-10.0.28, Log file:
============ %< ================

This is kind of funny:

============ %< ================
$ eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea-bin-7 
  [2]   oracle-jdk-bin-1.7  system-vm
  [3]   oracle-jdk-bin-1.8  user-vm
  [4]   sun-jdk-1.6 
============ %< ================

Reproducible: Always

Steps to Reproduce:
1. Set use flag jdbc for mariadb-10.0.28
2. Emerge it

Actual Results:  
Build fails, it cannot find a Java VM.

Expected Results:  
Running build inclusive JDBC support.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2016-11-14 14:50:04 UTC
Please include the output of 'emerge --info =mariadb-10.0.28'.

The server and extraengine USE must also be set in order for jdbc (the CONNECT-JDBC engine in the server) to work.

Yes the error message is confusing so I will set a REQURIED_USE to make it more obvious (which i was hoping to avoid)
Comment 2 Joerg Schaible 2016-11-15 09:06:49 UTC
Hi Brian,

you're right, "extraengine" is not active. However, from the flag description it is not obvious either, that it is required for JDBC:

================== %< ===================
extraengine : Add support for alternative storage engines (Archive, CSV, Blackhole, Federated(X), Partition)
================== %< ===================

With active flag "extraengine" the build went fine. Just for completeness:

================== %< ===================
$ emerge --info =mariadb-10.0.28
Portage 2.3.0 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.22-r4, 4.4.26-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.26-gentoo-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:    16346016 total,  12317372 free
KiB Swap:   34515964 total,  34515964 free
Timestamp of repository gentoo: Mon, 14 Nov 2016 07:28:53 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /var/db/portage/trees/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

kde-sunset
    location: /var/db/portage/trees/kde-sunset
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/kde-sunset.git
    masters: gentoo

local
    location: /var/db/portage/trees/local
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -ggdb -fno-default-inline"
DISTDIR="/var/db/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://sunsite.cnlab-switch.ch/mirror/gentoo/ http://ftp.heanet.ie/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2 -s"
PKGDIR="/var/db/portage/packages"
PORTAGE_CONFIGROOT="/"
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/portage"
USE="X a52 aac acl acpi alsa amd64 avx bash-completion berkdb bluetooth bmp branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups curl cxx dbus declarative dga dri dts dvd dvdr egl emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv icu idn ipv6 jpeg jpeg2k kde kipi lcms libnotify lz4 lzma lzo mad maildir mmap mmx mmxext mng modules mp3 mp4 mpeg multilib mysql ncurses nls nptl odbc ogg openexr opengl openmp openssh openvg pam pango pch pcre pdf phonon plasma png policykit popcnt ppds qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg syslog tcpd threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xpm xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda_intel" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="multiboot pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en en_GB en_US fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="nouveau intel v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-db/mariadb-10.0.28::gentoo was built with the following:
USE="odbc openssl pam server xml -bindist -debug -embedded -extraengine -jdbc -jemalloc -latin1 (-libressl) -oqgraph -perl -profiling (-selinux) -sphinx -static -static-libs -systemtap -tcmalloc -test -tokudb -yassl" ABI_X86="32 64 -x32"
CFLAGS="-march=native -mtune=native -O2 -pipe -ggdb -fno-strict-aliasing"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -ggdb -fno-default-inline -felide-constructors -fno-strict-aliasing"
================== %< ===================

Cheers,
Jörg