maintainer-feedback requested: [Bug 195953] [patch] graphics/py3-cairo fails to build with python3.4 on amd64.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Dec 13 22:18:14 UTC 2014


rsmith at xs4all.nl has reassigned Bugzilla Automation <bugzilla at FreeBSD.org>'s
request for maintainer-feedback to gnome at FreeBSD.org:
Bug 195953: [patch] graphics/py3-cairo fails to build with python3.4 on amd64.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195953



--- Description ---
Created attachment 150552
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150552&action=edit
Patch for the port Makefile.

Python 3.4 is installed:

  > pkg info -x python
  py34-ipython-2.3.0
  python-2.7_2,2
  python-doc-html-2.7.8
  python2-2_3
  python27-2.7.8_6
  python3-3_2
  python34-3.4.2_1

Trying to build graphics/py3-cairo:
----------
root:/usr/ports/graphics/py3-cairo # make
===>  Found saved configuration for cairo-1.10.2_5,2
===>   py34-cairo-1.10.0_2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by py34-cairo-1.10.0_2 for building
===>  Extracting for py34-cairo-1.10.0_2
=> SHA256 Checksum OK for pycairo-1.10.0.tar.bz2.
===>  Patching for py34-cairo-1.10.0_2
===>  Applying FreeBSD patches for py34-cairo-1.10.0_2
===>   py34-cairo-1.10.0_2 depends on executable: pkgconf - found
===>   py34-cairo-1.10.0_2 depends on file: /usr/local/bin/python3.4 - found
===>   py34-cairo-1.10.0_2 depends on executable: python3 - found
===>   py34-cairo-1.10.0_2 depends on shared library: libcairo.so - found
(/usr/local/lib/libcairo.so.2.11200.18)
===>  Configuring for py34-cairo-1.10.0_2
  ./options()
Setting top to				 :
/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0 
Setting out to				 :
/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory 
  ./configure()
Checking for 'gcc' (c compiler) 	 : ok 
Checking for program python		 : /usr/local/bin/python3.4 
Checking for python version		 : (3, 4, 2, 'final', 0) 
Checking for library python3.4 in LIBDIR : not found 
Checking for library python3.4 in python_LIBPL : not found 
Checking for library python3.4 in $prefix/libs : not found 
Checking for library python3.4m in LIBDIR      : yes 
Checking for program python3.4-config	       :
/usr/local/bin/python3.4-config 
command ['/usr/local/bin/python3.4', '/usr/local/bin/python3.4-config',
'--includes'] returned 1
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/py3-cairo
----------

The program usr/local/bin/python3.4-config is a shell-script, so it is not
surprising that this doesn't work!

Unfortunately the code for the build tool waf is dense, badly formatted and
undocumented.

For the build to succeed, the following needed to be added to the CONFIGURE_ENV
in the port Makefile:

   PYTHON_CONFIG="/usr/local/lib/python3.4/config-3.4m/python-config.py"

This can be generalized to:

   PYTHON_CONFIG=${PYTHONPREFIX_LIBDIR}/config-${PYTHON_VER}m/python-config.py

This is added to CONFIGURE_ENV via the attached patch.

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer gnome at FreeBSD.org


More information about the freebsd-gnome mailing list