-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Breaking change in v0.2.145 for MUSL's open64 #3264
Comments
Good spot, and yes indeed that's an unintended change - the whole point of that module is to back-fill a non-breaking API. Unfortunately, we can't shim variadic functions since they're unstable (as local functions) rust-lang/rust#44930. If that were merged we could write something like:
An earlier version of this change re-exported the LFS64 symbols with
The latter of these doesn't matter for @JohnTitor @Amanieu - I proposed for now we switch open/openat to be aliased with a |
Oh, there's a 3rd problem with |
I agree with changing this to a use, I think this is the best way forward. |
Use `use` to alias open/openat in lfs64.rs Proposed workaround for #3264 (see that issue for details).
I've yanked v0.2.145 for now since it is causing widespread breakage. |
See rust-lang/libc#3264 Requiring a yanked version causes `cargo update` to fail on CI: https://app.circleci.com/pipelines/github/apollographql/router/12758/workflows/52d4c586-1da7-453b-b90f-1366c72ae46b/jobs/83879?invite=true#step-115-7
See rust-lang/libc#3264 Requiring a yanked version causes `cargo update` to fail on CI: https://app.circleci.com/pipelines/github/apollographql/router/12758/workflows/52d4c586-1da7-453b-b90f-1366c72ae46b/jobs/83879?invite=true#step-115-7 <!-- start metadata --> **Checklist** Complete the checklist (and note appropriate exceptions) before a final PR is raised. - [ ] Changes are compatible[^1] - [ ] Documentation[^2] completed - [ ] Performance impact assessed and acceptable - Tests added and passing[^3] - [ ] Unit Tests - [ ] Integration Tests - [ ] Manual Tests **Exceptions** *Note any exceptions here* **Notes** [^1]. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. [^2]. Configuration is an important part of many changes. Where applicable please try to document configuration examples. [^3]. Tick whichever testing boxes are applicable. If you are adding Manual Tests: - please document the manual testing (extensively) in the Exceptions. - please raise a separate issue to automate the test and label it (or ask for it to be labeled) as `manual test`
I think this issue can be closed now? |
Previously,
open64
on MUSL was using the common definition with variadics. But in v0.2.145 it was migrated to a non-variadic definition. This has caused breakage ofgetrandom v0.1
, see rust-random/getrandom#363.cc @bossmc
The text was updated successfully, but these errors were encountered: