Closed barracuda156 closed 1 year ago
This seems reasonable. If you submit it as a PR, the CI will tell us if modern systems continue to build, although it won't give us any information about < 10.6 or ppc.
This seems reasonable. If you submit it as a PR, the CI will tell us if modern systems continue to build, although it won't give us any information about < 10.6 or ppc.
@meshula I am pretty sure this should not affect newer systems, I opened an issue instead of PR directly because I am not sure this is the best solution. If no better suggestions are there, this fallback is certainly better than a broken build. I can open a PR then.
Yes, please submit a PR. There might be a better solution, but I don't have any ideas about what that better solution might be.
@meshula A potential solution may be using posix semaphores via configure.args-append -DILMTHREAD_HAVE_POSIX_SEMAPHORES=ON
, but I do not know if that is supported (and if it will actually work as intended even if it builds). Comments in the code suggest it is not supported on macOS. At the same time, maybe just no one tried.
UPD. Okay, that failed badly. Let us use posix compat.
I believe this issue was resolved in v3.1.8, feel free to reopen if something is still amiss.
I believe this issue was resolved in v3.1.8, feel free to reopen if something is still amiss.
Yes, we should be good here.
Are versions 2.x still maintained btw? Backporting the fix will be nice, if so. (Otherwise we can do it locally. Relevant since there are some ports depending on an older openexr.)
We don't actively support 2.x releases any more, but if it cleans things up on your end I can make a release, let me know.
@cary-ilm It would be helpful in fact to backport this, since old version is still in use and looks like will be for quite a while: https://github.com/AcademySoftwareFoundation/openexr/pull/1596
There is no
libdispatch
prior to 10.6; also it is not supported onppc
(i.e. on 10.6 forppc
as well). A fallback is required.For the record, using posix compat fixes the build. I am not sure though if is works correctly.
Here is the provisional patch (only defines changed, not the code):