Opened 7 years ago

Closed 7 years ago

#4868 closed defect (fixed)

pycairo 1.10.0 build issue with Python 3.4

Reported by: Wayne Blaszczyk Owned by: Fernando de Oliveira
Priority: normal Milestone: 7.6
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

When executing PYTHON=/usr/bin/python3 ./waf configure --prefix=/usr, I get the following error:

  ./options()
Setting top to                           : /sources/pycairo-1.10.0
Setting out to                           :
/sources/pycairo-1.10.0/build_directory
  ./configure()
Checking for 'gcc' (c compiler)          : ok
Checking for program python              : /usr/bin/python3
python executable '/usr/bin/python3' different from sys.executable
'/usr/bin/python'
Checking for python version              : (3, 4, 0, '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/bin/python3.4-config
command ['/usr/bin/python3', '/usr/bin/python3.4-config', '--includes']
returned 1

Seems like a know issue: https://bugs.gentoo.org/show_bug.cgi?id=504342

Change History (4)

comment:1 by Wayne Blaszczyk, 7 years ago

OK, it took me a bit of time to figure out how to apply this patch (see Gentoo link).

patch -Np1 -i ../pycairo-1.10.0-waf-unpack.patch
wafdir=$(./waf unpack)
pushd $wafdir
patch -Np1 -i ../../pycairo-1.10.0-waf-python34.patch
popd
PYTHON=/usr/bin/python3 ./waf configure --prefix=/usr
./waf build
./waf install

It built successfully with the above instructions.

comment:2 by Fernando de Oliveira, 7 years ago

Owner: changed from blfs-book@… to Fernando de Oliveira
Status: newassigned

comment:3 by Wayne Blaszczyk, 7 years ago

In retrospect, I'm wondering if the first patch is necessary. All it does is displays the unpacked directory. You could surmise this.

comment:4 by Fernando de Oliveira, 7 years ago

Resolution: fixed
Status: assignedclosed

Thank you very much, Wayne. Could not see how to do with just one patch, so, included both.

Fixed at r12899.

Note: See TracTickets for help on using tickets.