ccache: do not use hardlinks on android

Fixes https://github.com/termux/termux-packages/issues/7454.
This commit is contained in:
Henrik Grimler 2021-09-02 15:34:40 +02:00
parent 0515f5cd17
commit a3c7f9fb41
2 changed files with 16 additions and 2 deletions

View File

@ -3,14 +3,17 @@ TERMUX_PKG_DESCRIPTION="Compiler cache for fast recompilation of C/C++ code"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=4.4
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/ccache/ccache/releases/download/v$TERMUX_PKG_VERSION/ccache-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=b40bea2ecf88fc15d4431f0d5fb8babf018d7218eaded0f40e07d4c18c667561
TERMUX_PKG_DEPENDS="zlib, zstd"
#[46/89] Building ASM object src/third_party/blake3/CMakeFiles/blake3.dir/blake3_sse2_x86-64_unix.S.o
#FAILED: src/third_party/blake3/CMakeFiles/blake3.dir/blake3_sse2_x86-64_unix.S.o
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DHAVE_ASM_AVX2=FALSE
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DHAVE_ASM_AVX2=FALSE
-DHAVE_ASM_AVX512=FALSE
-DHAVE_ASM_SSE2=FALSE
-DHAVE_ASM_SSE41=FALSE
-DREDIS_STORAGE_BACKEND=OFF "
-DREDIS_STORAGE_BACKEND=OFF
"

View File

@ -0,0 +1,11 @@
--- ./src/Util.cpp.orig 2021-09-02 13:29:52.824656260 +0000
+++ ./src/Util.cpp 2021-09-02 13:30:09.431502502 +0000
@@ -740,7 +740,7 @@
unlink(newpath.c_str());
#ifndef _WIN32
- if (link(oldpath.c_str(), newpath.c_str()) != 0) {
+ if (symlink(oldpath.c_str(), newpath.c_str()) != 0) {
throw core::Error(
"failed to link {} to {}: {}", oldpath, newpath, strerror(errno));
}