emerge of games-strategy/triplea-0.9.0.2 fails Reproducible: Always Steps to Reproduce: 1.emerge -av games-strategy/triplea 2. 3. bobbie ~ # emerge -av games-strategy/triplea These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] games-strategy/triplea-0.9.0.2 [0.9.0.1] 0 kB .... init: compile: [mkdir] Created dir: /var/tmp/portage/games-strategy/triplea-0.9.0.2/work/triplea_0_9_0_2/classes [copy] Copying 21 files to /var/tmp/portage/games-strategy/triplea-0.9.0.2/work/triplea_0_9_0_2/classes [javac] Compiling 491 source files to /var/tmp/portage/games-strategy/triplea-0.9.0.2/work/triplea_0_9_0_2/classes [javac] /var/tmp/portage/games-strategy/triplea-0.9.0.2/work/triplea_0_9_0_2/src/games/strategy/debug/Console.java:286: getWindows() in games.strategy.debug.Console cannot override getWindows() in java.awt.Window; attempting to use incompatible return type [javac] found : java.lang.String [javac] required: java.awt.Window[] [javac] public static String getWindows() [javac] ^ [javac] /var/tmp/portage/games-strategy/triplea-0.9.0.2/work/triplea_0_9_0_2/src/util/image/ImageShrinker.java:64: warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API and may be removed in a future release [javac] JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out); [javac] ^ [javac] /var/tmp/portage/games-strategy/triplea-0.9.0.2/work/triplea_0_9_0_2/src/util/image/ImageShrinker.java:64: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release [javac] JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out); [javac] ^ [javac] /var/tmp/portage/games-strategy/triplea-0.9.0.2/work/triplea_0_9_0_2/src/util/image/ImageShrinker.java:65: warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API and may be removed in a future release [javac] JPEGEncodeParam param = encoder. [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error [javac] 3 warnings BUILD FAILED /var/tmp/portage/games-strategy/triplea-0.9.0.2/work/triplea_0_9_0_2/build.xml:68: Compile failed; see the compiler error output for details. GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0" JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac" bobbie ~ # emerge --info Portage 2.1.2-r5 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r4 i686) ================================================================= System uname: 2.6.19-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1.50GHz Gentoo Base System version 1.12.9 Timestamp of tree: Tue, 30 Jan 2007 12:30:09 +0000 dev-java/java-config: 1.3.7, 2.0.31-r3 dev-lang/python: 2.3.6, 2.4.4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 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.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.19.2-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O3 -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch prelink sandbox sfperms strict" GENTOO_MIRRORS=" http://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://gentoo.inode.at/ http://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.mirror.solnet.ch" LANG="cs_CZ.UTF-8" LC_ALL="cs_CZ.UTF-8" LINGUAS="cs" MAKEOPTS="-j2" 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://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acpi alsa apache2 arts avi bash-completion berkdb bitmap-fonts bzip2 cdr cli cracklib crypt cups dbus directfb divx4linux dlloader dri dvd eds emboss encode examples fam fbcon ffmpeg firebird firefox foomaticdb fortran ftp gdbm gif gnome gnutls gpm gstreamer gtk gtk2 hal iconv imap imlib ipv6 isdnlog jabber java java5 jpeg jpeg2k jython kde kdeenablefinal libg++ libwww logrotate mad midi mikmod mmx mmx2 mng mono motif mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl oss pam pcmcia pcre perl png pnp postgres pppd python qt qt3 qt4 quicktime readline reflection samba sasl sdl seamonkey session spell spl sqlite sqlite3 sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 vorbis wifi wireshark x264 x86 xine xinerama xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vga vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I did a quick fix for myself by renaming the conflicting method (luckily apparently only used within that single java class) at the end of the ebuild's unpack() (and then re-digesting the ebuild): sed -i -e 's+getWindows+getMyWindows+' ${S}/src/games/strategy/debug/Console.java Maybe this could be a temporary fix in Gentoo until upstream gets Java 6 sorted out? Upstream report of this(?): http://sourceforge.net/tracker/index.php?func=detail&aid=1655283&group_id=44492&atid=439
sed -i -e 's+getWindows+getMyWindows+' ${S}/src/games/strategy/debug/Console.java That was supposed to be on one line ... I really should learn to use those attachments and just send patch's diff. Sry. :/
*** Bug 166157 has been marked as a duplicate of this bug. ***
Thanks.