Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Mar 2004 23:46:39 -0500
From:      Parv <parv@pair.com>
To:        Gerald Pfeifer <gerald@pfeifer.com>
Cc:        Kris Kennaway <kris@obsecurity.org>
Subject:   Re: ports/63427: [lang/gcc33] Disabling the Java frontend at compile time
Message-ID:  <20040321044639.GA86534@moo.holy.cow>
In-Reply-To: <Pine.BSF.4.58.0403061129260.40503@acrux.dbai.tuwien.ac.at>
References:  <200402271110.i1RBArT5061902@freefall.freebsd.org> <200402281119.11188.erob@videotron.ca> <Pine.BSF.4.58.0403061129260.40503@acrux.dbai.tuwien.ac.at>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <Pine.BSF.4.58.0403061129260.40503@acrux.dbai.tuwien.ac.at>,
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

-- 



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