Workaround for Rust 1.90.0 relevant to OpenBSD 7.8
Resolved 💬 0 comments Opened Feb 20, 2026 by donpellegrino Closed Feb 20, 2026
What variant of Codex are you using?
CLI
What feature would you like to see?
OpenBSD 7.8 has Rust 1.90.0 in ports, but Codex currently depends on Rust 1.91. The version dependency comes from one line in rama-net that can be patched with:
diff --git a/src/tls/server/config.rs b/src/tls/server/config.rs
@@ -93,7 +93,7 @@ impl Default for ServerSessionMemoryCacheKind {
Self::MemCache {
max_size: CACHE_KIND_DEFAULT_MAX_SIZE,
- ttl: Some(std::time::Duration::from_hours(24 * 7)), // 7 days
+ ttl: Some(std::time::Duration::from_secs(24 * 7 * 3600)), // 7 days
}
}
}
And in Cargo.toml:
[patch.crates-io]
rama-net = { path = "patches/rama-net" }
This leads to the temporary inconvenience where builds on OpenBSD 7.8 would need a custom install of the newer Rust version than would be found in Ports for 7.8. Alternatively, users could apply the above and build with 1.90.0.
I don't think there is any action to take here, I just didn't know where else to post this work-around. Presumably Rust will be bumped forward past 1.91 in OpenBSD 7.9, and this won't be an issue after that.
Additional information
_No response_