[MacPorts] #58160: macOS 10.4.11: failed to build py27-psutil
MacPorts
noreply at macports.org
Fri Mar 8 16:06:49 UTC 2019
#58160: macOS 10.4.11: failed to build py27-psutil
------------------------+----------------------
Reporter: dzhub | Owner: stromnov
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords: tiger
Port: py-psutil |
------------------------+----------------------
Comment (by kencu):
Do you have any programming skills? The basic issue is that `proc_pidpath`
was added in `10.5 Leopard` and it requires kernel support to implement
easily.
I have been looking at how to add that function to Tiger. The most common
use for it is to find the calling processes' full path, and we can
possibly work around that use case with an NS function that does something
similar, if the calling process and the requested `proc_pidpath` are the
same.
To implement the function in general is turning out to be much harder than
you would think. That information (full path for a PID) is just not easily
there on Tiger.
There are two good places to look -- both `ps` and `lsof` implement
something similar without use `proc_pidpath` to do it. `ps` is
approachable enough -- builds easily for me on Tiger with the existing
sources on Apple's site. `lsof` does a better job, but is a real bear --
uses a lot of `xnu kernel` headers which have been all messed up (on
purpose it looks like) and just won't build.
SO -- that's where we are. Can you help?
--
Ticket URL: <https://trac.macports.org/ticket/58160#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list