Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cleaning up jdk:1.5 {sun-jdk-1.5 and friends}
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
dufeu
l33t
l33t


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

PostPosted: Tue Jul 27, 2010 3:19 pm    Post subject: Cleaning up jdk:1.5 {sun-jdk-1.5 and friends} Reply with quote

The package: sun-jdk:1.5 is officially deprecated and the associated ebuilds are masked for deletion from portage.
Code:
# ls -l /usr/portage/dev-java/sun-jdk/
total 92
-rw-r--r-- 1 root root 53532 Jul  8 18:35 ChangeLog
-rw-r--r-- 1 root root  2824 Jul  8 18:35 Manifest
drwxr-xr-x 2 root root  4096 Dec 22  2009 files
-rw-r--r-- 1 root root   429 May 31  2009 metadata.xml
-rw-r--r-- 1 root root  4188 Mar 31 12:11 sun-jdk-1.5.0.22-r1.ebuild
-rw-r--r-- 1 root root  5146 Apr 26 15:35 sun-jdk-1.6.0.20.ebuild
-rw-r--r-- 1 root root  5148 Jul  8 18:20 sun-jdk-1.6.0.21.ebuild

# emerge -pv =dev-java/sun-jdk-1.5.0.22-r1

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy "=dev-java/sun-jdk-1.5.0.22-r1" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-java/sun-jdk-1.5.0.22-r1 (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Vlastimil Babka <caster@gentoo.org> (30 Jun 2010)
# Masked for removal due to EOL and security, bug #292001.
# Do this to avoid pulling other 1.5 JDK:
#   emerge -av --depclean sun-jdk:1.5 jdk:1.5 jre:1.5

If you follow the instructions in the masked package message, the indicated packages may not be removed by 'emerge --depclean':
Code:
# emerge -av --depclean sun-jdk:1.5 jdk:1.5 jre:1.5

Calculating dependencies... done!
  dev-java/sun-jdk-1.5.0.21 pulled in by:
    virtual/jdk-1.5.0

  virtual/jdk-1.5.0 pulled in by:
    dev-db/hsqldb-1.8.0.10

>>> No packages selected for removal by depclean
Packages installed:   1859
Packages in world:    1113
Packages in system:   50
Required packages:    1859
Number removed:       0

Depending on how your system is configured, you may have packages installed which were compiled using 'javac'. You need to determine which ones these are and re-install them. I approached the problem by manually using 'equery':
Code:
# equery d hsqldb
 * These packages depend on hsqldb:
dev-java/jaxme-0.5.2 (dev-db/hsqldb:0)

# equery d jaxme
 * These packages depend on jaxme:
dev-java/dom4j-1.6.1-r3 (dev-java/jaxme:0)
dev-java/jsr173-1.0-r1 (dev-java/jaxme)

# equery d dom4j jsr173
 * These packages depend on dom4j:
dev-java/jaxen-1.1.1 (=dev-java/dom4j-1*)

 * These packages depend on jsr173:
dev-java/dom4j-1.6.1-r3 (dev-java/jsr173:0)

# equery d jaxen
 * These packages depend on jaxen:
dev-java/jdom-jaxen-1.0-r1 (=dev-java/jaxen-1.1*)

# equery d jdom-jaxen
 * These packages depend on jdom-jaxen:
dev-java/jaxen-1.1.1 (~dev-java/jdom-1.0)
dev-java/jdom-jaxen-1.0-r1 (~dev-java/jdom-1.0)

Note the interrelated dependencies. Instead of 'emerge --depclean', you may need to do 'emerge -C' to remove these packages.
Code:
# emerge -C hsqldb jaxme dom4j jsr173 jaxen jdom-jaxen
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

 dev-db/hsqldb
    selected: 1.8.0.10
   protected: none
     omitted: none

 dev-java/jaxme
    selected: 0.5.2
   protected: none
     omitted: none

 dev-java/dom4j
    selected: 1.6.1-r3
   protected: none
     omitted: none

 dev-java/jsr173
    selected: 1.0-r1
   protected: none
     omitted: none

 dev-java/jaxen
    selected: 1.1.1
   protected: none
     omitted: none

 dev-java/jdom-jaxen
    selected: 1.0-r1
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in:  5 4 3 2 1
>>> Unmerging dev-db/hsqldb-1.8.0.10...
>>> Unmerging dev-java/jaxme-0.5.2...
>>> Unmerging dev-java/dom4j-1.6.1-r3...
>>> Unmerging dev-java/jsr173-1.0-r1...
>>> Unmerging dev-java/jaxen-1.1.1...
>>> Unmerging dev-java/jdom-jaxen-1.0-r1...

 * GNU info directory index is up-to-date.

Once removed, you can then follow the instructions given in the masked package message:
Code:
# emerge -av --depclean sun-jdk:1.5 jdk:1.5 jre:1.5

Calculating dependencies... done!
>>> Checking for lib consumers...

>>> These are the packages that would be unmerged:                                                                                                         
                                                                                                                                                           
 virtual/jdk
    selected: 1.5.0
   protected: none
     omitted: 1.6.0

 dev-java/sun-jdk
    selected: 1.5.0.21
   protected: none
     omitted: 1.6.0.21

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Would you like to unmerge these packages? [Yes/No] Yes
>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in:  5 4 3 2 1
>>> Unmerging virtual/jdk-1.5.0...
No package files given... Grabbing a set.
>>> Unmerging dev-java/sun-jdk-1.5.0.21...

{snip}

 * Updating desktop mime database ...
Packages installed:   1851
Packages in world:    1112
Packages in system:   50
Required packages:    1851
Number removed:       2

 * GNU info directory index is up-to-date.

You now need to reinstall the packages you removed earlier in order to clean up sun-jdk:1.5.
Code:
# emerge -puNDv world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-db/hsqldb-1.8.1.2-r1  USE="-doc -source -test" 3,435 kB
[ebuild  N    ] dev-java/jaxme-0.5.2  USE="-doc -source" 0 kB
[ebuild  N    ] dev-java/jsr173-1.0-r1  USE="-doc -source" 0 kB
[ebuild  N    ] dev-java/dom4j-1.6.1-r3  USE="-doc -source -test" 0 kB
[ebuild  N    ] dev-java/jaxen-1.1.1  USE="-doc -examples -source -test" 0 kB
[ebuild  N    ] dev-java/jdom-jaxen-1.0-r1  0 kB

Total: 6 packages (6 new), Size of downloads: 3,435 kB

This will go to completion as normal.

sun-jdk:1.5 and virtual friends are now gone.
_________________
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 Documentation, Tips & Tricks 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