From 2374a1e0c4fae795ae827bb7c6e340bb28aeb9ff Mon Sep 17 00:00:00 2001 From: Ruslan Sayfutdinov Date: Tue, 26 Nov 2024 07:46:25 -0800 Subject: [PATCH] github: disallow libc 0.2.165 (#814) Summary: Pull Request resolved: https://github.com/facebook/buck2/pull/814 `libc` 0.2.165 was released recently and it breaks `sysinfo` crate for Mac. `sysinfo` is fixed by https://github.com/GuillaumeGomez/sysinfo/pull/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 --- Cargo.toml | 3 ++- shim/third-party/rust/Cargo.toml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cf48f4c8c88c..9b6b7f66378e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -200,7 +200,8 @@ itertools = "0.13.0" jemallocator = { version = "0.5.0", features = ["profiling"] } lalrpop = { version = "0.19.7", artifact = "bin" } lalrpop-util = "0.19.7" -libc = "0.2.147" +# FIXME: libc v0.2.165 breaks sysinfo crate. This is fixed in sysinfo v0.32.1. +libc = ">=0.2.147,<0.2.165" linked-hash-map = { version = "0.5", features = ["serde_impl"] } linkme = { version = "0.3.17", features = ["used_linker"] } log = "0.4" diff --git a/shim/third-party/rust/Cargo.toml b/shim/third-party/rust/Cargo.toml index b43b5e48e8d4..d49131f7ee3b 100644 --- a/shim/third-party/rust/Cargo.toml +++ b/shim/third-party/rust/Cargo.toml @@ -120,7 +120,8 @@ itertools = "0.13.0" jemallocator = { version = "0.5.0", features = ["profiling"] } lalrpop = { version = "0.19.7", artifact = "bin", features = ["pico-args"] } lalrpop-util = "0.19.7" -libc = "0.2.132" +# FIXME: libc v0.2.165 breaks sysinfo crate. This is fixed in sysinfo v0.32.1. +libc = ">=0.2.132,<0.2.165" linked-hash-map = { version = "0.5", features = ["serde_impl"] } linkme = { version = "0.3.17", features = ["used_linker"] } log = "0.4"