Skip to content

fix: move check for posix_spawn_file_actions{,_np} to runtime#375

Draft
MangoIV wants to merge 1 commit into
haskell:masterfrom
MangoIV:mangoiv/posix_addchdir_np
Draft

fix: move check for posix_spawn_file_actions{,_np} to runtime#375
MangoIV wants to merge 1 commit into
haskell:masterfrom
MangoIV:mangoiv/posix_addchdir_np

Conversation

@MangoIV

@MangoIV MangoIV commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

to avoid issues with symbols not being available on macos, we move the check for the existance of posix_spawn_file_actions_addchdir{,np} entirely to the runtime.

The gist is that when testing the RC for 9.12.5, I found another issue with symbols not being there when they were configured to be. To avoid this issue altogether I moved the check to the runtime by first creating a weak symbol for the two functions and then the linker will overwrite it if available.

to avoid issues with symbols not being available on macos, we move the
check for the existance of posix_spawn_file_actions_addchdir{,np}
entirely to the runtime.
@tomjaguarpaw

Copy link
Copy Markdown
Member

Can you please let me know the timeline that this is needed in? Is this a blocker for a GHC release?

@MangoIV

MangoIV commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

@tomjaguarpaw yes, so it’s rather urgent but it’s not ready yet, I have to do a bit more investigation

@MangoIV MangoIV marked this pull request as draft June 9, 2026 09:12
@tomjaguarpaw

Copy link
Copy Markdown
Member

OK, please ping me when you have something urgent I need to do.

@MangoIV

MangoIV commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

I still think ideally we should move all the checking to runtime since configure might give us all sorts of non-sense (cf. the recent macos issues) and is in comparison "cheap".

@MangoIV

MangoIV commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

E.g. I'm dreading the moment apple will remove the np version of the posix_spawn_file_actions symbols which is deprecated rn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants