Opened 11 years ago

Closed 10 years ago

#43261 closed defect (fixed)

py27-gobject3: No package 'pycairo' found

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: py-gobject3

Description

./configure: line 13250: ./libtool: No such file or directory
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.38.0... yes (version 2.40.0)
checking for FFI... yes
checking for GIO... yes
checking for GI... yes
checking for CAIRO... yes
checking for PYCAIRO... no
configure: error: Package requirements (pycairo >= 1.2.0
        ) were not met:

No package 'pycairo' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PYCAIRO_CFLAGS
and PYCAIRO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

config.log says:

configure:14147: checking for PYCAIRO
configure:14155: $PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
        "
Package pycairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `pycairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pycairo' found

py27-cairo is installed:

$ port -v installed py27-cairo
The following ports are currently installed:
  py27-cairo @1.10.0_2+universal+x11 platform='darwin 13' archs='i386 x86_64'
  py27-cairo @1.10.0_3+universal (active) platform='darwin 13' archs='i386 x86_64'
 $ port contents py27-cairo
Port py27-cairo contains:
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/pycairo/pycairo.h
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/pycairo.pc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cairo/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cairo/_cairo.so
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pycairo-1.10.0-py2.7.egg-info

Attachments (1)

main.log (102.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 11 years ago by neverpanic (Clemens Lang)

The Portfile adds PKG_CONFIG_PATH='${python.prefix}/lib/pkgconfig' to the configure environment. Since you didn't attach the main.log I cannot check whether that worked for you, but it certainly works fine for me.

Please attach the main.log.

comment:2 Changed 10 years ago by neverpanic (Clemens Lang)

Keywords: lack-of-interest added
Resolution: worksforme
Status: newclosed

There's nothing I can do about this without the main.log, since I can't reproduce.

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: lack-of-interest removed
Resolution: worksforme
Status: closedreopened

Ah, I had a local patch to the python-1.0 portgroup trying to solve the problem I mentioned in comment:ticket:34271:12. I've been running with that patch for a long time. I should just commit it.

The reason why py-gobject3 has a problem with the patch is that py-gobject3 puts PKG_CONFIG_PATH into configure.env manually, instead of using the configure.pkg_config_path variable. Looks like a number of ports make this same mistake. However, after I commit my patch to the portgroup, the ports will no longer need to add that path manually since the portgroup will already have done it.

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:4 Changed 10 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: reopenedclosed

OK, r120178.

Note: See TracTickets for help on using tickets.