[kaffe] Re: script to update kaffe-1.0.7 to cvs libtool to allow cross-compiling

Dan Kegel dank@kegel.com
Thu, 02 Jan 2003 20:04:52 -0800


This is a multi-part message in MIME format.
--------------020409080806000109010902
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

I missed a few fixes that were already in kaffe CVS,
namely, automake-1.5 doesn't like ## comments
inside extended lines, and it doesn't like it
when you define your own check-TESTS: rule.
The attached patch completes (hopefully) my
script that updates kaffe-1.0.7 to new libtools.

It'd be nice if automake-1.5 detected these
formerly-acceptable-but-now-verboten constructs.
it took me quite a while to figure out what was wrong.
- Dan

----- part of the script I posted earlier, showing where to add the line ---
> # Unpack kaffe-1.0.7 tarball
> tar -xzvf kaffe-1.0.7.tar.gz
> 
> # update to new autotools.  You should have latest autoconf and automake installed.
> # (yeah, should run aclocal, but we'll cheat here)
> cp libtool-installed/share/aclocal/libtool.m4 kaffe-1.0.7/acinclude.m4
> cd kaffe-1.0.7
>    ../libtool-installed/bin/libtoolize -c -f --ltdl
>    patch -p1 < ../../updatetools.patch
>    patch -p1 < ../../libltdl.patch

# make tests/regression/Makefile.am automake-1.5 compatible
patch -p1 < ../../fixmake.patch

>    sh developers/autogen.sh
> cd ..
> mv kaffe-1.0.7 kaffe-1.0.7-libtool1.4e
> tar -czvf kaffe-1.0.7-libtool1.4e.tar.gz kaffe-1.0.7-libtool1.4e

---------------------------------------------------------------------

-- 
Dan Kegel
Linux User #78045
http://www.kegel.com


--------------020409080806000109010902
Content-Type: text/plain;
 name="fixmake.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="fixmake.patch"

--- kaffe-1.0.7/test/regression/Makefile.am	Wed Jun 19 18:41:52 2002
+++ kaffe-1.0.7-libtool1.4e/test/regression/Makefile.am	Thu Jan  2 18:23:44 2003
@@ -10,12 +10,10 @@
 
 TESTS_ENVIRONMENT = $(SETUP_ENVIRONMENT) $(SHELL) TestScript
 
+# Automake-1.5 doesn't support ## comments inside extended lines
 ALWAYS_TESTS = \
-## Simple health check
 	HelloWorldApp.class.save \
-## Now test the compiler
 	HelloWorldApp.java \
-## Test ints, longs, floats and doubles
 	TestIntLong.java \
 	TestFloatDouble.java \
 	DoubleCvt.java \
@@ -27,23 +25,18 @@
 	LongNeg.java \
 	FPUStack.java \
 	divtest.java \
-## Test strings
 	Str.java \
 	Str2.java \
 	InternHog.java \
-## Test exceptions
 	IndexTest.java \
 	StackDump.java \
-## Test threads
 	tname.java \
 	ttest.java \
 	ThreadInterrupt.java \
 	ThreadState.java \
 	UncaughtException.java \
 	IllegalWait.java \
-## Test that preemption works---may not be supported by all threading systems
 	Preempt.java 		\
-## Misc tests
 	ReflectInterfaces.java \
 	InnerTest.java \
 	SerialUID.java \
@@ -92,11 +85,8 @@
 	ReaderReadVoidTest.java \
 	PipeTest.java \
 	GetField.java \
-## simple test for Method.invoke
 	ReflectInvoke.java \
-## simple test for InvocationTargetExceptions
 	InvTarExcTest.java \
-## tests for ClassLoader
 	SystemLoaderTest.java \
 	CLTest.java \
 	CLTestConc.java \
@@ -126,22 +116,16 @@
 	HashtableTest1.java \
 	ReflectMultiArray.java \
 	ExecTest.java \
-## Test catching our own death
 	CatchDeath.java \
-## Test various ways of stopping threads
 	ThreadStop.java \
 	DeadThread.java \
 	tthrd1.java \
-## Test interrupting I/O
-## This is kind of tricky, and Sun doesn't support it.
 	SoInterrupt.java \
 	sysdepCallMethod.java \
-## Test for package java.util.zip
 	DosTimeVerify.java \
 	ZipVerify.java \
 	ZipTest.java \
 	TruncatedClass.java \
-## This one is skipped unless you --enable-debug.
 	TestNative.java
 
 TEST_Overflow = Overflow.java
@@ -170,4 +154,4 @@
 CLEANFILES = *.class *.fail *.out core *.core ExceptionTest ziptest1.zip \
 	ziptest2.zip frozen_serial
 
-check-TESTS: clean TestScript
+##check-TESTS: clean TestScript

--------------020409080806000109010902--