[MacPorts] #55415: cmake @3.10.1 does not build on PPC Tiger, Mac OS X 10.4.11, due to various issues building libuv
MacPorts
noreply at macports.org
Thu Mar 22 21:18:42 UTC 2018
#55415: cmake @3.10.1 does not build on PPC Tiger, Mac OS X 10.4.11, due to various
issues building libuv
------------------------+-----------------------
Reporter: ballapete | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: | Keywords: tiger
Port: cmake |
------------------------+-----------------------
Comment (by ballapete):
Replying to [comment:2 kencu]:
> try adding this and please report back
>
> {{{
> # fix build on Tiger
> if { ${os.platform} eq "darwin" && ${os.major} == 8 } {
> configure.cxxflags-append -D__DARWIN_UNIX03
> }
> }}}
Ken,
are you sure this works? Recently I had to use `configure.cflags-append
-D__DARWIN_UNIX03` to see a difference, i.e. the cure of void unsetenv().
Can it be this works only when invoking `port test <some port>`?
I think of recording all the C header files (via `configure.cflags-append
-H`) and then finding all the source files that use a header with
`__DARWIN_UNIX03` to possible determine all the changes that are
introduced through this definition.
BTW, I think I have found a *fully* compatible version for the unsetenv()
problem:
{{{
int uv_os_unsetenv(const char* name) {
/* Mac OS X before Leopard, 10.5, has void unsetenv */
#if __MAC_OS_X_VERSION_MIN_REQUIRED > 1040
if (unsetenv(name) != 0)
return -errno;
#else
unsetenv(name);
if (getenv(name) != NULL) /* if name still exists in environment,
then no NULL pointer */
return -1;
#endif
return 0;
}
}}}
The only question left, for me, is whether 1 is the correct value… I mean
the value for `errno`, if used here, would be that of `getenv()`. Which
error could happen? A typo in `name`? No memory or disk space left? But it
seems to that this function is just declared (for UNIX and MS) and nowhere
used. So it could be removed as well.
--
Ticket URL: <https://trac.macports.org/ticket/55415#comment:27>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list