Skip to content

Commit f244b15

Browse files
committed
Switch onig and onig_sys dependencies to greymd fork for musl compile fix
This commit updates the Cargo.toml and Cargo.lock to point to the greymd fork of the rust-onig repository. The change incorporates a critical fix for compiling onig_sys with musl libc, addressing an issue with _FORTIFY_SOURCE redefinitions and ensuring compatibility with musl targets. This update is necessary to utilize the modifications made in the fork, which disable automatic _FORTIFY_SOURCE insertions when building for musl environments, eliminating related compile-time warnings and errors. The specific revisions updated in Cargo.toml and Cargo.lock reflect the commit in the fork that implements these adjustments. This transition to the forked repository will remain in place until the upstream rust-onig repository merges the relevant changes or another solution is implemented.
1 parent 8797483 commit f244b15

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ structopt = "0.3.26"
2121
cfg-if = "0.1"
2222

2323
# Workaround of build failure https://github.com/rust-onig/rust-onig/pull/174#issuecomment-1730863567 Keep them until new onig crate' is released
24-
onig = { git = "https://github.com/rust-onig/rust-onig", revision = "fa90c0e97e90a056af89f183b23cd417b59ee6a2" , optional = true}
24+
onig = { git = "https://github.com/greymd/rust-onig", revision = "85989776a46c96347c6586ca4ab3ba62cce27332" , optional = true}
2525

2626
[patch.crates-io]
27-
onig_sys = { git = "https://github.com/rust-onig/rust-onig", revision = "fa90c0e97e90a056af89f183b23cd417b59ee6a2", optional = true }
27+
onig_sys = { git = "https://github.com/greymd/rust-onig", revision = "85989776a46c96347c6586ca4ab3ba62cce27332", optional = true }
2828

2929
[dev-dependencies]
3030
assert_cmd = "1.0.1"

0 commit comments

Comments
 (0)