diff options
Diffstat (limited to 'testing/cargo/musl-NFS_SUPER_MAGICK.patch')
-rw-r--r-- | testing/cargo/musl-NFS_SUPER_MAGICK.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/cargo/musl-NFS_SUPER_MAGICK.patch b/testing/cargo/musl-NFS_SUPER_MAGICK.patch new file mode 100644 index 0000000000..415766ad91 --- /dev/null +++ b/testing/cargo/musl-NFS_SUPER_MAGICK.patch @@ -0,0 +1,21 @@ +https://github.com/rust-lang/cargo/issues/2937 +--- a/src/cargo/util/flock.rs ++++ b/src/cargo/util/flock.rs +@@ -282,7 +282,7 @@ + human(format!("failed to lock file: {}", path.display())) + }); + +- #[cfg(target_os = "linux")] ++ #[cfg(all(target_os = "linux", not(target_env = "musl")))] + fn is_on_nfs_mount(path: &Path) -> bool { + use std::ffi::CString; + use std::mem; +@@ -302,7 +302,7 @@ + } + } + +- #[cfg(not(target_os = "linux"))] ++ #[cfg(any(not(target_os = "linux"), target_env = "musl"))] + fn is_on_nfs_mount(_path: &Path) -> bool { + false + } |