From owner-freebsd-ports@FreeBSD.ORG Sat Feb 28 08:11:35 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6A9816A4CE; Sat, 28 Feb 2004 08:11:35 -0800 (PST) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8919F43D1F; Sat, 28 Feb 2004 08:11:35 -0800 (PST) (envelope-from erob@videotron.ca) Received: from localhost.invalid ([24.202.95.92]) by VL-MO-MR004.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0HTS00KK1Y8O9U@VL-MO-MR004.ip.videotron.ca>; Sat, 28 Feb 2004 11:10:01 -0500 (EST) Date: Sat, 28 Feb 2004 11:18:29 -0500 From: Etienne Robillard In-reply-to: <200402271110.i1RBArT5061902@freefall.freebsd.org> To: Gerald Pfeifer Message-id: <200402281119.11188.erob@videotron.ca> MIME-version: 1.0 Content-type: Text/Plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Content-disposition: inline User-Agent: KMail/1.6 References: <200402271110.i1RBArT5061902@freefall.freebsd.org> cc: freebsd-ports@freebsd.org cc: Kris Kennaway Subject: Re: ports/63427: [lang/gcc33] Disabling the Java frontend at compile time X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2004 16:11:36 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 27 F=E9vrier 2004 06:10, vous avez =E9crit : > Synopsis: Disabling the Java frontend at compile time > > State-Changed-From-To: open->feedback > State-Changed-By: gerald > State-Changed-When: Fri Feb 27 03:02:01 PST 2004 > State-Changed-Why: > In principle, I am in favor of such a patch, if > - it works in both cases (which it currently does not), > - the default is not changed (that is, java is built by default), > - and you do not disable further languages like f77 (which you currently > do). > To see the problems with the current patch, please run the tests described > in > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting= =2Dt >esting.html > > I am looking forward to an updated patch. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D63427 Hi,=20 I got the following option (updated) which disallow building java code in t= he=20 compiler :) =2Eif defined(WITHOUT_JAVA)=20 CONFIGURE_ARGS+=3D --enable-languages=3Dc,c++,f77,objc =2Eendif But in order to not break package building (make package), it need a way to= =20 specify to not include (uninstalled) java files while doing the packing lis= t.=20 I tried something like : post-install: =2Eif defined(WITHOUT_JAVA)=20 =2Efor j in ${JAVA_BINARIES} gcj ... (${ECHO_CMD} "@ignore_inst bin/${j}${SUFFIX}") >> ${TMPPLIST} =2Eendfor =2Eendif But that doesn't work with the current building process.. Any clue on how to remove files from the plist ? Other possibilities to fix the plist may be to use a small perl script. Thu= s,=20 the script could be triggered like this:=20 EXTRA_PATCHES=3D${FILESDIR}/nojava_plist.pl Beside that, the port is building, installing, and deinstalling without=20 apparent problems. Thnx, Etienne =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAQL9Zwi4xwWEgKqERAqbaAJ0S4UJbk3ch01iLmCZsiDn69mhAvwCfRSln RyNjWsh+rKiGDkuN+lf5YKU=3D =3DAhdc =2D----END PGP SIGNATURE-----