Date: Thu, 04 Dec 2003 16:02:56 +0100 From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) To: portmgr@freebsd.org Cc: openoffice@freebsd.org Subject: openoffice port is broken wrt gcc and java dependencies Message-ID: <xzpsmk0fwwv.fsf@dwp.des.no>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Briefly, the problem is that:
- openoffice-1.0 unconditionally requires gcc 3.2 from ports, even on
systems which already have gcc 3.2 or newer in base
- openoffice-1.0 and openoffice-1.1 use hardcoded paths and hand-
crafted dependencies on specific Java ports instead of using the
existing infrastructure to request a compatible Java version and
obtain JAVA_HOME.
I have previously submitted a patch addressing these issues, with no
apparent result (though it seems the gcc issue has been fixed in
openoffice-1.1). I've attached a copy of my patch, dated October 23rd
(before the repocopy). It should still apply (possibly with minor
modifications) to both openoffice-1.0 and openoffice-1.1
DES
--
Dag-Erling Smørgrav - des@des.no
[-- Attachment #2 --]
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/editors/openoffice/Makefile,v
retrieving revision 1.183
diff -u -r1.183 Makefile
--- Makefile 1 Oct 2003 05:53:01 -0000 1.183
+++ Makefile 23 Oct 2003 07:38:00 -0000
@@ -90,25 +90,19 @@
#
# OO build is broken with the system gcc on STABLE.
#
+.if ${OSVERSION} < 501000
BUILD_DEPENDS+= gcc32:${PORTSDIR}/lang/gcc32
CC= gcc32
CXX= g++32
USE_GCC=3.2
+.endif
EXTRACT_ONLY= OOo_${PORTVERSION}_source.tar.bz2
MAINTAINER= openoffice@FreeBSD.org
COMMENT?= Integrated wordprocessor/dbase/spreadheet/drawing/chart/browser
-#
-# The JDK dependency needs to be at the first place, so all
-# following dependencies use the same JDK.
-#
-.if !defined(WITH_BSD_JDK)
-BUILD_DEPENDS+= ${JAVAVM}:${PORTSDIR}/java/linux-sun-jdk13
-.else
-BUILD_DEPENDS+= ${JAVAVM}:${PORTSDIR}/java/jdk13
-.endif
+USE_JAVA= 1.3+
#.if !defined(USE_GCC)
#BUILD_DEPENDS= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
@@ -137,13 +131,6 @@
EXTRACT_CMD_R= ${GZIP_CMD}
EXTRACT_REST= gpc231.tar.Z
-.if !defined(WITH_BSD_JDK)
-JDK13DIR?= ${LOCALBASE}/linux-sun-jdk1.3.1
-.else
-JDK13DIR?= ${LOCALBASE}/jdk1.3.1
-.endif
-JAVAVM= ${JDK13DIR}/bin/java
-
GNU_CONFIGURE= yes
USE_AUTOCONF= yes
WANT_AUTOCONF_VER= 253
@@ -169,7 +156,7 @@
CONFIGURE_ENV= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
PTHREAD_LIBS=${PTHREAD_LIBS}
-CONFIGURE_ARGS+= --with-jdk-home=${JDK13DIR} \
+CONFIGURE_ARGS+= --with-jdk-home=${JAVA_HOME} \
--with-os-version=${OSVERSION} \
--with-ant-home=${LOCALBASE}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpsmk0fwwv.fsf>
