lang/gcc41-withgcjawt does not actually work
Bartosz Fabianowski
freebsd at chillt.de
Thu Jul 20 21:12:53 UTC 2006
Hi list
I am happily running OOo 2.0.3 compiled with WITH_GNUGCJ=1 on i386
6-STABLE. However, to get it to work, I had to manually tweak the
lang/gcc41-withgcjawt port and from the changes I had to make, it seems
to me that it cannot possibly work for anyone else.
The first problem is that in the Makefile, the following line:
.include "${MASTERDIR}/Makefile"
Comes before:
WITH_JAVA_AWT= yes
This way, the WITH_JAVA_AWT setting gets ignored and
lang/gcc41-withgcjawt builds without Java, just like lang/gcc41. A patch
for the Makefile that fixes this (and makes portlint happy) is attached.
Unfortunately, after this bug has been fixed, two more problems occur.
Buried somewhere deep in the source code of gcj is an old version of
libtool that does not work on recent versions of FreeBSD. I had to
replace the following two executables with the system libtool from
/usr/local/bin:
/usr/ports/lang/gcc41-withgcjawt/work/build/i386-portbld-freebsd6.1/libjava/classpath/libtool
/usr/ports/lang/gcc41-withgcjawt/work/build/i386-portbld-freebsd6.1/libjava/libtool
I am not sure how to best tackle this second problem in the port's
Makefile. Therefore, I am reporting it here in the hope that someone
else will come up with a patch.
- Bartosz
-------------- next part --------------
--- Makefile.orig Thu Jul 20 23:00:43 2006
+++ Makefile Thu Jul 20 23:01:49 2006
@@ -8,12 +8,12 @@
PKGNAMESUFFIX= -withgcjawt
-MASTERDIR= ${.CURDIR}/../../lang/gcc41
-
-.include "${MASTERDIR}/Makefile"
-
MAINTAINER= maho at FreeBSD.org
+MASTERDIR= ${.CURDIR}/../../lang/gcc41
+
DESCR= ${.CURDIR}/pkg-descr
WITH_JAVA_AWT= yes
+
+.include "${MASTERDIR}/Makefile"
More information about the freebsd-openoffice
mailing list