From 8793e646900feba1b97515cbd19f616eb467d4d0 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Thu, 15 Aug 2024 19:43:41 +0000 Subject: [PATCH] enhance(main/yazi): Remove unnecessary patch for tikv-jemalloc-sys crate --- packages/yazi/build.sh | 12 ------------ ...-jemalloc-sys-0.5.3+5.3.0-patched-src-lib.rs.diff | 11 ----------- 2 files changed, 23 deletions(-) delete mode 100644 packages/yazi/tikv-jemalloc-sys-0.5.3+5.3.0-patched-src-lib.rs.diff diff --git a/packages/yazi/build.sh b/packages/yazi/build.sh index 8c130fda6ca9f0..fcbb4d6072f03a 100644 --- a/packages/yazi/build.sh +++ b/packages/yazi/build.sh @@ -10,18 +10,6 @@ TERMUX_PKG_BUILD_IN_SRC=true termux_step_pre_configure() { termux_setup_rust - - : "${CARGO_HOME:=$HOME/.cargo}" - export CARGO_HOME - - cd "$TERMUX_PKG_SRCDIR" - cargo fetch --target "${CARGO_TARGET_NAME}" - - local _patch=$TERMUX_PKG_BUILDER_DIR/tikv-jemalloc-sys-0.5.3+5.3.0-patched-src-lib.rs.diff - local d - for d in "$CARGO_HOME"/registry/src/*/tikv-jemalloc-sys-*; do - patch --silent -p1 -d "${d}" < "${_patch}" || : - done } termux_step_make() { diff --git a/packages/yazi/tikv-jemalloc-sys-0.5.3+5.3.0-patched-src-lib.rs.diff b/packages/yazi/tikv-jemalloc-sys-0.5.3+5.3.0-patched-src-lib.rs.diff deleted file mode 100644 index e41b16b9d06283..00000000000000 --- a/packages/yazi/tikv-jemalloc-sys-0.5.3+5.3.0-patched-src-lib.rs.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- a/src/lib.rs -+++ b/src/lib.rs -@@ -889,7 +889,7 @@ - #[no_mangle] - #[cfg(target_os = "android")] - #[doc(hidden)] --pub extern "C" fn pthread_atfork( -+pub extern "C" fn _pthread_atfork_unused_on_termux( - _prefork: *mut u8, - _postfork_parent: *mut u8, - _postfork_child: *mut u8,