Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268251 - dev-util/netbeans-6.7_beta fails to emerge becase of missing classpath entry
Summary: dev-util/netbeans-6.7_beta fails to emerge becase of missing classpath entry
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-02 08:55 UTC by Juergen Rose
Modified: 2009-05-03 22:31 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 Juergen Rose 2009-05-02 08:55:43 UTC
'emerge netbeans' fails with:
...
projectized.build-init:

BUILD FAILED
/var/tmp/portage/dev-util/netbeans-6.7_beta/work/nbbuild/build.xml:270: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.7_beta/work/nbbuild/templates/projectized.xml:87: No such classpath entry: /var/tmp/portage/dev-util/netbeans-6.7_beta/work/nbbuild/netbeans/enterprise5/modules/org-netbeans-modules-j2eeapis.jar

Total time: 8 minutes 42 seconds
 * 
 * ERROR: dev-util/netbeans-6.7_beta failed.


Reproducible: Always




root@lynx:/root(41)# emerge --info
Portage 2.1.6.12 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.0.0
Timestamp of tree: Sat, 02 May 2009 07:00:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2, 2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/sha
re/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/ph
p/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat
.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --excl
ude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/n4g /usr/local/portage/layman/zugaina /usr/local/portage/layman/dotnet /usr/local/portage/layman/science /usr/local/
portage/layman/jokey /usr/local/portage/layman/java-overlay /usr/local/portage/layman/suka /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount bash-completion beagle be
rkdb bjam blas bluetooth bonobo boo boost branding bzip2 c++ cairo cardbus cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib cran crypt c
ups curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi doc dri ds3490 dv dvb dvd dvdr dvdread dvi dxr3 dynagraph eds effects elf emacs emboss enco
de epiphany esd evo examples exif expat extra fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx galago gd gdal gdbm geos gif gimp gimpprint gi
nac glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened harness hddtem
p hdf hdf5 hlapi http hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda irmc isdnlog ithreads jabber java java5 java6 jbig john jpeg jpeg2k kde 
kde4 kdeprefix kerberos kexi keyring kvm ladspa lame lapack laptop latex lcms ldap libffi libgda libnotify libsamplerate lirc lua lzo lzw mad maildir mailwrapp
er math matroska midi mikmod mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mtp mudflap multilib musicbr
ainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs numarray numeric nvidia obex ocaml octave
 odbc ogdi ogg ole opengl openmp pae pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj proje
ctx pstricks python qhull qt3 qt3support qt4 quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl session slang slp s
mp sndfile snmp soup sox speex spell spl sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg sysfs t1lib tcl tcpd tex theora threa
ds thunderbird tidy tiff tk truetype unicode usb userlocales utempter v4l2 vorbis webkit wifi wmf wxwindows xattr xcb xemacs xext xine xml xmlreader xmlrpc xor
g xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug 
ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn
_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd defla
te dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy pro
xy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-wt220u" ELIBC="glibc"
 INPUT_DEVICES="keyboard mouse                 synaptics               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb n
curses text" LINGUAS="de fr" NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Miroslav Šulc gentoo-dev 2009-05-02 14:43:10 UTC
I cannot reproduce it with this setup (using netbeans-6.7_beta-r1):

$ NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" emerge -vp netbeans

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

Calculating dependencies... done!
[ebuild     UD] dev-util/netbeans-6.7_beta [6.7_beta-r1] USE="-debug -doc" LINGUAS="-de -es -fr -it -ja -pl -pt_BR -ru -sq -tr -zh_CN -zh_TW" NETBEANS_MODULES="apisupport groovy harness ide java nb websvccommon -cnd* -dlight* -enterprise* -ergonomics* -identity* -mobility* -php* -profiler* -ruby* -webcommon*" 0 kB

What is your exact netbeans-6.7 ebuild setup and what is the jdk used? You can also include the failure info below the build failure, like JDK, command issued etc.
Comment 2 Juergen Rose 2009-05-03 11:13:10 UTC
I have the following:
root@lynx:/root(17)# eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea6 
  [2]   sun-jdk-1.5 
  [3]   sun-jdk-1.6  system-vm
root@lynx:/root(18)# java-config -L
The following VMs are available for generation-2:
1)      OpenJDK6/IcedTea6 1.4.1 [icedtea6]
2)      Sun JDK 1.5.0.18 [sun-jdk-1.5]
*)      Sun JDK 1.6.0.13 [sun-jdk-1.6]
root@lynx:/root(19)# emerge -pvuDN netbeans

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

Calculating dependencies... done!
[ebuild  NS   ] dev-util/netbeans-6.7_beta [6.5-r4] USE="doc -debug" LINGUAS="de fr -es -it -ja -pl -pt_BR -ru -sq -tr -zh_CN -zh_TW" NETBEANS_MODULES="apisupport groovy harness ide java nb websvccommon -cnd -dlight -enterprise -ergonomics -identity -mobility -php -profiler -ruby -webcommon" 0 kB

