Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162791 - dev-java/nanoxml-2.2.3-r1 emerge fails with USE="doc"
Summary: dev-java/nanoxml-2.2.3-r1 emerge fails with USE="doc"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-19 13:06 UTC by Ervin Peters
Modified: 2007-01-19 13:47 UTC (History)
0 users

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 Ervin Peters 2007-01-19 13:06:02 UTC
During the emerge nanoxml fails to build:

------------------->8------------------------
net/n3/nanoxml/XMLWriter.java:235: warning: as of release 5, 'enum' is a keyword, and may not be used as an identifier
(use -source 5 or higher to use 'enum' as a keyword)
               IXMLElement child = (IXMLElement) enum.nextElement();
                                                 ^
45 warnings
Compiling NanoXML/SAX 2.2.3
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Generating JavaDoc
Loading source files for package net.n3.nanoxml...
/var/tmp/portage/nanoxml-2.2.3-r1/work/NanoXML-2.2.3/Sources/Java/net/n3/nanoxml/XMLWriter.java:185: as of release 5, 'enum' is a keyword, and may not be used as an identifier
(use -source 1.4 or lower to use 'enum' as an identifier)
         Enumeration enum = xml.enumerateAttributeNames();
                     ^
/var/tmp/portage/nanoxml-2.2.3-r1/work/NanoXML-2.2.3/Sources/Java/net/n3/nanoxml/XMLWriter.java:187: as of release 5, 'enum' is a keyword, and may not be used as an identifier
(use -source 1.4 or lower to use 'enum' as an identifier)
         while (enum.hasMoreElements()) {

[..]

/var/tmp/portage/nanoxml-2.2.3-r1/work/NanoXML-2.2.3/Sources/Lite/nanoxml/XMLElement.java:2193: as of release 5, 'enum' is a keyword, and may not be used as an identifier
(use -source 1.4 or lower to use 'enum' as an identifier)
            while (enum.hasMoreElements()) {
                   ^
/var/tmp/portage/nanoxml-2.2.3-r1/work/NanoXML-2.2.3/Sources/Lite/nanoxml/XMLElement.java:2194: as of release 5, 'enum' is a keyword, and may not be used as an identifier
(use -source 1.4 or lower to use 'enum' as an identifier)
                XMLElement child = (XMLElement) enum.nextElement();
                                                ^
60 errors

!!! ERROR: dev-java/nanoxml-2.2.3-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  nanoxml-2.2.3-r1.ebuild, line 36:   Called die

!!! failed to build
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! 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"
JAVACFLAGS="-source 1.3 -target 1.3" COMPILER=""
and of course, the output of emerge --info
ghobi peters # emerge -auvND world

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

Calculating world dependencies /
!!! Ebuilds for the following packages are either all
!!! masked or don't exist:
media-plugins/alsa-jack media-video/avidemux

... done!
[ebuild     U ] dev-java/nanoxml-2.2.3-r1 [2.2.3] USE="doc" 0 kB 
------------------->8------------------------

you may want to see:

------------------->8------------------------
ghobi peters # emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r4 i686)
=================================================================
System uname: 2.6.18-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.6
Last Sync: Fri, 19 Jan 2007 10:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/      ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de en"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://balu.pool2000.nohra/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acpi alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 applet avalon bash-completion berkdb bidi binfilter bitmap-fonts bonobo browserplugin cairo cdparanoia cdr cli cpudetection cracklib crypt css cups dbus dga divx4linux dlloader doc dri dv dvb dvd dvdr dvdread dvi effects elibc_glibc emboss encode esd examples fam fame fastcgi fbcon firefox flash font-server fortran fpx gb gcj gdbm gif gimp gimpprint glitz glx gmtfull gmthigh gmtsuppl gnome gnome-print gnomedb gpm graphviz gstreamer gtk gtkhtml hal hardenedphp iconv ieee1394 imagemagick imap inkjar input_devices_keyboard input_devices_mouse ipv6 isdnlog javamail jbig jce jikes jpeg jpeg2k kerberos kernel_linux krb4 lame lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text ldap libg++ libgda linguas_de linguas_en live lm_sensors lzo lzw mad mikmod mime mjpeg mmx mmxext mng mozcalendar mozdevelop mozsvg mozxmlterm mp3 mpeg mpeg2 mpeg4 nautilus ncurses nls nocardbus nptl nptlonly nvidia offensive ogg opengl oss pam pcre pdf perl pg-hier plotutils plugin png ppds pppd python qt3 qt4 quicktime readline real reflection sdl seamonkey session slp smp source spell spl sse sse2 ssl svg svgatcltk svgz t1lib tcpd theora tiff truetype truetype-fonts type1 type1-fonts udev unicode userland_GNU userlocales v4l v4l2 video_cards_fbdev video_cards_nvidia video_cards_vesa vorbis win32codecs wmf wxwindows xface xml xorg xpm xprint xscreensaver xv xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
------------------->8------------------------

ervin
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2007-01-19 13:47:28 UTC
This is fixed in nanoxml-2.2.3-r2. It only fails when you have the doc use flag on and you are using sun-jdk-1.6. This is a problem with the sun-jdk-1.6 javadoc (bug 158720). If you are using ~arch jdk you should usually be using ~arch packages too. I will not request a premature stable for this as it only affects ~arch. Please reopen if you can get 2.3.1-r1 to fail with a stable jdk.

*nanoxml-2.2.3-r2 (14 Jan 2007)

  14 Jan 2007; Petteri Räty <betelgeuse@gentoo.org>
  +nanoxml-2.2.3-r2.ebuild:
  Make this installable with sun-jdk-1.6.