Непонятки с Java VM

Обновилась java.

[~] # emerge -Cpv jdk
 virtual/jdk
    selected: 1.4.2 1.6.0 

[~] # emerge -Cpv jre
 virtual/jre
    selected: 1.6.0 

[~] # eselect java-vm list
Available Java Virtual Machines:
  [1]   blackdown-jdk-1.4.2 
  [2]   sun-jdk-1.6  system-vm

Теперь некоторые пакеты (которые с USE=java) не собираюся :( Сама ява работает, файлы в /etc/env.d/* не трогал.

>>> Emerging (1 of 1) media-libs/pdflib-7.0.2_p8 to /
 * PDFlib-Lite-7.0.2p8.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                       [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                      [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                     [ ok ]
 * checking PDFlib-Lite-7.0.2p8.tar.gz ;-) ...                                                                                             [ ok ]
Traceback (most recent call last):
  File "/usr/bin/depend-java-query", line 8, in <module>
    from java_config_2 import __version__
ImportError: No module named java_config_2
 * Unable to determine VM for building from dependencies:
NV_DEPEND: tcl? ( >=dev-lang/tcl-8.2 )
	    perl? ( >=dev-lang/perl-5.1 )
	    python? ( >=dev-lang/python-2.2 )
	java? ( >=virtual/jdk-1.4 )  =sys-devel/automake-1.10*
	>=sys-devel/autoconf-2.61
	sys-devel/libtool java? ( >=dev-java/java-config-2.0.33-r1 >=sys-apps/portage-2.1.2.7 )
VNEED: 
 * 
 * ERROR: media-libs/pdflib-7.0.2_p8 failed.
 * Call stack:
 *                ebuild.sh, line   49:  Called pkg_setup
 *   pdflib-7.0.2_p8.ebuild, line   35:  Called java-pkg-opt-2_pkg_setup
 *    java-pkg-opt-2.eclass, line   44:  Called java-pkg_init
 *      java-utils-2.eclass, line 2087:  Called java-pkg_switch-vm
 *      java-utils-2.eclass, line 2513:  Called die
 * The specific snippet of code:
 *   				die "Failed to determine VM for building."
 *  The die message:
 *   Failed to determine VM for building.
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-libs/pdflib-7.0.2_p8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/pdflib-7.0.2_p8/temp/die.env'.
 * 
!!! 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
 * Failed to fix =media-libs/pdflib-7.0.2_p8
 * Putting it in the queue for next run
 * Detected a repeat run. Something is probably wrong.
 * Aborting...
 * There was a problem fixing all the broken packages!
[~] # java-check-environment 
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many
 * respects.
 * Please refer to our upgrade guide for details:
 * 	http://www.gentoo.org/proj/en/java/java-upgrade.xml

 * Checking fastjar ...                                                                                                                    [ ok ]

 * Checking vm_environment_files ...                                                                                                       [ ok ]

 * Checking user_settings ...
 * Running as root. Don't need to check user settings.                                                                                     [ ok ]

 * Checking generation_1_system_vm ...
Traceback (most recent call last):
  File "/usr/bin/java-config-1", line 14, in <module>
    from java_config import jc_options
ImportError: No module named java_config
 * No Generation-1 System VM is set! (no /etc/env.d/20java)
Traceback (most recent call last):
  File "/usr/bin/java-config-1", line 14, in <module>
    from java_config import jc_options
ImportError: No module named java_config
 * It doesn't look like java-config-1 sees any installed VMs.
 * It is most likely because you don't have a 1.4 JDK installed
 * This is required for generation-1 to work properly.
 * You will want to emerge =virtual/jdk-1.4* 
emerge -pv =virtual/jdk-1.4*
[ebuild   R   ] virtual/jdk-1.4.2  0 kB

Читай

Читай внимательно http://www.gentoo.org/proj/en/java/java-upgrade.xml
Просто поставить и обновить java мало, надо ее еще включить.
_______________________
From Siberia with Love!

Спс

Спасибо :) Я даже и не знал, что там какая-то стандартная заморочка :)

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".