Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140565 - broken javac prevents multiple emerges
Summary: broken javac prevents multiple emerges
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-15 14:33 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2006-07-15 23:24 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 DEMAINE Benoît-Pierre, aka DoubleHP 2006-07-15 14:33:06 UTC
MAKEOPTS="-j1" emerge -va1 mDNSResponder
=>
i686-pc-linux-gnu-gcc -I. -I../mDNSCore -I../mDNSShared -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -Os -DMDNS_DEBUGMSGS=0  -O2 -march=pentium3 -pipe -c -fPIC -o objects/prod/nss_mdns.c.so.o nss_mdns.c
Name Service Switch module done
/usr/portage/net-misc/mDNSResponder/mDNSResponder-107.5.ebuild: line 27: local: `debug,': not a valid identifier
 * Running emake  os=linux CC=i686-pc-linux-gnu-gcc LD=i686-pc-linux-gnu-gcc -shared JDK=/opt/blackdown-jre-1.4.2.03 OPT_CFLAGS=-O2 -march=pentium3 -pipe LIBFLAGS= STRIP=true LOCALBASE=/usr Java
/opt/blackdown-jre-1.4.2.03/bin/javac -d objects/prod -classpath objects/prod ../mDNSShared/Java/DNSSDService.java
make: /opt/blackdown-jre-1.4.2.03/bin/javac: Command not found
make: *** [objects/prod/com/apple/dnssd/DNSSDService.class] Error 127

!!! ERROR: net-misc/mDNSResponder-107.5 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  mDNSResponder-107.5.ebuild, line 43:   Called die

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

root@moon_gen:~# javac
Tried to execute /usr/lib/jvm/blackdown-jre-1.4.2/bin/javac and /usr/lib/jvm/blackdown-jre-1.4.2/jre/bin/javac, but neither exist.
Perhaps there is something wrong with the install of blackdown-jre-1.4.2?

I have re-emerged (emerge -C / emerge) both blackdown-jre-1.4.2 and dev-java/java-config-2.0.26-r3, checked enotices, and revdep-rebuild ... did not help nor fix.

I put severity=major because Java now prevents installing many other ebuilds, even if I now tell about only one.

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Today this is blocking mDNS, but it may break any emerge depending on Java. Some people reported that MAKEOPTS="-j1" or installing SDK may help; but still, I consider that portage should not lead to such situations: if -j1 is required for an ebuild, then this should be hardcoded in the ebuild ! If SDK is required, then a dependency should be put in the ebuild.

If javac prevents installing mDNS things, and equery repots javac is installed by java-config, then java-config sould autocatically make things work, or send a notice about how to make it work.

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Gentoo Base System version 1.12.1
Portage 2.1.1_pre2-r8 (default-linux/x86/2005.1, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r1-Gentoo-moon_08 i686)
=================================================================
                       System Settings
=================================================================
System uname: 2.6.17-gentoo-r1-Gentoo-moon_08 i686 mobile AMD Athlon(tm) 4 Processor
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.ISO-8859-15"
LC_ALL="en_GB.ISO-8859-15"
LINGUAS="en fr"
MAKEOPTS="-j2"
PKGDIR="/tmp"
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="/mnt/big"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dfx X a52 aac aalib acpi aim alsa amr amuled ao apache2 apic apm arts audiofile avi bash-completion berkdb bidi binfilter bitmap-fonts bl bonjour bootsplash cdda cdparanoia cdr cjk cli cmov cpudetection crypt cups curl cx8 dbus de dga directfb djvu dlloader dmi dmx doc dri dts dv dvb dvd dvdread dvi dynamic eds emboss encode esd ethereal examples fam fbcon ffmpeg flac flash foomaticdb fortran fping fpu freetype fxsr gdbm ggi gif gnome gnutls gpm gs gstreamer gtk gtk2 httpd i8x0 icq idea idn ieee1394 imagemagick imlib ipv6 irc isdnlog jabber jack java javascript jpeg kde lcms libcaca libg++ libwww lirc listentcp live lj logrotate lzo mad matrox mca mce mikmod mmx mmxext mono motif mozcalendar mp3 mpeg mplayer msn msr mtrr mtyhtv ncurses network nls no-htdocs nptl nptlonly nsplugin offensive ogg oggvorbis opengl oss pae pam pat pcre pdflib perl pge png pppd pse pse36 python qt qt3 qt4 quicktime rar readline real reflection rss rtc rtsp samba screen sdl sensord sep server session silc skey skins sndfile speex spell spl sse ssl startup-notification stream subtitles svg svga swat symlink tcpd tga theora threads tiff transmitter truetype truetype-fonts tsc type1-fonts udev unicode urandom usb v4l v4l2 vcd vim vlm vme vorbis win32codecs wmf wxwindows x264 xanim xinerama xml2 xmms xorg xosd xscreensaver xv xvid xvmc yahoo zeroconf zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_-wacom kernel_linux linguas_en linguas_fr lirc_devices_-com1 lirc_devices_-com2 lirc_devices_-userspace lirc_devices_usbirboy userland_GNU video_cards_apm video_cards_chips video_cards_cirrus video_cards_fbdev video_cards_i810 video_cards_i128 video_cards_mga video_cards_nv video_cards_-nvidia video_cards_s3 video_cards_s3virge video_cards_sis video_cards_tga video_cards_trident video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_tdfx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-07-15 16:55:10 UTC
The problem is that you're using a JRE for the generation-1 system vm. It needs to be a JDK. Switch to blackdown-jdk, and that should fix the problem.
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2006-07-15 23:24:33 UTC
root@moon_gen:~# emerge -va1 blackdown-jdk blackdown-jre
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild   R   ] dev-java/blackdown-jdk-1.4.2.03-r12  USE="doc nsplugin" 0 kB
[ebuild   R   ] dev-java/blackdown-jre-1.4.2.03-r11  USE="nsplugin" 0 kB
Total size of downloads: 0 kB
Would you like to merge these packages? [Yes/No] n
Quitting.

from what you say, either there is still a bug, or there is still a bug :)
- jdk should conflict with jre
- jdk still not suffisant

Iid not select manually any of those; if I had, one of those should be in my world file; since there is none, I shall conclude that portage decided to install both. That why in your comment I reject the part inducing that I choosed any: "you're using a JRE for the generation-1". I mean, if there is a problem in that part of my syste
Comment 3 DEMAINE Benoît-Pierre, aka DoubleHP 2006-07-15 23:24:33 UTC
root@moon_gen:~# emerge -va1 blackdown-jdk blackdown-jre
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild   R   ] dev-java/blackdown-jdk-1.4.2.03-r12  USE="doc nsplugin" 0 kB
[ebuild   R   ] dev-java/blackdown-jre-1.4.2.03-r11  USE="nsplugin" 0 kB
Total size of downloads: 0 kB
Would you like to merge these packages? [Yes/No] n
Quitting.

from what you say, either there is still a bug, or there is still a bug :)
- jdk should conflict with jre
- jdk still not suffisant

Iid not select manually any of those; if I had, one of those should be in my world file; since there is none, I shall conclude that portage decided to install both. That why in your comment I reject the part inducing that I choosed any: "you're using a JRE for the generation-1". I mean, if there is a problem in that part of my systeù, then portage installed (mis-installed, or ommited a apckage) the problem.

Thats why I reported, and ask for a fix at portage level.

I dont deny I ever asked for Java; I am very likely to put it in USE flags to get Java applets work in FireFox ...

From /var/log/emerge.log , I can confirm that _I_ (as root) never asked explicitely to emerge any blackdown. So, since it is installed, portage decided to (due to USE flags of course).

Please consider REOPEN