Skip to content
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

Deal with libc 0.2.165's removal of array size hacks #1393

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

dtolnay
Copy link
Contributor

@dtolnay dtolnay commented Nov 26, 2024

@dtolnay
Copy link
Contributor Author

dtolnay commented Nov 26, 2024

If necessary, we could support both by using a trait that is implemented for both [[c_char; M]; N] and [c_char; N]. But just supporting the newest seems fine — unless yet another libc version reverts the change.

@dtolnay
Copy link
Contributor Author

dtolnay commented Nov 26, 2024

I found a better fix that will work even if libc reverts the change.

@GuillaumeGomez
Copy link
Owner

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit 936b979 into GuillaumeGomez:master Nov 26, 2024
67 checks passed
@GuillaumeGomez GuillaumeGomez mentioned this pull request Nov 26, 2024
3 tasks
KapJI added a commit to KapJI/buck2 that referenced this pull request Nov 26, 2024
Summary:
`sysinfo` is fixed by GuillaumeGomez/sysinfo#1393 which is released as v0.32.1.

But there are breaking changes compare to current sysinfo v0.30.11 we have internally and it needs to be migrated.

Differential Revision: D66499693
@dtolnay dtolnay deleted the vip_path branch November 26, 2024 15:37
facebook-github-bot pushed a commit to facebook/buck2-shims-meta that referenced this pull request Nov 26, 2024
Summary:
X-link: facebook/buck2#814

`libc` 0.2.165 was released recently and it breaks `sysinfo` crate for Mac.

`sysinfo` is fixed by GuillaumeGomez/sysinfo#1393 which is released as v0.32.1.

But there are breaking changes compare to current sysinfo v0.30.11 we have internally and it needs to be migrated.

Reviewed By: ndmitchell, Will-MingLun-Li

Differential Revision: D66499693

fbshipit-source-id: 390c76f85ce431f39882345500593ae008664b80
facebook-github-bot pushed a commit to facebook/buck2 that referenced this pull request Nov 26, 2024
Summary:
Pull Request resolved: #814

`libc` 0.2.165 was released recently and it breaks `sysinfo` crate for Mac.

`sysinfo` is fixed by GuillaumeGomez/sysinfo#1393 which is released as v0.32.1.

But there are breaking changes compare to current sysinfo v0.30.11 we have internally and it needs to be migrated.

Reviewed By: ndmitchell, Will-MingLun-Li

Differential Revision: D66499693

fbshipit-source-id: 390c76f85ce431f39882345500593ae008664b80
@tgross35
Copy link

Changing the private fields wasn't intentional and seems to have a lot of fallout unfortunately. So we are going to revert, I'm not sure if that affects things here (thanks for working around it so quickly)

@GuillaumeGomez
Copy link
Owner

@tgross35 We depend on 0.2.165, which was yanked. So it'd be nice if we had a 0.2.166 release.

@tgross35
Copy link

That should be out very soon rust-lang/libc#4147

@GuillaumeGomez
Copy link
Owner

Awesome, thanks!

@tgross35
Copy link

The release just finished https://github.com/rust-lang/libc/releases/tag/0.2.166

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.

sysinfo build failing with latest libc v0.2.165
4 participants