Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Half-automated build-script for Java J2SDK from source
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Sun Sep 29, 2002 6:19 pm    Post subject: Half-automated build-script for Java J2SDK from source Reply with quote

Hi,

I'm in the process of building Sun's J2SDK (1.4) from source under gcc-3.2, main reason to get mozilla-1.1 and Java working.

I made a bash-script that executes the build sequence according to http://tushar.lfsforum.org/javafromscratch.txt, the final objective should of course be an ebuild.

Since I'm a little short on time now, maybe someone can use this start to get an ebuild done?

Code:

#! /bin/bash
# quick half-automated build-script to build J2SDK 1.4 from source
# 2002-09-29 by Jeroen Versteeg
# (should eventually evolve into a gentoo ebuild, volunteers?)

# system specific C(XX) flags:
MY_FLAGS="-march=athlon-tbird -O3 -pipe"
# build-root
BUILD_ROOT=/root/build
# JDK1.4 bin source
BIN_SRC_DIR=/usr/portage/distfiles/
BIN_SRC=j2sdk-1_4_0_02-linux-i586.bin
# downloaded java-sources
SOURCES=/home/jeroen/download/Java2_src
# build dir for java sources
export SRC=$BUILD_ROOT/src
mkdir $SRC

cd $BUILD_ROOT
cp $BIN_SRC_DIR/$BIN_SRC ./ && chmod +x $BIN_SRC && ./$BIN_SRC
rm $BIN_SRC
export JAVA_HOME=$BUILD_ROOT/j2sdk1.4.0_02

# this "old" lib is taken from http://www.linuxfromscratch.org/~timothy/misc/
cp $SOURCES/libstdc++-libc6.1-1.so.2.bz2 $JAVA_HOME/jre/lib/i386/
bunzip2 $JAVA_HOME/jre/lib/i386/libstdc++-libc6.1-1.so.2.bz2

if [ -z "`$JAVA_HOME/bin/java --version | grep 1.4`"]; then
   echo "Java still does not work?"
   exit 1
fi

cd $SRC
for F in $SOURCES/j2sdk-1_4_0*.zip; do
   unzip $F;
done

# copy-paste from http://tushar.lfsforum.org/javafromscratch.txt
export ALT_BOOTDIR="$JAVA_HOME"
export ALT_MOTIF_DIR=$SRC
export ALT_MOZILLA_PATH=$SRC
export ALT_DEVTOOLS_PATH="/usr/bin"
export MILESTONE="jv_compiled"
export BUILD_NUMBER=`date +%Y-%m-%d`
export DEV_ONLY=true
export OTHER_LDFLAGS="-lpthread"
unset JAVA_HOME
unset CLASSPATH

export CFLAGS=""
export CXXFLAGS=""
export OTHER_CFLAGS="$MY_FLAGS"
export OTHER_CXXFLAGS="$MY_FLAGS"

export MAKE_VERBOSE=true
export INSANE=true

# apply any patches (optional)
# bzip2 -dc $SOURCES/j2sdk-1.4.0-gcc3-syntax.patch.bz2 > j2sdk-1.4.0-gcc3-syntax.patch
# bzip2 -dc $SOURCES/j2sdk-1.4.0-remove-fixed-paths.patch.bz2 > j2sdk-1.4.0-remove-fixed-paths.patch
# bzip2 -dc $SOURCES/j2sdk-1.4.0-fix-intl-files.patch.bz2 > j2sdk-1.4.0-fix-intl-files.patch
# Check -p <x> and pwd!!! (still waiting for the download ;)
# patch -p 1 < j2sdk-1.4.0-gcc3-syntax.patch
# patch -p 1 < j2sdk-1.4.0-remove-fixed-paths.patch
# patch -p 1 < j2sdk-1.4.0-fix-intl-files.patch

cd $SRC/control/make &&   make


Eventually the install code should also be added, but I'm still building...

Cheers,

Jeroen
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Mon Sep 30, 2002 5:34 pm    Post subject: Reply with quote

... and here is the definitive working script, my mozilla-1.1 now has a custom compiled j2sdk :D

Code:

#! /bin/bash
# quick half-automated build-script to build J2SDK 1.4 from source
# 2002-09-29 by Jeroen Versteeg
# (should eventually evolve into a gentoo ebuild, volunteers?)

# system specific C(XX) flags:
MY_FLAGS="-march=athlon-tbird -O3 -pipe"
# build-root
BUILD_ROOT=/root/build
# JDK1.4 bin source
BIN_SRC_DIR=/usr/portage/distfiles/
BIN_SRC=j2sdk-1_4_0_02-linux-i586.bin
# downloaded java-sources
SOURCES=/home/jeroen/download/Java2_src
# build dir for java sources
export SRC=$BUILD_ROOT/src
mkdir $SRC

cd $BUILD_ROOT
cp $BIN_SRC_DIR/$BIN_SRC ./ && chmod +x $BIN_SRC && ./$BIN_SRC
rm $BIN_SRC
export JAVA_HOME=$BUILD_ROOT/j2sdk1.4.0_02

# this "old" lib is taken from http://www.linuxfromscratch.org/~timothy/misc/
cp $SOURCES/libstdc++-libc6.1-1.so.2.bz2 $JAVA_HOME/jre/lib/i386/
bunzip2 $JAVA_HOME/jre/lib/i386/libstdc++-libc6.1-1.so.2.bz2

#if [ -n "`$JAVA_HOME/bin/java -version | grep 1.4`"]; then
#   echo "Java still does not work?"
#   exit 1
# fi

cd $SRC
for F in $SOURCES/j2sdk-1_4_0*.zip; do
   unzip $F;
done

# copy-paste from http://tushar.lfsforum.org/javafromscratch.txt
export ALT_BOOTDIR="$JAVA_HOME"
export ALT_MOTIF_DIR=$SRC
export ALT_MOZILLA_PATH=$SRC
export ALT_DEVTOOLS_PATH="/usr/local/bin"
export MILESTONE="jv_compiled"
export BUILD_NUMBER=`date +%Y-%m-%d`
export DEV_ONLY=true
export OTHER_LDFLAGS="-lpthread"
unset JAVA_HOME
unset CLASSPATH

export CFLAGS=""
export CXXFLAGS=""
export OTHER_CFLAGS="$MY_FLAGS"
export OTHER_CXXFLAGS="$MY_FLAGS"

export MAKE_VERBOSE=true
export INSANE=true

# apply any patches (optional)
bzip2 -dc $SOURCES/j2sdk-1.4.0-gcc3-syntax.patch.bz2 > j2sdk-1.4.0-gcc3-syntax.patch
patch -p 1 < j2sdk-1.4.0-gcc3-syntax.patch
bzip2 -dc $SOURCES/j2sdk-1.4.0-remove-fixed-paths.patch.bz2 > j2sdk-1.4.0-remove-fixed-paths.patch
patch -p 1 < j2sdk-1.4.0-remove-fixed-paths.patch
bzip2 -dc $SOURCES/j2sdk-1.4.0-fix-intl-files.patch.bz2 > j2sdk-1.4.0-fix-intl-files.patch
patch -p 1 < j2sdk-1.4.0-fix-intl-files.patch
bzip2 -dc $SOURCES/j2sdk-1.4.0-link-jpda-2-libjvm.patch.bz2 > j2sdk-1.4.0-link-jpda-2-libjvm.patch
patch -p 1 < j2sdk-1.4.0-link-jpda-2-libjvm.patch

cd $SRC/control/make
make || exit 1

mkdir -p /usr/local/java
cd $SRC/control/build/linux-i386/
cp -av j2sdk-image /usr/local/java/j2sdk-1.4.0-jv
mkdir -p /opt/java
ln -s /usr/local/java/j2sdk-1.4.0-jv /opt/java/j2sdk
ln -sf /opt/java/j2sdk/jre/plugin/i386/ns610/libjavaplugin_oji140.so /usr/lib/mozilla/plugins/


Enjoy!

PS: I don't have the time to make an ebuild soon, any volunteers? 8)

Cheers
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Tue Oct 01, 2002 5:51 pm    Post subject: Reply with quote

Sweeet!

Thanks, I tried it twice manually and thought I had followed his intructions carefully but it broke both times. I grabbed your script, edited it to fit my directory structure and CPU, and it ran without a hitch.

Now, back to my NY Times crossword... :)
Back to top
View user's profile Send private message
kkj
n00b
n00b


Joined: 17 Jul 2002
Posts: 52
Location: Denmark, aarhus

PostPosted: Wed Oct 02, 2002 9:56 am    Post subject: Reply with quote

I got this error, when I tried the script..

Code:
GEFILE64_SOURCE -D__GNU__ -D_REENTRANT -fcheck-new -DLITTLE_ENDIAN -w -c /root/build/src/hotspot/src/share/vm/runtime/java.cpp
In file included from ../generated/incls/_java.cpp.incl:225,
                 from /root/build/src/hotspot/src/share/vm/runtime/java.cpp:10:
/root/build/src/hotspot/src/share/vm/opto/loopnode.hpp:311: friend declaration
   requires class-key, i.e. `friend class IdealLoopTree'
make[3]: *** [java.o] Error 1
make[3]: Leaving directory `/root/build/src/control/build/linux-i386/hotspot-i386/tmp/linux_i486_compiler2/product'
make[2]: *** [the_vm] Error 2
make[2]: Leaving directory `/root/build/src/control/build/linux-i386/hotspot-i386/tmp/linux_i486_compiler2/product'
make[1]: *** [product] Error 2
make[1]: Leaving directory `/root/build/src/control/build/linux-i386/hotspot-i386/tmp'
make: *** [product] Error 2


Looks to my like a problem whit Suns source, but im not sure :?
Back to top
View user's profile Send private message
Scott_the_Great
n00b
n00b


Joined: 08 Aug 2002
Posts: 21

PostPosted: Wed Oct 09, 2002 12:51 am    Post subject: Reply with quote

I don't know if anyone else is working on this, but I've started to put together an ebuild for this.

