From owner-freebsd-openoffice@FreeBSD.ORG Wed Dec 19 18:39:45 2007 Return-Path: Delivered-To: openoffice@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED06E16A469 for ; Wed, 19 Dec 2007 18:39:45 +0000 (UTC) (envelope-from faber@ISI.EDU) Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by mx1.freebsd.org (Postfix) with ESMTP id DAFCA13C46E for ; Wed, 19 Dec 2007 18:39:45 +0000 (UTC) (envelope-from faber@ISI.EDU) Received: from zod.isi.edu (zod.isi.edu [128.9.168.221]) by boreas.isi.edu (8.13.8/8.13.8) with ESMTP id lBJIQgI3018760 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 19 Dec 2007 10:26:43 -0800 (PST) Received: (from faber@localhost) by zod.isi.edu (8.14.2/8.14.2/Submit) id lBJIQgw1080745; Wed, 19 Dec 2007 10:26:42 -0800 (PST) (envelope-from faber) Date: Wed, 19 Dec 2007 10:26:42 -0800 From: Ted Faber To: openoffice@FreeBSD.org Message-ID: <20071219182642.GD64501@zod.isi.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WK3l2KTTmXPVedZ6" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-url: http://www.isi.edu/~faber X-ISI-4-43-8-MailScanner: Found to be clean X-MailScanner-From: faber@zod.isi.edu Cc: Ted Faber Subject: trouble compiling editors/openoffice-2 on -CURRENT (patch included) X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2007 18:39:46 -0000 --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--