Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325981 - net-libs/xulrunner-1.9.2.6 fails to build - JAVA_HOME problem
Summary: net-libs/xulrunner-1.9.2.6 fails to build - JAVA_HOME problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 13:22 UTC by Helmut Jarausch
Modified: 2010-08-10 19:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,24.07 KB, text/plain)
2010-06-28 13:23 UTC, Helmut Jarausch
Details
virtual-jre-handling.patch (virtual-jre-handling.patch,804 bytes, patch)
2010-07-17 09:24 UTC, Petteri Räty (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2010-06-28 13:22:50 UTC
emerge net-libs/xulrunner-1.9.2.6 fails to build with
configure: error: The header jni.h was not found.  Set $JAVA_HOME to your java sdk directory, use --with-java-bin-path={java-bin-dir}, or reconfigure with --disable-javaxpcom.

But JAVA_HOME seems to be valid pointing to  /usr/lib/jvm//sun-jdk-1.6



Reproducible: Always




emerge --info '=net-libs/xulrunner-1.9.2.6'                               
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-ck-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-ck-r1-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.0.1
Timestamp of tree: Mon, 28 Jun 2010 12:15:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.6.3-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1, 4.5.0, 4.6.0_pre9999
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -msse3 -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/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/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"
CXXFLAGS="-mtune=native -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j4"
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 --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 atm avahi berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gfortran gif gimp gnome gpm gtk gtk2 hal iconv ipv6 jpeg kde lapack lcms libnotify mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt qt3support qt4 readline reflection sdl session smp spell spl sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcl tcpd threads tiff tk truetype unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Helmut Jarausch 2010-06-28 13:23:57 UTC
Created attachment 236811 [details]
build log
Comment 2 Rafał Mużyło 2010-06-28 13:32:13 UTC
What does 'java-config -L' print for root ?
Comment 3 Helmut Jarausch 2010-06-28 15:31:03 UTC
(In reply to comment #2)
> What does 'java-config -L' print for root ?
> 

31 # java-config -L
The following VMs are available for generation-2:
1)      Sun 32bit JRE 1.6.0.20 [emul-linux-x86-java-1.6]
2)      OpenJDK6/IcedTea6 1.8 [icedtea6]
3)      Sun JDK 1.6.0.20 [sun-jdk-1.6]
*)      Sun JRE 1.6.0.20 [sun-jre-bin-1.6]
Comment 4 Helmut Jarausch 2010-06-28 15:43:36 UTC
(In reply to comment #2)
> What does 'java-config -L' print for root ?
> 

I've changed it to Sun JDK (instead of Sun JRE) and now it works.
Many thanks,
Helmut.
Comment 5 lumbrius 2010-07-11 05:13:50 UTC
Same there on x86, but I do not want to install additional java VM (I'm happy with sun jre) to "solve" problem that way...
Comment 6 pavel sanda 2010-07-15 13:33:46 UTC
at least user should have been warned before emerging xulrunner that sun-jre is not enough. the current emerge failure wont give much clue what to do.
Comment 7 Jory A. Pratt gentoo-dev 2010-07-15 13:44:16 UTC
(In reply to comment #6)
> at least user should have been warned before emerging xulrunner that sun-jre is
> not enough. the current emerge failure wont give much clue what to do.
> 

DEPEND="java? ( >=virtual/jdk-1.4 ) <~~ dep is on the jdk which jre's can not satisfy.

Java team if you see I have missed something as far as how the ebuild should be calling the jdk please go ahead and fix it.
Comment 8 pavel sanda 2010-07-15 13:47:18 UTC
DEP is not much of help if user emerged already sdk, but only jre is set via eselect.

not that i know how to fix it in ebuild...
Comment 9 pavel sanda 2010-07-15 13:48:41 UTC
.. but maybe some elog "check sun-jdk is selected" in case of failure ... ?
Comment 10 Petteri Räty (RETIRED) gentoo-dev 2010-07-17 09:24:16 UTC
Created attachment 239123 [details, diff]
virtual-jre-handling.patch

(In reply to comment #7)
> 
> Java team if you see I have missed something as far as how the ebuild should be
> calling the jdk please go ahead and fix it.
> 

Our eclasses don't handle putting virtual/jre to DEPEND that well. Just remove it from there.
Comment 11 Petteri Räty (RETIRED) gentoo-dev 2010-08-10 19:14:11 UTC
(In reply to comment #7)
> 
> Java team if you see I have missed something as far as how the ebuild should be
> calling the jdk please go ahead and fix it.
> 

Committed.