Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561272 - dev-java/java-config-2.2.0 : problem with ROOT when setting vm
Summary: dev-java/java-config-2.2.0 : problem with ROOT when setting vm
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 793965
Blocks:
  Show dependency tree
 
Reported: 2015-09-23 14:33 UTC by JY
Modified: 2021-06-02 19:58 UTC (History)
2 users (show)

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


Attachments
Patch for java-config (0001-Fix-usage-of-eroot-and-eprefix.patch,955 bytes, patch)
2015-09-23 14:35 UTC, JY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description JY 2015-09-23 14:33:55 UTC
When emerging oracle-jdk-bin-1.8 using --root, the default vm configuration step in pkg_postinst sets the VM symlink to a wrong value


When using java in the booted target system, wrappers complains about wrong:
" VM Home for VM 'oracle-jdk-bin-1.8' does not exist"

Reproducible: Always

Steps to Reproduce:
1. Have no Java VM installed in your ROOT target
2. emerge oracle-jdk-bin:1.8
3. ls -l ${ROOT}/etc/java-config-2
Actual Results:  

lrwxrwxrwx 1 root root   49 22 sept. 20:22 current-system-vm -> /mnt/stage5/debug//usr/lib/jvm/oracle-jdk-bin-1.8

Expected Results:  
lrwxrwxrwx 1 root root   31 23 sept. 16:00 current-system-vm -> /usr/lib/jvm/oracle-jdk-bin-1.8


Portage 2.2.14 (python 2.7.9-final-0, hardened/linux/amd64/no-multilib, gcc-4.8.4, glibc-2.19-r1, 3.17.1-gentoo x86_64)
=================================================================
System uname: Linux-3.17.1-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2690_v2_@_3.00GHz-with-gentoo-2.2
KiB Mem:   132058656 total,  28377832 free
KiB Swap:  134217724 total, 134095336 free
Timestamp of tree: Fri, 13 Mar 2015 00:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0-r1::local <- now fixed ebuild
dev-lang/perl:            5.20.1-r4::local
dev-lang/python:          2.7.9-r1::local, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4::local
sys-devel/gcc-config:     1.7.3::local
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo local 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=9 --load-average=20.0"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://local.mirror/gentoo"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -l20.0"
PKGDIR="/opt/local/packages"
PORTAGE_CONFIGROOT="/opt/local/"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/overlays/local"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri gdbm hardened iconv ipv6 justify libav minimal mmx modules ncurses nls nptl openmp pam pax_kernel pcre readline session sse sse2 ssl tcpd unicode urandom xattr xtpax zlib" ABI_X86="64" ALSA_CA"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 JY 2015-09-23 14:35:15 UTC
Created attachment 412644 [details, diff]
Patch for java-config

Attached is a patch I've tested in a local ebuild, fixing the problem (actual result tested)
Comment 2 Patrice Clement gentoo-dev 2015-09-24 15:09:17 UTC
We ought to work on a new release of java-config and dust off some of this code cause it's *REALLY* old.
Comment 3 Martin Mokrejš 2016-07-27 12:58:43 UTC
Isn't this also relevant to Gentoo:Prefix or Gentoo:RAP? ;-)
Comment 4 SpanKY gentoo-dev 2021-06-02 19:58:06 UTC
it's no longer a problem with java-config because the code was deleted with 2.3:
https://gitweb.gentoo.org/proj/java-config.git/commit/?id=b444f958864524357c7462ff7267af429d7e23aa

but sadly the eselect module is also buggy.  opened issue 793965 with details.