Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Apr 2004 14:21:05 -0400
From:      Etienne Robillard <erob@videotron.ca>
To:        gerald@pfeifer.com
Cc:        freebsd-ports@freebsd.org
Subject:   Re: ports/63427: [lang/gcc33] Disabling the Java frontend at compile time
Message-ID:  <40798C91.1040708@videotron.ca>
In-Reply-To: <20040324022723.GA4544@moo.holy.cow>
References:  <200402271110.i1RBArT5061902@freefall.freebsd.org> <200402281119.11188.erob@videotron.ca> <Pine.BSF.4.58.0403061129260.40503@acrux.dbai.tuwien.ac.at> <20040321044639.GA86534@moo.holy.cow> <Pine.BSF.4.58.0403240305510.96995@acrux.dbai.tuwien.ac.at> <20040324022723.GA4544@moo.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigF41D92636019DEBF8CD5EADB
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Parv wrote:
> in message <Pine.BSF.4.58.0403240305510.96995@acrux.dbai.tuwien.ac.at>,
> wrote Gerald Pfeifer thusly...
> 
>>On Sat, 20 Mar 2004, Parv wrote:
>>
>>>Would not placing the %%LIBJAVA%% suffix inside some of the gcj*
>>>binaries work?
>>Yes, but in that case we should add a WITHOUT_JAVA knob which then
>>also implies WITHOUT_LIBJAVA.
> 
> 
> Right you are.  Agree.  Yup.
> 

Done :)
see below.

> 
>>my main focus now is to get
>>  http://people.freebsd.org/~fenner/errorlogs/gerald@freebsd.org.html
>>down to zero failures
> 
> ...
> 
>>Still, if someone provides a fully tested patch after the
>>currently remaining issues with the gcc3x ports have been
>>resolved, I'm definitely willing to strongly consider that patch.
> 
> 
> No problem; i will try to provide a patch after that.
> 
> Though i always check the cvs logs, at least for gcc3x ports, please
> somebody remind me in case i forget when the time comes.
> 
> 
>   - Parv
> 

Hi guys,

Here's a diff for building/packing gcc-3.3.4 with both 
--enable-languages and --disable-libgcj turned on.

--- Makefile.old    Sun Apr 11 12:47:07 2004
+++ Makefile    Sun Apr 11 13:34:51 2004
@@ -94,6 +94,16 @@
  MAN7=      fsf-funding.7 gfdl.7 gpl.7
  INFO=      cpp cppinternals g77 gcc gccint gcj fastjar

+
+OPTIONS=   JAVA    "Enable Java support (implies WITH_LIBJAVA=yes)" on
+
+.if defined(WITH_JAVA)
+WITHOUT_LIBJAVA=   ""
+.else
+WITHOUT_LIBJAVA=   true
+CONFIGURE_ARGS+=   --enable-languages=c,c++,f77,objc
+.endif
+
  .if defined(WITHOUT_LIBJAVA)
  CONFIGURE_ARGS+=   --disable-libgcj
  PLIST_SUB+=    LIBJAVA="@comment "


Ain't that GUI Options screen cool ? :-)
I thought it was, but feel free to remove it if it causes any troubles..

Here's the pkg-plist:

--- pkg-plist.old   Sun Apr 11 09:37:40 2004
+++ pkg-plist   Sun Apr 11 12:39:41 2004
@@ -9,16 +9,16 @@
  bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
  bin/%%GNU_HOST%%-gcc33
  bin/%%GNU_HOST%%-g++33
-bin/%%GNU_HOST%%-gcj33
+%%LIBJAVA%%bin/%%GNU_HOST%%-gcj33
  bin/gccbug33
-bin/gcj33
-bin/gcjh33
+%%LIBJAVA%%bin/gcj33
+%%LIBJAVA%%bin/gcjh33
  %%LIBJAVA%%bin/gij33
-bin/jv-scan33
-bin/jcf-dump33
+%%LIBJAVA%%bin/jv-scan33
+%%LIBJAVA%%bin/jcf-dump33
  %%LIBJAVA%%bin/jv-convert33
-bin/jar33
-bin/grepjar33
+%%LIBJAVA%%bin/jar33
+%%LIBJAVA%%bin/grepjar33

There's still some minimal glitches about info files, namely gcj and 
fastjar. I'm sure this is not a problem. One more thing, I didn't had 
time to test _with_ (default settings) the JAVA knob. So maybe this is 
still early, since Gerald wanted to clear out bugs before adding stuff.

Thanks,

Etienne


 > gcc33 -v
Reading specs from 
/usr/local/lib/gcc-lib/i386-portbld-freebsd4.9/3.3.4/specs
Configured with: ./..//gcc-3.3-20040322/configure --disable-nls 
--with-system-zlib --program-suffix=33 
--with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd4.9/3.3.4/include/c++/ 
--disable-shared --enable-languages=c,c++,f77,objc --disable-libgcj 
--prefix=/usr/local i386-portbld-freebsd4.9
Thread model: posix
gcc version 3.3.4 20040322 (prerelease) [FreeBSD]

--------------enigF41D92636019DEBF8CD5EADB
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAeYyUwi4xwWEgKqERAgWHAJ9WGK0Q00/rbsD8YlWCoOYLZlz7WQCfd+fY
6eCp12Uab3ruxQU/hccbfA8=
=a/W0
-----END PGP SIGNATURE-----

--------------enigF41D92636019DEBF8CD5EADB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40798C91.1040708>