Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Mar 2004 11:33:44 +0100 (CET)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        Etienne Robillard <erob@videotron.ca>
Cc:        Kris Kennaway <kris@obsecurity.org>
Subject:   Re: ports/63427: [lang/gcc33] Disabling the Java frontend at compile time
Message-ID:  <Pine.BSF.4.58.0403061129260.40503@acrux.dbai.tuwien.ac.at>
In-Reply-To: <200402281119.11188.erob@videotron.ca>
References:  <200402271110.i1RBArT5061902@freefall.freebsd.org> <200402281119.11188.erob@videotron.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Since I assume you are mostly worried about build time and size of the
package, this might in fact be sufficient? (Building Java without libjava
is comparatively cheap.)  If it is not, you can simply extend the
framework I'm going to add to also disable Java per se.

Does that sound like a good plan?

> Other possibilities to fix the plist may be to use a small perl script. Thus,
> the script could be triggered like this:
> EXTRA_PATCHES=${FILESDIR}/nojava_plist.pl

We should try to avoid relying on Perl, as far as I understood.

Gerald
-- 
Gerald Pfeifer (Jerry)   gerald@pfeifer.com   http://www.pfeifer.com/gerald/



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