[MacPorts] #68884: py312-gobject3: Missing pkg-config file pygobject-3.0.pc required to build third party code like xpra

MacPorts noreply at macports.org
Thu Jul 11 00:59:23 UTC 2024


#68884: py312-gobject3: Missing pkg-config file pygobject-3.0.pc required to build
third party code like xpra
--------------------------+----------------------
  Reporter:  gl-yziquel   |      Owner:  dbevans
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.8.99
Resolution:               |   Keywords:
      Port:  py-gobject3  |
--------------------------+----------------------

Comment (by diogob003):

 Same problem here
 {{{
 The Meson build system
 Version: 1.4.1
 ...
 Program python3 found: YES (/opt/local/bin/python3)
 Message: Python module lxml >= 4.5.0 found: YES 5.2.1 None
 Message: Python module gi >= 3.38.0 found: YES 3.46.0 None
 Message: Python module GLib >= 2.66.0 found: YES 2.78.3 None
 Message: Python module Gtk >= 3.24.0 found: YES 3.24.41 3.0
 Message: Python module Gtk >= 4.0.0 found: YES 4.14.3 4.0
 Message: Python module GtkSource  found: YES 5.10.0 5
 Found pkg-config: YES (/opt/local/bin/pkg-config) 0.29.2
 Found CMake: /opt/local/bin/cmake (3.29.5)
 Run-time dependency pygobject-3.0 found: NO (tried pkgconfig, framework
 and cmake)

 meson.build:88:11: ERROR: Dependency "pygobject-3.0" not found, tried
 pkgconfig, framework and cmake
 ...
 }}}
 {{{
 → port contents py312-gobject3
 Port py312-gobject3 contains:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/pygobject-3.0/pygobject.h
 /opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/pkgconfig/pygobject-3.0.pc
 /opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/PyGObject-3.46.0-py3.12.egg-info/PKG-INFO
 ...
 }}}
 I suppose install script should move or symlink `pygobject-3.0.pc` to
 `${prefix}/lib/pkgconfig/`

 Something like:
 {{{
 post-destroot {
     ln -s ${python.prefix}/lib/pkgconfig/pygobject-3.0.pc
 ${destroot}${prefix}/lib/pkgconfig/
 }
 }}}
 might fix this defect

-- 
Ticket URL: <https://trac.macports.org/ticket/68884#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list