From b8f2bcb2aad192a452d75fbbd23b2a00037c6b1a Mon Sep 17 00:00:00 2001 From: Meghthedev Date: Sat, 9 Sep 2023 20:31:42 +0530 Subject: [PATCH] scripts: ccache: use cmake to configure build * follow the official working method current script yields the following error: ccache.sh: line 6: ./autogen.sh: No such file or directory ccache.sh: line 7: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop. [sudo] password for user: make: *** No rule to make target 'install'. Stop. /tmp autogen.sh no longer exists in the upstream repo --- setup/ccache.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/ccache.sh b/setup/ccache.sh index b295704b..db026f1e 100755 --- a/setup/ccache.sh +++ b/setup/ccache.sh @@ -3,8 +3,8 @@ cd /tmp || exit 1 git clone https://github.com/ccache/ccache.git cd ccache || exit 1 -./autogen.sh -./configure --disable-man --with-libzstd-from-internet --with-libb2-from-internet +mkdir -p build && cd build || exit 1 +cmake -DHIREDIS_FROM_INTERNET=ON -DZSTD_FROM_INTERNET=ON -DCMAKE_BUILD_TYPE=Release .. make -j"$(nproc)" sudo make install rm -rf "${PWD}"