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. From 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: .if !defined(USE_PYTHON) # set by graphics/blender .if defined(USE_PYTHON_BUILD) # usually set by x11/libxcb, but ignored since blender sets USE_PYTHON ... ... 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 <m...@freebsd.org> wrote: > > > 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=" 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 > >
pgpH3CN9TvNPJ.pgp
Description: PGP signature