Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2007 10:26:42 -0800
From:      Ted Faber <faber@ISI.EDU>
To:        openoffice@FreeBSD.org
Cc:        Ted Faber <faber@ISI.EDU>
Subject:   trouble compiling editors/openoffice-2 on -CURRENT (patch included)
Message-ID:  <20071219182642.GD64501@zod.isi.edu>

next in thread | raw e-mail | index | archive | help

--WK3l2KTTmXPVedZ6
Content-Type: multipart/mixed; boundary="n/aVsWSeQ4JHkrmm"
Content-Disposition: inline


--n/aVsWSeQ4JHkrmm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I've been having trouble compiling editors/openoffice-2 on -CURRENT
because of inconsistencies of some king in the bundled python headers.
The compile seems to fail to find pyconfig.h or those files are
differently formatted on -CURRENT or something.  I found the
--with-system-python switch in the openoffice configure script, and that
seems to have solved my problem.

Attached is a patch to add a WITH_SYSTEM_PYTHON flag to the port
makefile so that I can compile under -CURRENT, and so that others who
want to use their local python can as well.  I just added the configure
flag, not a dependency, but I did add a message to let users know the
knob is there.

Let me know if you'd like more information.


--=20
Ted Faber
http://www.isi.edu/~faber           PGP: http://www.isi.edu/~faber/pubkeys.=
asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#=
SIG

--n/aVsWSeQ4JHkrmm
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="oo.patch"
Content-Transfer-Encoding: quoted-printable

diff -ruN openoffice.org-2.bak/Makefile openoffice.org-2/Makefile
--- openoffice.org-2.bak/Makefile	2007-12-19 09:55:20.000000000 -0800
+++ openoffice.org-2/Makefile	2007-12-19 09:58:17.000000000 -0800
@@ -138,6 +138,12 @@
 			--with-gnu-patch=3D${LOCALBASE}/bin/gpatch	\
 			--enable-crashdump=3Dyes				\
 			--enable-symbols=3DSMALL
+
+# The packaged python headers can be out of date
+.if defined(WITH_SYSTEM_PYTHON)=20
+CONFIGURE_ARGS+=3D	--with-system-python
+.endif
+
 .if ${ARCH} =3D=3D amd64
 WITHOUT_MOZILLA=3D	yes
 LIB_DEPENDS+=3D		boost_regex:${PORTSDIR}/devel/boost
diff -ruN openoffice.org-2.bak/files/Makefile.knobs openoffice.org-2/files/=
Makefile.knobs
--- openoffice.org-2.bak/files/Makefile.knobs	2007-12-19 09:54:58.000000000=
 -0800
+++ openoffice.org-2/files/Makefile.knobs	2007-12-19 10:00:54.000000000 -08=
00
@@ -141,6 +141,12 @@
 	@${ECHO} "You can compile OOo with gpc instead of libart by"
 	@${ECHO} "make -DWITH_GPC"
 .endif
+.if !defined(WITH_SYSTEM_PYTHON)
+	@${ECHO}
+	@${ECHO} "You can compile OOo with the installed python rather than"
+	@${ECHO} "the bundled one by"
+	@${ECHO} "make -DWITH_SYSTEM_PYTHON"
+.endif
 .if !defined(WITH_EVOLUTION2)
 	@${ECHO}
 	@${ECHO} "You can compile OOo with evolution2 support by"

--n/aVsWSeQ4JHkrmm--

--WK3l2KTTmXPVedZ6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHaWJhaUz3f+Zf+XsRAtQYAKC3WW5FtZ+gSvDJEpeHUYUdPZLQ0ACg155d
SrFMFkNbjgaz3Te6QQNnx1E=
=Ok9r
-----END PGP SIGNATURE-----

--WK3l2KTTmXPVedZ6--



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