root@lynx:/root(19)# emerge -pvuDN netbeans

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

Calculating dependencies... done!
[ebuild  NS   ] dev-util/netbeans-6.7_beta [6.5-r4] USE="doc -debug" LINGUAS="de fr -es -it -ja -pl -pt_BR -ru -sq -tr -zh_CN -zh_TW" NETBEANS_MODULES="apisupp
ort groovy harness ide java nb websvccommon -cnd -dlight -enterprise -ergonomics -identity -mobility -php -profiler -ruby -webcommon" 0 kB

Total: 1 package (1 in new slot), Size of downloads: 0 kB
root@lynx:/root(20)# NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java
> xml" emerge -vp netbeans

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

Calculating dependencies... done!
[ebuild  NS   ] dev-util/netbeans-6.7_beta [6.5-r4] USE="doc -debug" LINGUAS="de fr -es -it -ja -pl -pt_BR -ru -sq -tr -zh_CN -zh_TW" NETBEANS_MODULES="apisupp
ort groovy harness ide java nb websvccommon -cnd -dlight -enterprise -ergonomics -identity -mobility -php -profiler -ruby -webcommon" 0 kB

Total: 1 package (1 in new slot), Size of downloads: 0 kB
root@lynx:/root(21)# NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" emerge -vp netbeans

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

Calculating dependencies... done!
[ebuild  NS   ] dev-util/netbeans-6.7_beta [6.5-r4] USE="doc -debug" LINGUAS="de fr -es -it -ja -pl -pt_BR -ru -sq -tr -zh_CN -zh_TW" NETBEANS_MODULES="apisupp
ort groovy harness ide java nb websvccommon -cnd -dlight -enterprise -ergonomics -identity -mobility -php -profiler -ruby -webcommon" 0 kB

Total: 1 package (1 in new slot), Size of downloads: 0 kB
root@lynx:/root(22)# NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" emerge -v netbeans

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

Calculating dependencies... done!
[ebuild  NS   ] dev-util/netbeans-6.7_beta [6.5-r4] USE="doc -debug" LINGUAS="de fr -es -it -ja -pl -pt_BR -ru -sq -tr -zh_CN -zh_TW" NETBEANS_MODULES="apisupp
ort groovy harness ide java nb websvccommon -cnd -dlight -enterprise -ergonomics -identity -mobility -php -profiler -ruby -webcommon" 0 kB

Total: 1 package (1 in new slot), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-util/netbeans-6.7_beta
 * netbeans-6.7beta-200904242137-src.zip RMD160 SHA1 SHA256 size ;-) ...                                                                                [ ok ]
 * netbeans-6.5-l10n-20081119172200.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                  [ ok ]
 * Using: sun-jdk-1.6
>>> Unpacking source...
>>> Unpacking netbeans-6.5-l10n-20081119172200.tar.bz2 to /var/tmp/portage/dev-util/netbeans-6.7_beta/work
>>> Unpacking netbeans-6.7beta-200904242137-src.zip to /var/tmp/portage/dev-util/netbeans-6.7_beta/work
...
[subant-junit] Entering: /var/tmp/portage/dev-util/netbeans-6.7_beta/work/j2eeserver

init-tasks:

default.init:
[propertyfile] Updating property file: /var/tmp/portage/dev-util/netbeans-6.7_beta/work/nbbuild/netbeans/moduleCluster.properties
...
projectized.build-init:

BUILD FAILED
/var/tmp/portage/dev-util/netbeans-6.7_beta/work/nbbuild/build.xml:270: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.7_beta/work/nbbuild/templates/projectized.xml:87: No such classpath entry: /var/tmp/portage/dev-util/netbeans-6.7_beta/wor
k/nbbuild/netbeans/enterprise5/modules/org-netbeans-modules-j2eeapis.jar
Comment 3 Juergen Rose 2009-05-03 11:15:53 UTC
Then I still get:
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.13"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info

>>> Failed to emerge dev-util/netbeans-6.7_beta, Log file:

I could also add /var/tmp/portage/dev-util/netbeans-6.7_beta/temp/build.log. But has a size of more than 3MB, and I am afraid it is therfore not accepted.
Comment 4 Miroslav Šulc gentoo-dev 2009-05-03 22:31:00 UTC
Ah, now i can see where the problem is. Building netbeans with 'doc' USE flag requires all modules being turned on. You have two choices:
- if you really need javadoc api for netbeans sources, then enable all modules
- if you do not need it, simply add to your /etc/portage/package.use line dev-util/netbeans -doc (you'll still have netbeans user doc available with -doc)

This fix is in netbeans ebuild since netbeans-6.7_beta-r2. The latest is -r3 atm and -r4 coming soon (fix for one ruby cluster jar symlink)