Skip site navigation (1)Skip section navigation (2)
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
This is a multi-part message in MIME format.
--------------040607060007060306020903
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------040607060007060306020903
Content-Type: text/plain;
 name="Makefile.diff"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="Makefile.diff"

LS0tIE1ha2VmaWxlLm9yaWcJVGh1IEp1bCAyMCAyMzowMDo0MyAyMDA2CisrKyBNYWtlZmls
ZQlUaHUgSnVsIDIwIDIzOjAxOjQ5IDIwMDYKQEAgLTgsMTIgKzgsMTIgQEAKIAogUEtHTkFN
RVNVRkZJWD0JLXdpdGhnY2phd3QKIAotTUFTVEVSRElSPQkkey5DVVJESVJ9Ly4uLy4uL2xh
bmcvZ2NjNDEKLQotLmluY2x1ZGUgIiR7TUFTVEVSRElSfS9NYWtlZmlsZSIKLQogTUFJTlRB
SU5FUj0JbWFob0BGcmVlQlNELm9yZwogCitNQVNURVJESVI9CSR7LkNVUkRJUn0vLi4vLi4v
bGFuZy9nY2M0MQorCiBERVNDUj0JJHsuQ1VSRElSfS9wa2ctZGVzY3IKIAogV0lUSF9KQVZB
X0FXVD0JeWVzCisKKy5pbmNsdWRlICIke01BU1RFUkRJUn0vTWFrZWZpbGUiCg==
--------------040607060007060306020903--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44BFF1CD.1040901>