Date: Thu, 20 Jul 2006 23:12:45 +0200 From: Bartosz Fabianowski <freebsd@chillt.de> To: openoffice@freebsd.org Subject: lang/gcc41-withgcjawt does not actually work Message-ID: <44BFF1CD.1040901@chillt.de>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
--- 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@FreeBSD.org
+MASTERDIR= ${.CURDIR}/../../lang/gcc41
+
DESCR= ${.CURDIR}/pkg-descr
WITH_JAVA_AWT= yes
+
+.include "${MASTERDIR}/Makefile"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44BFF1CD.1040901>
