
Code: Select all
CFLAGS="-Os -march=pentium-m -mfpmath=sse -pipe -momit-leaf-frame-pointer -ggdb -w"
CXXFLAGS="-Os -march=pentium-m -mfpmath=sse -pipe -momit-leaf-frame-pointer -ggdb -w" 

I was able to build icedtea java plugin for Mozilla with USE="nsplugin -xulrunner" by using Firefox as dependency..mikkoc wrote:Is it really necessary to have xulrunner and cups in order to have the java plugin??
Code: Select all
emerge --nodeps icedtea

Code: Select all
location = /usr/local/java-experimental
master_repository = gentoo
sync = svn+http://overlays.gentoo.org/svn/proj/java/gcj-overlay/
cache = /var/empty
format = ebuild
importance = 10
names_cache = ${location}/.cache/namesicedtea seems to be in the java-overlayKenji Miyamoto wrote:Is IcedTea still in the Java overlay? I've synchronized with this repository configuration, but there's no dev-java/icedtea anywhere:Code: Select all
location = /usr/local/java-experimental master_repository = gentoo sync = svn+http://overlays.gentoo.org/svn/proj/java/gcj-overlay/ cache = /var/empty format = ebuild importance = 10 names_cache = ${location}/.cache/names

Code: Select all
# paludis --info
paludis 0.26.0_pre2
Paludis build information:
Compiler:
CXX: x86_64-pc-linux-gnu-g++ 4.3.0
CXXFLAGS: -march=barcelona -mmmx -m3dnow -msse -msse2 -mfpmath=sse -O2 -pipe
LDFLAGS:
DATE: 2008-04-21T21:51:25-0700
Libraries:
C++ Library: GNU libstdc++ 20080305
Reduced Privs:
reduced_uid: 103
reduced_uid->name: paludisbuild
reduced_uid->dir: /var/tmp/paludis
reduced_gid: 1004
reduced_gid->name: paludisbuild
Paths:
DATADIR: /usr/share
LIBDIR: /usr/lib64
LIBEXECDIR: /usr/libexec
SYSCONFDIR: /etc
PYTHONINSTALLDIR: /usr/lib64/python2.5/site-packages
RUBYINSTALLDIR: Code: Select all
http://www.java.com/en/download/installed.jsp?jre_version=1.7.0&vendor=Sun+Microsystems+Inc.&os=Linux&os_version=2.6.25.4Code: Select all
if [ ! -s /var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/control/build/linux-amd64/classes/sun/rmi/transport/DGCImpl_Stub.class ] ; \
then /var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/bootstrap/jdk1.6.0/bin/rmic -J-Xmx873m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -v1.1 -classpath \
"/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/control/build/linux-amd64/classes" \
-d /var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/control/build/linux-amd64/classes 'sun.rmi.transport.DGCImpl' ; \
fi
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.7)
at java.lang.Class.isAssignableFrom(libgcj.so.7)
at gnu.java.rmi.rmic.RMIC.findClass(libgcj.so.7)
at gnu.java.rmi.rmic.RMIC.analyzeClass(libgcj.so.7)
at gnu.java.rmi.rmic.RMIC.processClass(libgcj.so.7)
at gnu.java.rmi.rmic.RMIC.run(libgcj.so.7)
at gnu.java.rmi.rmic.RMIC.main(libgcj.so.7)
Caused by: java.lang.NullPointerException
at java.rmi.server.LogStream.parseLevel(libgcj.so.7)
at sun.rmi.transport.DGCImpl.<clinit>(DGCImpl.java:65)
at java.lang.Class.initializeClass(libgcj.so.7)
...6 more
make[5]: *** [/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/control/build/linux-amd64/classes/sun/rmi/transport/DGCImpl_Stub.class] Error 1
make[5]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/jdk/make/sun/rmi/rmi'
make[4]: *** [all] Error 1
make[4]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/jdk/make/sun/rmi'
make[3]: *** [all] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/jdk/make/sun'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/jdk/make'
make[1]: *** [jdk-build] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/control/make'
make: *** [stamps/icedtea-ecj.stamp] Error 2
*
* ERROR: dev-java/icedtea6-1.2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 4577: Called die
* The specific snippet of code:
* emake -j 1 || die "make failed"
* The die message:
* make failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-java/icedtea6-1.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/icedtea6-1.2/temp/environment'.
*
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --infoCode: Select all
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Tue, 01 Jul 2008 07:36:01 +0000
app-shells/bash: 3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python: 2.5.2-r5
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r2
sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -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/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LINGUAS="es_ES es en_US en"
MAKEOPTS="-j2"
PKGDIR="/home/ramiro/usr/local/portage/pkgdir-backup/"
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/portage/local/layman/roslin /usr/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/portage/local/layman/java-overlay /usr/portage/local/layman /usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X X509 Xaw3d a52 aac aalib accessibility acl acpi addbookmarks additions adns aim alsa amd amd64 ao aotuv apache2 apm ares arts async audacious audiofile auth authdaemond authfile authlib automount autoreplace avahi bash-completion bcmath bdf beagle bidi binary-drivers bindist binfilter bl blas bonjour branding bzip2 cairo caps catalogs cdda cddb cdf cdinstall cdparanoia cdr cdrom chm chroot clamav clamd cli connectionstatus contactnotes context corba cpudetection cracklib crypt css ctype cups curl curlwrappers dbase dbm dbus dbx dga dia directfb disk-partition diskio divx djvu dri dts dv dvb dvd dvdr dvdread dvi emboss emerald emovix enca encode epson erandom es escreen esd eu_epg exif expat extensions extra fam fame fastcgi fat fbcon ffmpeg fftw firefox flac flash flatfile font-server fontconfig foomaticdb fortran fpx ftp fuse gadu gcj gd gdbm geoip gif gimp gimpprint ginac glibc-omitfp glitz glut gmail gmp gnome-print gnustep gnutls gphoto2 gpm grammar graphics graphviz groupwise gs gsl gstreamer gtk gtkhtml guile gzip hal hddtemp hdri hfs highlight history hpn httpd humanities iconv icq id3 id3tag idea idled idn ieee1394 imagemagick imap imlib immqt-bc inifile inkjar innodb insecure-savers intl ipv6 isdnlog jabber jack jadetex java javacomm javascript jbig jce jfs jikes jit jpeg jpeg2k justify kde kdeenablefinal kerberos kipi ladspa lame lash latex lcms ldap lesstif libcaca libdsk libgda libnotify libssh2 libwww lids live lm_sensors logitech-mouse logrotate lua lzo lzw m17n-lib mad maildir mailwrapper math matroska mbox mcve md5sum mdb memlimit midi mikmod milter mime mjpeg mmap mmx mmxext mng modplug mono motif mounts-check mouse mozilla moznoirc moznomail mp3 mp4 mp4live mpeg mpeg2 mpi mplayer msn mudflap multiuser musepack music musicbrainz mysql mysqli nas ncurses neXt nemesi net netboot netcdf network network-cron networking networkmanager new-login nfs nis nls nowlistening npp nptl nptlonly nsplugin ntfs nuv nvidia octave office ofx ogg ole omega openal openbabel opendoc openexr opengl openmp openssh openssl opensslcrypt openvpn opera osc oscar oss ots pam pango parse-clocks passwordsave pcntl pcre pdf perl php player plotutils plugins pmu png portaudio posix postfix postgres postproc postscript povray ppds prelude profile ps pstricks publishers pymol python qt3 qt3support qt4 quicktime quotas rar raw rdesktop readline realmedia reiser4 reiserfs replytolist resolvconf rtc rtsp ruby samba sametime sasl savedconfig savepwd scanner science sdk sdl sdl-image seamonkey sensord session sharedext shout sift simplexml skey skins slang slp sms sndfile snmp soap sockets socks5 solver source sox speedo speex spell spl srt sse sse2 ssl statistics stream subtitles subversion svg svgz swat sysfs syslog sysvipc szip t1lib taglib tcl tcpd teletext tetex tex4ht texteffect tga theora thesaurus thunderbird tidy tiff tivo tk tokenizer truetype tv_check tv_combiner tv_pick_cgi twolame type1 unicode usb userlocales v4l v4l2 vcd vcdx vlm vorbis wavpack wddx webdav webpresence winbind winpopup wmf wmp wxwindows x264 xanim xattr xcomposite xetex xface xforms xfs xft xine xml xmlreader xmlrpc xmlwriter xorg xplanet xpm xprint xscreensaver xsl xslt xterm xv xvid xvmc yahoo yv12 zeroconf zip zlib zoran" ALSA_CARDS="via82xx" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="fuji minolta ptp2 ptp" ELIBC="glibc" FOO2ZJS_DEVICES="hp1000" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es_ES es en_US en" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Code: Select all
gentoobox stephan # ls -l /usr/lib64/nsbrowser/plugins/
insgesamt 64
lrwxrwxrwx 1 root root 57 16. Aug 17:09 javaplugin.so -> //usr/share/java-config-2/nsplugin/icedtea6-javaplugin.so
-rw-r--r-- 1 root root 1794 31. Jul 10:08 libswfdecmozilla.la
-rwxr-xr-x 1 root root 57152 31. Jul 10:08 libswfdecmozilla.so
Code: Select all
gentoobox stephan # eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins
Code: Select all
gentoobox stephan # emerge -s icedtea6
Searching...
[ Results for search key : icedtea6 ]
[ Applications found : 1 ]
* dev-java/icedtea6
Latest version installed: 1.2
Homepage: http://icedtea.classpath.org
Description: A harness to build the OpenJDK using Free Software build tools and dependencies
License: GPL-2-with-linking-exception
Code: Select all
gentoobox stephan # eix icedtea6
[I] dev-java/icedtea6 [1]
Available versions: (~)1.2 **9999 {debug doc examples javascript nsplugin zero}
Installed versions: 1.2(19:39:42 18.08.2008)(-debug -doc -elibc_FreeBSD -examples -nsplugin -zero)
Homepage: http://icedtea.classpath.org
Description: A harness to build the OpenJDK using Free Software build tools and dependencies
[1] "java-overlay" /usr/portage/local/layman/java-overlay
Code: Select all
gentoobox stephan # emerge -pv dev-java/icedtea6
These are the packages that would be merged, in order:
Calculating dependencies /
!!! All ebuilds that could satisfy "dev-java/icedtea6" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-java/icedtea6-1.2 (masked by: )
For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
Code: Select all
gentoobox stephan # emerge -pv icedtea6
These are the packages that would be merged, in order:
Calculating dependencies -
emerge: there are no ebuilds to satisfy "icedtea6".
gentoobox stephan # emerge -pv dev-java/icedtea6
These are the packages that would be merged, in order:
Calculating dependencies -
!!! All ebuilds that could satisfy "dev-java/icedtea6" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-java/icedtea6-1.2 (masked by: )
For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
Code: Select all
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="1"
inherit autotools pax-utils java-pkg-2 java-utils-2 java-vm-2 mercurial
DESCRIPTION="A harness to build the OpenJDK using Free Software build tools and dependencies"
OPENJDK_BUILD="12"
OPENJDK_DATE="28_aug_2008"
OPENJDK_TARBALL="openjdk-6-src-b${OPENJDK_BUILD}-${OPENJDK_DATE}.tar.gz"
SRC_URI="http://download.java.net/openjdk/jdk6/promoted/b${OPENJDK_BUILD}/${OPENJDK_TARBALL}"
HOMEPAGE="http://icedtea.classpath.org"
EHG_REPO_URI="http://icedtea.classpath.org/hg/icedtea6"
IUSE="debug doc examples javascript -nsplugin +liveconnect zero"
LICENSE="GPL-2-with-linking-exception"
SLOT="0"
KEYWORDS="amd64"
RDEPEND=">=net-print/cups-1.2.12
>=x11-libs/libX11-1.1.3
>=media-libs/freetype-2.3.5
>=media-libs/alsa-lib-1.0
>=x11-libs/gtk+-2.8
>=x11-libs/libXinerama-1.0.2
>=media-libs/jpeg-6b
>=media-libs/libpng-1.2
>=media-libs/giflib-4.1.6
>=sys-libs/zlib-1.2.3
x11-proto/inputproto
nsplugin? ( || (
www-client/mozilla-firefox
net-libs/xulrunner
www-client/seamonkey
) )"
# Additional dependencies for building:
# unzip: extract OpenJDK tarball
# xalan/xerces: automatic code generation
# ant, ecj, jdk: required to build Java code
DEPEND="${RDEPEND}
>=virtual/jdk-1.5
>=app-arch/unzip-5.52
>=dev-java/xalan-2.7.0
>=dev-java/xerces-2.9.1
>=dev-java/ant-core-1.7.0-r3
|| ( >=dev-java/eclipse-ecj-3.2.1:3.2
dev-java/eclipse-ecj:3.3 )
javascript? ( dev-java/rhino:1.6 )"
pkg_setup() {
if use_zero && ! built_with_use sys-devel/gcc libffi; then
eerror "Using the zero assembler port requires libffi. Please rebuild sys-devel/gcc"
eerror "with USE=\"libffi\" or turn off the zero USE flag on ${PN}."
die "Rebuild sys-devel/gcc with libffi support"
fi
java-vm-2_pkg_setup
java-pkg-2_pkg_setup
}
src_unpack() {
mercurial_src_unpack
S="${WORKDIR}"/"${PN}"
cd "${S}"
eautoreconf || die "failed to regenerate autoconf infrastructure"
}
src_compile() {
local config procs rhino_jar
einfo "Current Java VM is"
echo "$(java-pkg_get-current-vm)"
if [[ "$(java-pkg_get-current-vm)" == "icedtea6" || "$(java-pkg_get-current-vm)" == "icedtea" ]] ; then
# If we are upgrading icedtea, then we don't need to bootstrap.
config="${config} --with-icedtea"
config="${config} --with-icedtea-home=$(java-config -O)"
else
# For other 1.5 JDKs e.g. GCJ, CACAO, JamVM.
config="${config} --with-ecj-jar=$(ls -1r /usr/share/eclipse-ecj-3.[23]/lib/ecj.jar|head -n 1)" \
config="${config} --with-libgcj-jar=$(java-config -O)/jre/lib/rt.jar"
config="${config} --with-gcj-home=$(java-config -O)"
fi
# OpenJDK-specific parallelism support.
procs=$(echo ${MAKEOPTS} | sed -r 's/.*-j\W*([0-9]+).*/\1/')
if [[ -n ${procs} ]] ; then
config="${config} --with-parallel-jobs=${procs}";
einfo "Configuring using --with-parallel-jobs=${procs}"
fi
if use_zero ; then
config="${config} --enable-zero"
else
config="${config} --disable-zero"
fi
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
econf ${config} \
--with-openjdk-src-zip="${DISTDIR}/${OPENJDK_TARBALL}" \
$(use_enable debug optimizations) \
$(use_enable doc docs) \
$(use_enable nsplugin gcjwebplugin) \
$(use_enable liveconnect) \
$(use_with javascript rhino ${rhino_jar}) \
|| die "configure failed"
emake -j 1 || die "make failed"
}
src_install() {
local dest="/usr/$(get_libdir)/${P}"
local ddest="${D}/${dest}"
dodir "${dest}" || die
local arch=${ARCH}
use x86 && arch=i586
cd "${S}/openjdk/control/build/linux-${arch}/j2sdk-image" || die
if use doc ; then
dohtml -r ../docs/* || die "Failed to install documentation"
fi
# doins can't handle symlinks.
cp -vRP bin include jre lib man "${ddest}" || die "failed to copy"
# Set PaX markings on all JDK/JRE executables to allow code-generation on
# the heap by the JIT compiler.
pax-mark m $(list-paxables "${ddest}"{,/jre}/bin/*)
dodoc ASSEMBLY_EXCEPTION THIRD_PARTY_README || die
dohtml README.html || die
if use examples; then
dodir "${dest}/share";
cp -vRP demo sample "${ddest}/share/" || die
fi
cp src.zip "${ddest}" || die
# Fix the permissions.
find "${ddest}" -perm +111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; || die
if use nsplugin; then
use x86 && arch=i386;
install_mozilla_plugin "${dest}/jre/lib/${arch}/gcjwebplugin.so";
fi
if use liveconnect; then
use x86 && arch=i386;
install_mozilla_plugin "${dest}/jre/lib/${arch}/IcedTeaPlugin.so";
fi
set_java_env
}
use_zero() {
use zero || ( ! use amd64 && ! use x86 && ! use sparc )
}
pkg_postinst() {
# Set as default VM if none exists
java-vm-2_pkg_postinst
}