Hi,
On 23/10/18 16:35, Ken Cunningham wrote:
On 2018-10-23, at 8:18 AM, Chris Jones wrote:
We have worked around this in a number of ports so far, and turned off some
functionality in others.
I use the_silver_searcher to find stuff like this, for example in the
macports-ports repo:
ag -i clock_gettime .
Sorry, I don't follow the reference to the_silver_searcher or what the 'ag'
command above is supposed to be (I don't have it).
Anyway, I guess I was not precise enough. Yes, I already have noted a number of
ports in the repo have patches to work around this. What I was hoping for was a
way to fix this *without* have to patch or touch the port at all. Something
like updating snowleopardfixes to add whatever is needed so that ports
automatically find the required implementation and use it, transparently.
Chris
the_silver_searcher is one great tool. I probably use it every day in one way
or another. it's a port, you can install it. Highly recommended by me.
Ah I see. Missed it was a port.
As my port tree is a full git clone, then I can use 'git grep' to search
for anything in it, and I bet that beats anything else ;)
I think extending snowleopard_fixes is a fine idea.
I have been pondering a good way to make it add the header definition properly ( ? use
specific headers such as string.h injected ahead of the system search directory and
"include_next", perhaps?) and also possibly to make each definition selectable,
or at least OS-version groups blocked off with guards.
Yeah, this was my idea...
BTW, here is a nice clock_gettime() replacement that Jeremy wrote up:
<https://github.com/macports/macports-ports/blob/master/graphics/cogl/files/patch-clock_gettime.diff>
Thanks. That is a bit better than what I cooked up for xrootd. I might
replace it ;)
Chris
Ken