From b34e81b70c202a45e6769f54225f731f5a54cf80 Mon Sep 17 00:00:00 2001 From: yaoxingyu <15086288792@163.com> Date: Fri, 6 Sep 2024 10:22:59 +0800 Subject: [PATCH] =?UTF-8?q?libarchive=E5=BA=93=E6=9B=B4=E6=96=B0HPKBUILD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yaoxingyu <15086288792@163.com> --- thirdparty/libarchive/HPKBUILD | 2 +- thirdparty/libarchive/libarchive_ohos_test.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thirdparty/libarchive/HPKBUILD b/thirdparty/libarchive/HPKBUILD index 81d6334f..610df5b3 100644 --- a/thirdparty/libarchive/HPKBUILD +++ b/thirdparty/libarchive/HPKBUILD @@ -39,7 +39,7 @@ prepare() { then cd $builddir # 该patch 修改测试文件中的/tmp 目录,替换为/data/local/tmp - patch -p < ../libarchive_ohos_test.patch + patch -p1 < ../libarchive_ohos_test.patch patchflag=false cd $OLDPWD fi diff --git a/thirdparty/libarchive/libarchive_ohos_test.patch b/thirdparty/libarchive/libarchive_ohos_test.patch index 8a08fe85..cbb27523 100644 --- a/thirdparty/libarchive/libarchive_ohos_test.patch +++ b/thirdparty/libarchive/libarchive_ohos_test.patch @@ -84,4 +84,4 @@ diff -Nura libarchive-v3.6.2/test_utils/test_main.c libarchive-v3.6.2-patchdir/t + tmp = "/data/local/tmp"; /* Allow -d to be controlled through the environment. */ - if (getenv(ENVBASE "_DEBUG") != NULL) \ No newline at end of file + if (getenv(ENVBASE "_DEBUG") != NULL) -- Gitee