I've got the "fetch" (except for the SUN sources, of course), and "unpack" all working, and I'm under the impression that "compile" works too (though it might be a little while before I'm sure...)

After that, I'll get "install" working and post it on this thread.

Here's to a "fairly simple" way to get java going again under gcc3.2!!

---Scott
Back to top
View user's profile Send private message
Scott_the_Great
n00b
n00b


Joined: 08 Aug 2002
Posts: 21

PostPosted: Thu Oct 10, 2002 12:53 am    Post subject: Reply with quote

YAY, I've got java working!!!

NOTES:
1. In order to get my ebuild to work, I was forced to un-emerge (-C) "openmotif" as per various other threads on the forums. You can probably try using "/usr/lib/portage/bin/quickpkg" to store the already-merged version, and then have emerge (or ebuild) simply re-install from that package. (I have not yet tried the re-install step for openmotif...)
2. You'll need to copy "/usr/portage/dev-java/sun-jdk/files/sun-jdk-1.4.0" into the files directory under the ebuild as "sun-j2sdk-1.4.0".
3. You'll have to run "ebuild sun-j2sdk-1.4.0-r1.ebuild digest" in order to build the digests.
4. The script will report errors if you haven't downloaded the required files from SUN and put them in "/usr/portage/distfiles". However, I believe that if you don't have any of them, it will die with an error telling you which one is missing and where to get it from. After it dies, however, it may be necessary to run an "ebuild ... clean" in order to get the working directory reset. (This may not be necessary if you use "emerge" instead of "ebuild"...)
5. While doing the "unpack" it asks for you to say "y" once (to overwrite a file). I assume that there's an easy way to add a "-f" to this procedure, but I was more interested in the fact that it worked...


Okay, here's my ebuild for "dev-java/sun-j2sdk-1.4.0-r1.ebuild":
Code:

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvs/portage/dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild,v 1.1 2002/10/10 00:43:27 scotth Exp $

# quick half-automated build-script to build J2SDK 1.4 from source
# 2002-09-29 by Jeroen Versteeg

. /usr/portage/eclass/inherit.eclass
inherit java

SUN_BINARY="j2sdk-1_4_0_02-linux-i586.bin"
HOMEPAGE="http://java.sun.com/j2se/1.4/download.html"

SUN_SOURCES="j2sdk-1_4_0-motif-linux-i386.zip
        j2sdk-1_4_0-src-scsl.zip
        j2sdk-1_4_0-mozilla_headers-unix.zip"
HOMEPAGE_SRC="http://wwws.sun.com/software/java2/download.html"

OLD_LIBSTDCPP="libstdc++-libc6.1-1.so.2.bz2"
HOMEPAGE_OLD="http://www.linuxfromscratch.org/~timothy/misc/"

SDK_PATCHES="j2sdk-1.4.0-fix-intl-files.patch.bz2
        j2sdk-1.4.0-gcc3-syntax.patch.bz2
        j2sdk-1.4.0-link-jpda-2-libjvm.patch.bz2
        j2sdk-1.4.0-remove-fixed-paths.patch.bz2"
HOMEPAGE_PATCH="http://tushar.lfsforum.org/files/JavaFromScratch/"

S=${WORKDIR}/j2sdk1.4.0_02

SRC_URI="${HOMEPAGE_OLD}${OLD_LIBSTDCPP}"
for F in $SDK_PATCHES; do
        SRC_URI="${SRC_URI} ${HOMEPAGE_PATCH}${F}"
done

DESCRIPTION="Sun's J2SE Development Kit, version 1.4.0"
LICENCE="sun-bcla"
SLOT="1.4"
KEYWORDS="x86 -ppc"
DEPEND="virtual/glibc
        >=dev-java/java-config-0.2.5"
RDEPEND="$DEPEND"

PROVIDE="virtual/jre-1.4
        virtual/jdk-1.4
        virtual/java-scheme-2"

src_unpack() {
        if [ ! -f ${DISTDIR}/${SUN_BINARY} ] ; then
                die "Please download ${SUN_BINARY} from ${HOMEPAGE} (select the \"Linux self-extracting file\" package format of the SDK) and move it to ${DISTDIR}. Note: You can find archived releases from http://java.sun.com/products/archive/"
        fi
        tail +336 ${DISTDIR}/${SUN_BINARY} > install.sfx
        chmod +x install.sfx
        ./install.sfx || die
        rm install.sfx

        cd ${S}/jre/lib/i386
        bzip2 -dc ${DISTDIR}/libstdc++-libc6.1-1.so.2.bz2 > ./libstdc++-libc6.1-1.so.2
        chmod a+x ./libstdc++-libc6.1-1.so.2

        for F in ${SUN_SOURCES}; do
                if [ ! -f ${DISTDIR}/${F} ]; then
                        die "Please download ${F} from ${HOMEPAGE_SRC} and move it to ${DISTDIR}."
                fi
        done

        mkdir ${S}/src
        cd ${S}/src
        for F in ${SUN_SOURCES}; do
           unzip ${DISTDIR}/${F};
        done

        cd ${S}/src
        # apply various patches (somewhat optional)
        bzip2 -dc ${DISTDIR}/j2sdk-1.4.0-gcc3-syntax.patch.bz2 > ./j2sdk-1.4.0-gcc3-syntax.patch
        patch -p 1 < j2sdk-1.4.0-gcc3-syntax.patch
        bzip2 -dc ${DISTDIR}/j2sdk-1.4.0-remove-fixed-paths.patch.bz2 > ./j2sdk-1.4.0-remove-fixed-paths.patch
        patch -p 1 < j2sdk-1.4.0-remove-fixed-paths.patch
        bzip2 -dc ${DISTDIR}/j2sdk-1.4.0-fix-intl-files.patch.bz2 > ./j2sdk-1.4.0-fix-intl-files.patch
        patch -p 1 < j2sdk-1.4.0-fix-intl-files.patch
        bzip2 -dc ${DISTDIR}/j2sdk-1.4.0-link-jpda-2-libjvm.patch.bz2 > ./j2sdk-1.4.0-link-jpda-2-libjvm.patch
        patch -p 1 < j2sdk-1.4.0-link-jpda-2-libjvm.patch

        rm ${S}/src/*.patch
}


src_compile() {
        # system specific C(XX) flags:
        MY_CFLAGS="${CFLAGS}"
        MY_CXXFLAGS="${CXXFLAGS}"

        # build dir for java sources
        export SRC=${S}/src

        cd ${S}
        export JAVA_HOME=${S}


        # copy-paste from http://tushar.lfsforum.org/javafromscratch.txt
        export ALT_BOOTDIR="$JAVA_HOME"
        export ALT_MOTIF_DIR=$SRC
        export ALT_MOZILLA_PATH=$SRC
        export ALT_DEVTOOLS_PATH="/usr/local/bin"
        export MILESTONE="jv_compiled"
        export BUILD_NUMBER=`date +%Y-%m-%d`
        export DEV_ONLY=true
        export OTHER_LDFLAGS="-lpthread"
        unset JAVA_HOME
        unset CLASSPATH

        export CFLAGS=""
        export CXXFLAGS=""
        export OTHER_CFLAGS="$MY_CFLAGS"
        export OTHER_CXXFLAGS="$MY_CXXFLAGS"

        export MAKE_VERBOSE=true
        export INSANE=true


        cd $SRC/control/make
        make || exit 1
}

src_install() {
        dodir /opt/${P}

        cp -a ${S}/src/control/build/linux-i386/j2sdk-image/* ${D}/opt/${P}

        if [ "`use mozilla`" ] ; then
                dodir /usr/lib/mozilla/plugins
                dosym /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji140.so /usr/lib/mozilla/plugins/
        fi

        set_java_env ${FILESDIR}/${VMHANDLE}
}

pkg_postinst() {
        java_pkg_postinst
}


Let me know of any success (or failures) that you may encounter.
Good Luck.

P.S. If anybody actually uses this ebuild with success, I'll probably look into fixing some of the "notes" mentioned above...

---Scott


Last edited by Scott_the_Great on Thu Oct 10, 2002 5:05 am; edited 1 time in total
Back to top
View user's profile Send private message
yokem55
Guru
Guru


Joined: 18 Apr 2002
Posts: 360
Location: Oregon

PostPosted: Thu Oct 10, 2002 2:57 am    Post subject: Reply with quote

could you sumbit this ebuild with a bug report and see if we can get this into the portage tree?
Back to top
View user's profile Send private message
ejwahl
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2002
Posts: 107
Location: Rhode Island

PostPosted: Fri Oct 11, 2002 12:30 pm    Post subject: Reply with quote

I compiled and installed the new Sun JDK 1.4.1 using JeroenV's script. I had to use the four patch files and three ZIP files that the script calls for in order to compile everything smoothly.

Anyone know if there are mozilla headers, motif files and source files for the new 1.4.1 (j2sdk-1_4_1-mozilla_headers-unix.zip, etc.)? Google and Sun site searches turned up nothing.

Thanks...
_________________
Erich J. Wahl
RLU 199500
ICQ 48100000
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Fri Oct 11, 2002 12:45 pm    Post subject: Reply with quote

I call Sun's site the shortcut to braindamage.. I found the mozilla header file... but none of the others. Thus I can't compile sh*t and on top of that I broke my Gentoo system trying..

Sun needs a redesign or something - it's near impossible to find what you need... the new 1.4.1 sdk wasn't even listed on the Java download page I found there.
Back to top
View user's profile Send private message
BeetleJuice
n00b
n00b


Joined: 29 Apr 2002
Posts: 67
Location: Austria

PostPosted: Fri Oct 11, 2002 1:16 pm    Post subject: Reply with quote

I compiled Sun-J2SDK 1.4.0 with the ebuild from JeroenV, compiled smoothly. But Mozilla-1.1 and Galeon2-CVS still segfaults when loading java appelts :(
Konqueror runs fine with it.
Back to top
View user's profile Send private message
koala
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2002
Posts: 91
Location: Barcelona, Spain

PostPosted: Sat Oct 12, 2002 11:01 am    Post subject: Reply with quote

I've tried the ebuild but it didn't work for me, I'll probably give it up a whirl later.

Anyway, I encourage people to keep working on this. It would be nice if we could transition totally to 3.2
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Sat Oct 12, 2002 11:41 am    Post subject: Reply with quote

This might sound slightly immoral, but could someone mirror the needed files - I did register with Sun and I spend hours on their website, they hide those files pretty darn well.
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Sat Oct 12, 2002 1:42 pm    Post subject: Reply with quote

You can grab the sources from here.

Interesting, it only took me a few minutes to find the sources.
_________________
Postcount ++
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Sat Oct 12, 2002 2:01 pm    Post subject: Reply with quote

craftyc wrote:
You can grab the sources from here.

Interesting, it only took me a few minutes to find the sources.


I got that one already - but we need a few extra zip files. At least for Scott the great' script, and those are hard to come by..

--edit--
thx. Schott - I'll have the files on my site later for the world to enjoy
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Sun Oct 13, 2002 2:56 pm    Post subject: Reply with quote

The ebuild nearly works, the entire thing builds, but it seems that the install part is broken.

Code:

/var/tmp/portage/sun-j2sdk-1.4.0-r1/work/j2sdk1.4.0_02/src/control/build/linux-i386/j2sdk-debug-image/bin/*/native_threads/${t}_g;

\
done

>>>Finished making images @ Sat Oct 12 21:26:15 CEST 2002 ...
>>
 make[1]: Leaving directory
 `/var/tmp/portage/sun-j2sdk-1.4.0-r1/work/j2sdk1.4.0_02/src/j2se/make'
 Control workspace build finished at Sat Oct 12 21:26:15 CEST 2002


>>>Install sun-j2sdk-1.4.0-r1 into
var/tmp/portage/sun-j2sdk-1.4.0-r1/image/
>>
 category dev-java
 /usr/sbin/ebuild.sh:
/usr/portage/dev-java/sun-j2sdk/files/sun-j2sdk-1.4.0: No
 such file or directory

 !!! ERROR: The ebuild did not complete successfully.
 !!! Function set_java_env, Line 8, Exitcode 1
 !!! (no error message)


I'm trying to fix the build up now - but progress is slow as each try is preseedet by 3 hours of compilation or so.

I think this is the problem - also ${PV} should be used instead of ${P} - but that's just cosmetic (otherwise the java dir will be /opt/sun-j2sdk-r1/)

cp -a ${S}/src/control/build/linux-i386/j2sdk-image/* ${D}/opt/${P}
Back to top
View user's profile Send private message
BeetleJuice
n00b
n00b


Joined: 29 Apr 2002
Posts: 67
Location: Austria

PostPosted: Sun Oct 13, 2002 3:05 pm    Post subject: Reply with quote

2. You'll need to copy "/usr/portage/dev-java/sun-jdk/files/sun-jdk-1.4.0" into the files directory under the ebuild as "sun-j2sdk-1.4.0".

Also don't forget to unmerge openmotif before emerging.

compiles fine for me, but it still don't works in mozilla or galeon
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Sun Oct 13, 2002 3:09 pm    Post subject: Reply with quote

Why should I need to... I should be able to make it work without that evil hack...
Back to top
View user's profile Send private message
lowgitek
n00b
n00b


Joined: 08 Sep 2002
Posts: 25
Location: Tomar - Portugal

PostPosted: Sun Oct 13, 2002 5:21 pm    Post subject: Reply with quote

I'm using gcc 3-2 and gentoo 1.4 and I also had problem with java/flash in mozilla.


What I did was download the netscape 7.0 and now I have everything working as before.

I didn't had to compile the SDK 1.4.0 from source and I'm using 1.4.1 pluging and flash 5.50 or something like that.


Cheers,
Back to top
View user's profile Send private message
epvipas
n00b
n00b


Joined: 13 Oct 2002
Posts: 9
Location: Lincoln UK

PostPosted: Sun Oct 13, 2002 8:52 pm    Post subject: Half-automated build-script for Java J2SDK from source Reply with quote

From my computer I don't seem to be able to access the server tushar.lfsforum.org to access the patch files. Are these crucial to the build and if so are they available from any other mirrors?

Thanks
Back to top
View user's profile Send private message
AnubisTheKing
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 166

PostPosted: Sun Oct 13, 2002 9:36 pm    Post subject: Reply with quote

can please somebody tell me exactly where i have to put all the files i donwload from sun and all the patches? i dont understand where i have to put them. thx
_________________
http://www.volker-boehme.de
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Sun Oct 13, 2002 10:09 pm    Post subject: Reply with quote

AnubisTheKing wrote:
can please somebody tell me exactly where i have to put all the files i donwload from sun and all the patches? i dont understand where i have to put them. thx


For the script (version 2) I put all the stuff in /usr/portage/distfiles (so I could use it for an ebuild later. And then I changed SOURCES from /home/whatever_this_said to /usr/portage/distfiles

Compiling as we speak...
Back to top
View user's profile Send private message
AnubisTheKing
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 166

PostPosted: Mon Oct 14, 2002 8:33 am    Post subject: Reply with quote

ok, i have put all the source files at /usr/portage/distfiles
but where do i have to put the ebuild script?
_________________
http://www.volker-boehme.de
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Mon Oct 14, 2002 8:40 am    Post subject: Reply with quote

AnubisTheKing wrote:
ok, i have put all the source files at /usr/portage/distfiles
but where do i have to put the ebuild script?


I put that one in /root/ because that's where I did my build dir - remember mkdir /root/build

But I just finished my build and it didn't work, my test (go.icq.com) failed to load with this new GCC build.
Back to top
View user's profile Send private message
AnubisTheKing
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 166

PostPosted: Mon Oct 14, 2002 8:52 am    Post subject: Reply with quote

bash-2.05a# cd root/
bash-2.05a# cd build/
bash-2.05a# ebuild sun-j2sdk-1.4.0-r1.ebuild digest
!!! doebuild: /usr/portage/root/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild not found.
portage: aux_get(): (1) couldn't open cache entry for root/sun-j2sdk-1.4.0-r1
(likely caused by syntax error or corruption in the root/sun-j2sdk-1.4.0-r1 ebuild.)
portage: doebuild(): aux_get() error; aborting.
bash-2.05a#

so what is worng? sorry but i dont understand what i am doing :-)
just learning how gentoo works
_________________
http://www.volker-boehme.de
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Mon Oct 14, 2002 9:26 am    Post subject: Reply with quote

First of all, I told you already... the ebuild DOESN'T work properly, the script however produces a good install - the build however I can't get working with anything (other say they have)

DON'T use the ebuild untill someone steps to the plate and makes it work 100% - the script from the second post in this thread is able to install he jdk properly.

After the long build (will take several hours unless you have a monster PC) - in theory you should be able to emerge -i the java-sdk ebuild and things "should" work...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum