emerge fails with java USE flag enabled ## emerge --info Portage 2.1.1_pre4-r2 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 i686) ================================================================= System uname: 2.6.17-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System version 1.12.4 ccache version 2.4 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 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=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://gentoo.mirrored.ca http://adelie.polymtl.ca/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.seren.com/gentoo" LINGUAS="en nl" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac alsa apache2 apm arts avi bitmap-fonts cairo cli crypt dlloader dri emboss encode esd firefox flac foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imlib isdnlog java jpeg kdeenablefinal libg++ libnotify libwww mad mikmod mp3 mpeg musicbrainz ncurses nls no-seamonkey nptl nptlonly ogg opengl oss pam pcre pdf pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl ssl tagwriting tcpd truetype truetype-fonts type1-fonts udev unicode userlocales vorbis xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_nl userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY I have attached the output of a complete emerge with only the java use flag enabled. Disabling the java USE flag results in a successfull compile.
Created attachment 93340 [details] output of "USE="-* java" emerge cyrus-sasl"
It's trying to use sun-jdk-1.5 because it's in your JAVA_HOME for some reason. I suppose you have migrated to the generation 2 java system. I think it suffers from this comment in java-pkg.eclass: # TODO need to make sure everything that inherits java-pkg and has a pkg_setup # uses java-pkg_pkg_setup java-pkg_pkg_setup() { Which is the case for this ebuild, it inherits java-pkg and defines pkg_setup, in which it should call java-pkg_pkg_setup to properly set generation-1 environment (1.4 jdk) and not rely on what is currently in your JAVA_HOME env. So I suppose (some java dev correct me if I'm wrong) the fix is to put this in pkg_setup(): use java && java-pkg_pkg_setup
That's correct Caster. That snippet should be added to all the revisions.
honestly, i don't even have java 1.4 installed on this machine. Maybe that's why there were some issues since it couldn't switch over to the old JDK.
(In reply to comment #4) > honestly, i don't even have java 1.4 installed on this machine. Maybe that's > why there were some issues since it couldn't switch over to the old JDK. How can you not have it? Well, once the ebuild(s) is corrected it will refuse to continue until you have valid gen-1 jdk set, and that can be only 1.4. Maybe the depends should also be updated to pull precisely =virtual-jdk-1.4* just to be sure.
I just setup this box yesterday, and just installed sun-jdk, which, if no version is specified, installs latest 1.5.0 (with ACCEPT_KEYWORDS="~x86" at least).
indeed, after emerging dev-java/sun-jdk-1.4.2.12-r1, dev-libs/cyrus-sasl-2.1.21-r2 emerges fine with the java USE flag enabled. I'll still look forward to the new ebuild. Thanks!
in dev-libs/cyrus-sasl-2.1.21-r3 and dev-libs/cyrus-sasl-2.1.22. Thanks, Tuan
(In reply to comment #8) > in dev-libs/cyrus-sasl-2.1.21-r3 and dev-libs/cyrus-sasl-2.1.22. I think the stable ebuilds should have been fixed too. With this, stable users will still get breakage...
Indeed. Would not hurt to apply it to all versions, including stable. The reason is that many people on stable systems were unmasking Java 1.5 back when it was masked... so when new Java system came out, they would have gotten it too.
Reopenning.
cyrus-sasl-2.1.21-r3.ebuild is bumped from stable ebuild. I am not certain what is the change going to do with stable profile so I followed policy to bump and drop to ~arch, stay 30 days then file a bug to call arches to stablize it. Anyone use use stable profile and add ~arch keyword to java should add ~arch to cyrus-sasl-2.1.21-r3 too. Anyway, feel free to call arches to stable -r3 if you think it won't hurt anything as I am not allowed to commit straight to stable.
The java-pkg_pkg_setup does the following (pseudo code): if you have java-config-2: do some magic to ensure JAVA_HOME is set properly else do nothing fi So, for a purely stable system, nothing changes. For people with a stable system with mixed keywords, it ensure that JAVA_HOME gets properly set, so the package can built properly. So if anything, not adding it to pkg_setup will break stable system running mixed keywords.
*** Bug 144401 has been marked as a duplicate of this bug. ***
How bout the stabilization then? 2.1.22 is old since may, 2.1.21-r3 almost month...
(In reply to comment #15) > How bout the stabilization then? 2.1.22 is old since may, 2.1.21-r3 almost > month... > let do it. Dear Arch teams, Please test and stabilize cyrus-sasl-2.1.22 at your spare time :) thank you!
*** Bug 146067 has been marked as a duplicate of this bug. ***
Unmarked bug 146067 as being a duplicate of this bug, because it's a different problem on a specific arch (amd64).
emerges fine on amd64, passes multilib-strict and collision-test, does not break packages depending on it. Portage 2.1-r2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-ck1-r3 x86_64) ================================================================= System uname: 2.6.17-ck1-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.4 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 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.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-test distlocks metadata-transfer parallel-fetch sandbox sfperms strict test" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ " LANG="en_US.ISO8859-1" LC_ALL="en_US.ISO8859-1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" 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/overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 X a52 aac acpi alsa amr asf avi berkdb bitmap-fonts bzip2 cairo cdda cddb cdinstall cdparanoia cdr cli crypt cups dbus dlloader dri dvd dvdr dvdread emboss encode expat fam firefox fortran gdbm gif glut gpm gstreamer gtk gtk2 hal imagemagick isdnlog jpeg lcms ldap libg++ lirc mad mikmod mng mp3 mpeg musicbrainz ncurses nls nptl nptlonly ogg opengl pam pcre pdflib php png ppds pppd quicktime readline reflection sdl session socks5 spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode v4l v4l2 vorbis x264 xine xinerama xml xorg xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_fglrx video_cards_radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS
Stable on mips.
ppc64 stable
1) emerges fine 2) passes collision test 3) passes test suite Portage 2.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686) ================================================================= System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.12.4 app-admin/eselect-compiler: [Not Present] dev-lang/python: 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.17 sys-devel/autoconf: 2.13, 2.59-r7 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.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/" LANG="de_DE@euro" LC_ALL="de_DE@euro" LINGUAS="de" 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.informatik.rwth-aachen.de/gentoo-portage" USE="x86 3dnow 3dnowext X Xaw3d a52 alsa arts artworkextra asf audiofile avi bash-completion beagle berkdb bidi bitmap-fonts bootsplash branding bzip2 cairo cdda cddb cdparanoia cdr cli cracklib crypt css cups curl custom-cflags dbus dga directfb divx4linux dlloader dri dts dvd dvdr dvdread dvi eds emacs emboss encode esd evo exif expat fam fat fbcon ffmpeg firefox fortran ftp gb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal icq idn imagemagick imap ipv6 isdnlog java javascript jikes jpeg jpeg2k ldap leim libg++ lm_sensors mad maildir matroska mbox mikmod mime mmx mmxext mng mono mp3 mpeg mpeg2 mule nautilus ncurses nforce2 nls nocardbus nptl nptlonly nsplugin nvidia objc ogg opengl pam pcre pdf pdflib perl plotutils pmu png ppds pppd preview-latex print python qt3 qt4 quicktime readline reflection reiserfs samba sdk session slang spell spl sse ssl svg svga t1lib tcltk tcpd tetex theora thunderbird tiff truetype truetype-fonts type1-fonts udev usb vcd videos vorbis win32codecs wmf wxwindows xine xml xorg xosd xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_de userland_GNU video_cards_radeon video_cards_vesa video_cards_fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
sparc stable.
*** Bug 146558 has been marked as a duplicate of this bug. ***
Just noting that this is needed for openssl-0.9.8c as well.
*** Bug 146574 has been marked as a duplicate of this bug. ***
During revdep-rebuild because of the OpenSSL version bump I
During revdep-rebuild because of the OpenSSL version bump I´ve seen the problem Jakub Moc has mentioned: cyrus-sasl-2.1.21 does not compile, but dev-libs/cyrus-sasl-2.1.22 does. Just wanted to let you know that things seem to work fine on x86.
x86 stable after much poking and compiling.
*** Bug 147424 has been marked as a duplicate of this bug. ***
hppa stable.
Alpha done.
Stabled on ppc by dertobi123, so removing ppc from cc
All done, closing.