From owner-freebsd-ports@FreeBSD.ORG Sat Mar 20 20:46:00 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 A93C216A4CE for ; Sat, 20 Mar 2004 20:46:00 -0800 (PST) Received: from mta13.adelphia.net (mta13.mail.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A58743D39 for ; Sat, 20 Mar 2004 20:46:00 -0800 (PST) (envelope-from parv_fm@mailsent.net) Received: from moo.holy.cow ([69.160.71.102]) by mta13.adelphia.net (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with ESMTP id <20040321044559.XBHD2142.mta13.adelphia.net@moo.holy.cow>; Sat, 20 Mar 2004 23:45:59 -0500 Received: by moo.holy.cow (Postfix, from userid 1001) id 78FE7B0A7; Sat, 20 Mar 2004 23:46:39 -0500 (EST) Date: Sat, 20 Mar 2004 23:46:39 -0500 From: Parv To: Gerald Pfeifer Message-ID: <20040321044639.GA86534@moo.holy.cow> Mail-Followup-To: Gerald Pfeifer , Etienne Robillard , freebsd-ports@freebsd.org, Kris Kennaway References: <200402271110.i1RBArT5061902@freefall.freebsd.org> <200402281119.11188.erob@videotron.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: Etienne Robillard 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: Sun, 21 Mar 2004 04:46:00 -0000 in message , wrote Gerald Pfeifer thusly... > > On Sat, 28 Feb 2004, Etienne Robillard wrote: > > But in order to not break package building (make package), it need a way to > > specify to not include (uninstalled) java files while doing the packing list. > > I tried something like : > > > > post-install: > > .if defined(WITHOUT_JAVA) > > .for j in ${JAVA_BINARIES} gcj ... > > (${ECHO_CMD} "@ignore_inst bin/${j}${SUFFIX}") >> ${TMPPLIST} > > .endfor > > .endif > > > > But that doesn't work with the current building process.. > > Any clue on how to remove files from the plist ? > > Yes. ;-) > > In fact, I am currently working to fix the gcc ports on sparc and ia64, > where libjava is not built. My plan is to add a knob, WITHOUT_LIBJAVA > or similiar, which is enabled by default on these two platforms, and > which you could then simply use for your purpose as well. I do not have the complete -plist; compiling 3.4-20040310 right now. Would not placing the %%LIBJAVA%% suffix inside some of the gcj* binaries work? Its value could be changed either in the portion of WITHOUT_LIBJAVA test, or as proposed above by Etienne. Something like (tabs are present in patch; Java related file names are guessed; does not take care of any Java related files in "PLIST.lib") ... --- Makefile Fri Mar 19 20:06:52 2004 +++ Makefile.new Sat Mar 20 23:41:46 2004 @@ -88,7 +88,8 @@ INFO= cpp cppinternals g77 gcc gccinstall gccint gcj fastjar .if defined(WITHOUT_LIBJAVA) -CONFIGURE_ARGS+= --disable-libgcj +CONFIGURE_ARGS+= --disable-libgcj \ + --enable-languages=c,c++,f77,objc PLIST_SUB+= LIBJAVA="@comment " .else PLIST_SUB+= LIBJAVA="" --- pkg-plist Sat Mar 20 23:08:54 2004 +++ pkg-plist.new Sat Mar 20 23:41:17 2004 @@ -9,17 +9,17 @@ bin/%%GNU_HOST%%-gcc-%%GCC_VER%% bin/%%GNU_HOST%%-gcc34 bin/%%GNU_HOST%%-g++34 -bin/%%GNU_HOST%%-gcj34 -bin/%%GNU_HOST%%-gcjh34 +%%LIBJAVA%%bin/%%GNU_HOST%%-gcj34 +%%LIBJAVA%%bin/%%GNU_HOST%%-gcjh34 bin/gccbug34 -bin/gcj34 -bin/gcjh34 +%%LIBJAVA%%bin/gcj34 +%%LIBJAVA%%bin/gcjh34 %%LIBJAVA%%bin/gij34 -bin/jv-scan34 -bin/jcf-dump34 +%%LIBJAVA%%bin/jv-scan34 +%%LIBJAVA%%bin/jcf-dump34 %%LIBJAVA%%bin/jv-convert34 -bin/jar34 -bin/grepjar34 +%%LIBJAVA%%bin/jar34 +%%LIBJAVA%%bin/grepjar34 %%LIBJAVA%%bin/rmic34 %%LIBJAVA%%bin/rmiregistry34 %%LIBJAVA%%bin/addr2name.awk34 @@ -41,8 +41,8 @@ libexec/gcc/%%GNU_HOST%%/%%GCC_VER%%/cc1 libexec/gcc/%%GNU_HOST%%/%%GCC_VER%%/cc1plus libexec/gcc/%%GNU_HOST%%/%%GCC_VER%%/f771 -libexec/gcc/%%GNU_HOST%%/%%GCC_VER%%/jc1 -libexec/gcc/%%GNU_HOST%%/%%GCC_VER%%/jvgenmain +%%LIBJAVA%%libexec/gcc/%%GNU_HOST%%/%%GCC_VER%%/jc1 +%%LIBJAVA%%libexec/gcc/%%GNU_HOST%%/%%GCC_VER%%/jvgenmain libexec/gcc/%%GNU_HOST%%/%%GCC_VER%%/cc1obj libexec/gcc/%%GNU_HOST%%/%%GCC_VER%%/collect2 libexec/gcc/%%GNU_HOST%%/%%GCC_VER%%/install-tools/fixinc.sh - Parv --