airborne12 opened a new pull request, #61285: URL: https://github.com/apache/doris/pull/61285
## Summary - macOS does not implement `sigtimedwait` despite declaring `_POSIX_C_SOURCE >= 199309L`. Boost 1.81's `config.hpp` incorrectly enables `BOOST_POSIX_HAS_SIGTIMEDWAIT` on macOS, causing compile failures in `boost/process/detail/posix/wait_for_exit.hpp`. - This issue was newly exposed by the Python UDF feature (#59543), which introduced the first usage of `boost/process.hpp` in the BE codebase. - Add a thirdparty patch to exclude `__APPLE__` from the sigtimedwait detection macro, so Boost falls back to its fork-based `wait_for_exit` implementation. The patch is only applied on Darwin and does not affect Linux builds. ## Changes - `thirdparty/patches/boost-1.81.0-mac-sigtimedwait.patch` — excludes `__APPLE__` from `BOOST_POSIX_HAS_SIGTIMEDWAIT` - `thirdparty/download-thirdparty.sh` — applies the patch on macOS during thirdparty download phase ## Test plan - [x] Verified BE compiles successfully on macOS (Apple Silicon) after applying the patch - [ ] Linux build should be unaffected (patch is Darwin-only) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
