From owner-freebsd-python@FreeBSD.ORG Fri Nov 4 07:58:14 2011 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67D1A106564A for ; Fri, 4 Nov 2011 07:58:14 +0000 (UTC) (envelope-from mva@FreeBSD.org) Received: from smtprelay06.ispgateway.de (smtprelay06.ispgateway.de [80.67.31.101]) by mx1.freebsd.org (Postfix) with ESMTP id EE4018FC12 for ; Fri, 4 Nov 2011 07:58:13 +0000 (UTC) Received: from [89.182.81.132] (helo=localhost) by smtprelay06.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1RMEPZ-00085E-Ob; Fri, 04 Nov 2011 08:42:02 +0100 Date: Fri, 4 Nov 2011 08:46:04 +0100 From: Marcus von Appen To: Rob Messick Message-ID: <20111104074604.GA1948@medusa.sysfault.org> References: <20111102193753.GA1912@medusa.sysfault.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Df-Sender: MzIwMDk1 Cc: python@FreeBSD.org Subject: Re: Building blender port in chroot/clean environment X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcus von Appen List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 07:58:14 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Rob, On, Wed Nov 02, 2011, Rob Messick wrote: > I'm building blender as part of the pbi build process. AFAIK this process > sets up a fresh chroot build environment and there is no make.conf within > the chroot. Was able to get blender to build by building and installing > libxcb in the chroot prior to building blender. If libxcb is not installed > prior to building blender (an unlikely scenario, I agree), ports attempts > to build libxcb with python 3.2. =46rom what I read, pbi is some PC-BSD build thing, correct? Did you get into touch with the relevant PC-BSD people on that matter already? If not, I think, it would make sense, if we involve them in this discussion later on, since it might be that either - pbi contains a bug of not using a clean environment or port build instructions or - FreeBSD's python port make system has a glitch to ignore libxcb's setting I'm CC'ing python@ here on that matter. From what I can see in bsd.python.mk is that the following might happen: =2Eif !defined(USE_PYTHON) # set by graphics/blender =2Eif defined(USE_PYTHON_BUILD) # usually set by x11/libxcb, but igno= red since blender sets USE_PYTHON =2E.. =2E.. python@: Can you confirm that this could occur (see below for the complete issue)? Best regards Marcus > On Wed, Nov 2, 2011 at 12:37 PM, Marcus von Appen wrote: >=20 > > Hi Rob, > > > > On, Wed Nov 02, 2011, Rob Messick wrote: > > > > > If you build blender 2.60 in a chroot environment without libxcb > > installed > > > previously, as the build tries to execute python2 code with python3.2 > > > libxcb build will error like so: > > > > > > gmake[1]: Entering directory > > `/tmpfs/usr/ports/x11/libxcb/work/libxcb-1.7/src' > > > /usr/pbi/blender-amd64/bin/python3.2 ./c_client.py -p > > > /usr/pbi/blender-amd64/lib/python3.2/site-packages > > > /usr/pbi/blender-amd64/share/xcb/xproto.xml > > > File "./c_client.py", line 1013 > > > except getopt.GetoptError, err: > > > ^ > > > SyntaxError: invalid syntax > > > gmake[1]: *** [xproto.c] Error 1 > > > gmake[1]: Leaving directory > > `/tmpfs/usr/ports/x11/libxcb/work/libxcb-1.7/src' > > > gmake: *** [all-recursive] Error 1 > > > > > > > > > Not sure if this is a libxcb problem or a ports issue ( I haven't > > > looked at what "USE_PYTHON_BUILD=3D" is supposed to do). Let me know = if > > > I can help more. > > > > as it seems, your default python installation points to 3.2, for which > > the above "except ..., ..." is in fact not allowed anymore. > > > > x11/libxcb tries to stick to Python 2.5 to 2.7, so my best guess is that > > your chroot's /etc/make.conf (or whatever you use for your port > > settings) overrides the python build settings somehow. Can you check > > this and - if unsure - send me your /etc/make.conf (or other port > > option settings file)? > > > > Best regards > > Marcus > > --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk6zmDwACgkQi68/ErJnpkeZOwCgpYCruccwP4UH26erSz6Z5usd m0EAn39rCXTct3V2dGLV+A6gwJy0F0sX =1Zwm -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm--