Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to rid empty java vms? [rptd #471038 - cruft cleanup]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 734
Location: US-FL-EST

PostPosted: Tue May 21, 2013 8:43 pm    Post subject: How to rid empty java vms? [rptd #471038 - cruft cleanup] Reply with quote

Consider the following:
Code:
# eselect java-vm list
Available Java Virtual Machines:
grep: /usr/share/java-config-2/vm/blackdown-jdk-1.4.2: No such file or directory
grep: /usr/share/java-config-2/vm/sun-jdk-1.5: No such file or directory
grep: /usr/share/java-config-2/vm/sun-jdk-1.6: No such file or directory
  [1]   blackdown-jdk-1.4.2
  [2]   emul-linux-x86-java-1.6
  [3]   icedtea-bin-6
  [4]   icedtea-bin-7  system-vm
  [5]   sun-jdk-1.5
  [6]   sun-jdk-1.6

Of the six java vms listed, only entries 2, 3 & 4 are valid. How do I get rid of the bad entries?

Also, what do I need 'emul-linux-x86-java-1.6 for? I understand it's Oracle's 32bit Java SE runtime environment. I'm just not sure why I need it or where it gets used. "equery d emul-linux-x86-java" doesn't list any packages which require it. If I don't actually need it, I'd like to dump it.

edit may 24, 2013

Reported as bug 471038
_________________
People whom think M$ is mediocre, don't know the half of it.


Last edited by dufeu on Sun May 26, 2013 2:54 am; edited 2 times in total
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 446
Location: Sao Paulo, Brazil

PostPosted: Tue May 21, 2013 8:47 pm    Post subject: Reply with quote

dufeu,
Set the java-vm you want to use/keep from the list and remove the corresponding packages from the others.
Best.
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 734
Location: US-FL-EST

PostPosted: Tue May 21, 2013 9:12 pm    Post subject: Reply with quote

ferreirafm wrote:
dufeu,
Set the java-vm you want to use/keep from the list and remove the corresponding packages from the others.
Best.

The problem is that the corresponding packages are not installed. i.e.:
Code:
# eix sun-jdk
* dev-java/sun-jdk
     Available versions:  (1.6) 1.6.0.43^fs 1.6.0.45^fs
       {+X alsa derby doc examples jce nsplugin pax_kernel source KERNEL="SunOS"}
     Homepage:            http://www.oracle.com/technetwork/java/javase/
     Description:         Oracle's Java SE Development Kit

So .. how do I get rid of the bad entries in this case?
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 446
Location: Sao Paulo, Brazil

PostPosted: Tue May 21, 2013 9:24 pm    Post subject: Reply with quote

You mean, you don't have those packages intalled?
What do you get from
Code:
equery list sun-jdk*


EDIT: it must be something really wrong. You shouldn't have the grep lines in your fist post
Code:
grep: /usr/share/java-config-2/vm/blackdown-jdk-1.4.2: No such file or directory
grep: /usr/share/java-config-2/vm/sun-jdk-1.5: No such file or directory
grep: /usr/share/java-config-2/vm/sun-jdk-1.6: No such file or directory
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 734
Location: US-FL-EST

PostPosted: Tue May 21, 2013 10:05 pm    Post subject: Reply with quote

ferreirafm wrote:
You mean, you don't have those packages intalled?
What do you get from
Code:
equery list sun-jdk*


EDIT: it must be something really wrong. You shouldn't have the grep lines in your fist post
Code:
grep: /usr/share/java-config-2/vm/blackdown-jdk-1.4.2: No such file or directory
grep: /usr/share/java-config-2/vm/sun-jdk-1.5: No such file or directory
grep: /usr/share/java-config-2/vm/sun-jdk-1.6: No such file or directory

{laughs} That's correct, those packages are not installed:
Code:
# equery list sun-jdk*
!!! Invalid CPV: 'sun-jdk*'
# equery list sun-jdk
 * Searching for sun-jdk ...
!!! No installed packages matching 'sun-jdk'

It's not that there's "something really wrong". Everything seems to function fine. The real issue here appears to be that there are some ancient artifacts left which 'eselect java-vm list' sees. I think that all that needs to be done is for me to be pointed to where I can manually remove the bad pointers.

Or perhaps there is a command where I can force regeneration of the relevant pointers. It just occurred to me that I can try unmerging app-admin/eselect-java and the re-emerging it.

EDIT - unmerging/re-emerging didn't work.
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 446
Location: Sao Paulo, Brazil

PostPosted: Wed May 22, 2013 1:05 pm    Post subject: Reply with quote

dufeu,
I meant "something really wrong" with eselect java-vm, as it isn't behaving as expected. Its clear that it must be some stuff left behind when you unmerge those packages. Something that came from head, would be to remove the java-vm module from eselect or even to unmerge eselect and remerge it again to see what happens. Have you tried one of these things?
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 734
Location: US-FL-EST

PostPosted: Wed May 22, 2013 10:56 pm    Post subject: Reply with quote

I did try to unmerge/re-emerge "app-admin/eselect-java". That did not resolve the issue.

The extra entries are an annoyance and not anything really important. None of the other eselect modules appear to be impacted. I'll probably file something in gentoo bugzilla this weekend.

Thank you for responding!
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 734
Location: US-FL-EST

PostPosted: Sun May 26, 2013 3:03 am    Post subject: Reply with quote

As I discussed with a very helpful dev bug# 471038, we determined that what I was seeing was cruft left over from incomplete uninstalls of java virtual machine packages. Consider:
Code:
# ls -l /usr/lib/jvm
total 0
lrwxrwxrwx 1 root root 27 Jul  6  2010 blackdown-jdk-1.4.2 -> /opt/blackdown-jdk-1.4.2.03
lrwxrwxrwx 1 root root 33 Apr 20 21:38 emul-linux-x86-java-1.6 -> /opt/emul-linux-x86-java-1.6.0.45
lrwxrwxrwx 1 root root 25 May 22 20:47 icedtea-bin-6 -> /opt/icedtea-bin-6.1.12.4
lrwxrwxrwx 1 root root 24 May  1 06:11 icedtea-bin-7 -> /opt/icedtea-bin-7.2.3.9
lrwxrwxrwx 1 root root 21 Jul  6  2010 sun-jdk-1.5 -> /opt/sun-jdk-1.5.0.21
lrwxrwxrwx 1 root root 21 Sep  2  2011 sun-jdk-1.6 -> /opt/sun-jdk-1.6.0.27

# ls -l /opt
total 88
drwxr-xr-x 4 root root 4096 Nov 30  2011 Adobe
drwxr-xr-x 2 root root 4096 Aug 25  2010 REALbasic2009r5
drwxr-xr-x 2 root root 4096 Apr 27 23:56 bin
drwxr-xr-x 3 root root 4096 Nov  2  2009 blackdown-jdk-1.4.2.03
drwxr-xr-x 3 root root 4096 Oct 10  2009 emul-linux-x86-java-1.6.0.06
drwxr-xr-x 3 root root 4096 Jul 27  2010 emul-linux-x86-java-1.6.0.20
drwxr-xr-x 5 root root 4096 Apr 20 21:38 emul-linux-x86-java-1.6.0.45
drwxr-xr-x 3 root root 4096 Apr  5  2011 firefox
drwxr-xr-x 7 root root 4096 May 22 20:47 icedtea-bin-6.1.12.4
drwxr-xr-x 7 root root 4096 May  1 06:11 icedtea-bin-7.2.3.9
drwxr-xr-x 5 root root 4096 May 22 20:47 icedtea-web-bin-6
drwxr-xr-x 5 root root 4096 Nov 25  2011 icedtea-web-bin-7
drwxr-xr-x 3 root root 4096 Jul 31  2011 icedtea6-bin-1.10.2
drwxr-xr-x 3 root root 4096 Aug  6  2010 icedtea6-bin-1.8.0
drwxr-xr-x 3 root root 4096 Jul 27  2010 netscape
drwxr-xr-x 2 root root 4096 Jul 14  2012 rar
drwxr-xr-x 4 root root 4096 Dec  1  2009 seamonkey
drwxr-xr-x 4 root root 4096 May  2  2012 stuffit
drwxr-xr-x 3 root root 4096 Oct 23  2009 sun-jdk-1.5.0.18
drwxr-xr-x 3 root root 4096 Aug 20  2011 sun-jdk-1.5.0.21
drwxr-xr-x 3 root root 4096 Jun  5  2009 sun-jdk-1.6.0.13
drwxr-xr-x 3 root root 4096 Jul 27  2010 sun-jdk-1.6.0.20

# du --max-depth=1 /opt
8   /opt/sun-jdk-1.5.0.21
126608   /opt/icedtea-bin-6.1.12.4
173644   /opt/Adobe
66244   /opt/icedtea-bin-7.2.3.9
332   /opt/seamonkey
8   /opt/icedtea6-bin-1.10.2
744   /opt/rar
8   /opt/blackdown-jdk-1.4.2.03
8   /opt/emul-linux-x86-java-1.6.0.06
8   /opt/REALbasic2009r5
8   /opt/sun-jdk-1.5.0.18
316   /opt/bin
123184   /opt/emul-linux-x86-java-1.6.0.45
16   /opt/firefox
8   /opt/sun-jdk-1.6.0.20
8   /opt/sun-jdk-1.6.0.13
888   /opt/icedtea-web-bin-6
8   /opt/icedtea6-bin-1.8.0
896   /opt/icedtea-web-bin-7
8   /opt/emul-linux-x86-java-1.6.0.20
184   /opt/netscape
5892   /opt/stuffit
499032   /opt

All of the sub-directories under /opt with a block allocation of 8 are essentially left over empty directories orphaned by which ever version of Portage was running at the time of the respective package's un-install.

Clean up consists of removing the broken symlinks under /usr/lib/jvm and the respective empty directories under /opt.
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum