New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libbsd: fixup on darwin #25069
libbsd: fixup on darwin #25069
Conversation
This is my attempt to get libbsd workin on Darwin. It's kind of a mess right now with patches. Most of it are ugly hacks but at least it builds!
@matthewbauer, thanks for your PR! By analyzing the history of the files in this pull request, we identified @amiddelk, @peterhoeg and @aristidb to be potential reviewers. |
sed -i '38i#undef strlcpy' include/bsd/string.h | ||
sed -i '38i#undef strlcat' include/bsd/string.h | ||
substituteInPlace src/setproctitle.c \ | ||
--replace 'extern typeof(setproctitle_impl) setproctitle_stub __attribute__((weak, alias("setproctitle_impl")));' "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please turn this into a patch instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok I just combined everything into one patch. That way we won't change the hash for Linux systems.
Much nicer, thanks! 👍 |
@peterhoeg Do you remember what we changed to work around this? |
@LnL7, we didn't. We simple avoided the use of |
This is my attempt to get libbsd workin on Darwin. It's kind of a mess
right now with patches. Most of it are ugly hacks but at least it builds!
Should fix issue #23434
Motivation for this change
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)