-
Notifications
You must be signed in to change notification settings - Fork 255
Fix si-fs project on macos #6219
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
Conversation
|
Will continue trying to figure out how to make these changes only apply on macos |
|
/try |
|
Okay, starting a try! I'll update this comment once it's running...\n |
|
@JakeGinnivan we just need to test this out and make sure the changes still work on linux. But looks good to me so far! |
|
@zacharyhamm feedback on the approaches welcome, not used fuse, nix or buck2 before so probably better ways, but looked for existing patterns to solve OS specific ways to solve in buck and seemed it was mostly done through fixups. |
|
@JakeGinnivan sorry for losing track of this one. I have tested it on linux and it builds, so we should be good to go. Can you rebase this with the latest main? Let me know and I'll test it out again on macOS and Linux. |
* Fix si-fs project building for mac in buck2 * Added libfuse to fuser features * Switch EBADFD to EBADF for cross platform bad file descriptor * Pass additional link args on mac so the rust binary can link the the macfuse symbols * Fixed old fixup format
3bee229 to
43dd25c
Compare
|
@zacharyhamm I've rebased. I've gone through it all again, I think the fixup was the wrong approach, I've removed. Here is some things i've noticed which having someone who is more familiar with the build system setup to validate. Cargo.lockThe conditional feature in third-party/rust/Cargo.toml is causing pkg-config to be added to the Cargo.lock file, not sure if this is going to cause an issue. Also, I've had to duplicate the fuser version number, which will break if the conditional dep and the normal dep don't both get upgraded. Reindeer adding to buildscript_runThe above causes reindeer to add the additional platform targets to buildscript_run. But this isn't supported by platform_fixup.I removed this in some windows fixup files as that syntax has been removed in reindeer, I was using it previously, but I don't think that's the right approach because it doesn't automatically add the dependencies in, which causes issues downstream. |
Great! taking a look |
|
hey @JakeGinnivan - so we started work on a new tool - called I am going to close this out - sorry we were so bad about responding to this :/ I will make sure this doesn't happen again in the future |
|
@stack72 all good, was interesting learning the toolchain enough to try fix this. New tool sounds like a nice approach |
Added libfuse to fuser features
Switch EBADFD to EBADF for cross platform bad file descriptor Pass additional link args on mac so the rust binary can link the the macfuse symbols
I've tried to not make changes which would affect linux, but don't have a linux machine at the moment so I've not tested.