Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Dec 2014 22:18:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 195953] [patch] graphics/py3-cairo fails to build with python3.4 on amd64.
Message-ID:  <bug-195953-6497-vb8XJ4OwHj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-195953-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-195953-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
rsmith@xs4all.nl has reassigned Bugzilla Automation <bugzilla@FreeBSD.org>'s
request for maintainer-feedback to gnome@FreeBSD.org:
Bug 195953: [patch] graphics/py3-cairo fails to build with python3.4 on amd=
64.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D195953



--- Description ---
Created attachment 150552
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D150552&action=
=3Dedit
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
=3D=3D=3D>  Found saved configuration for cairo-1.10.2_5,2
=3D=3D=3D>   py34-cairo-1.10.0_2 depends on file: /usr/local/sbin/pkg - fou=
nd
=3D=3D=3D> Fetching all distfiles required by py34-cairo-1.10.0_2 for build=
ing
=3D=3D=3D>  Extracting for py34-cairo-1.10.0_2
=3D> SHA256 Checksum OK for pycairo-1.10.0.tar.bz2.
=3D=3D=3D>  Patching for py34-cairo-1.10.0_2
=3D=3D=3D>  Applying FreeBSD patches for py34-cairo-1.10.0_2
=3D=3D=3D>   py34-cairo-1.10.0_2 depends on executable: pkgconf - found
=3D=3D=3D>   py34-cairo-1.10.0_2 depends on file: /usr/local/bin/python3.4 =
- found
=3D=3D=3D>   py34-cairo-1.10.0_2 depends on executable: python3 - found
=3D=3D=3D>   py34-cairo-1.10.0_2 depends on shared library: libcairo.so - f=
ound
(/usr/local/lib/libcairo.so.2.11200.18)
=3D=3D=3D>  Configuring for py34-cairo-1.10.0_2
  ./options()
Setting top to				 :
/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0=20
Setting out to				 :
/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory=20
  ./configure()
Checking for 'gcc' (c compiler) 	 : ok=20
Checking for program python		 : /usr/local/bin/python3.4=20
Checking for python version		 : (3, 4, 2, 'final', 0)=20
Checking for library python3.4 in LIBDIR : not found=20
Checking for library python3.4 in python_LIBPL : not found=20
Checking for library python3.4 in $prefix/libs : not found=20
Checking for library python3.4m in LIBDIR      : yes=20
Checking for program python3.4-config	       :
/usr/local/bin/python3.4-config=20
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=3D"/usr/local/lib/python3.4/config-3.4m/python-config.py"

This can be generalized to:

   PYTHON_CONFIG=3D${PYTHONPREFIX_LIBDIR}/config-${PYTHON_VER}m/python-conf=
ig.py

This is added to CONFIGURE_ENV via the attached patch.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195953-6497-vb8XJ4OwHj>