commit 8e305ce
hovercats
·
2024-04-13 06:32:41 +0000 UTC
parent 8b24f5f
ccache: import
8 files changed,
+149,
-0
+72,
-0
1@@ -0,0 +1,72 @@
2+ccache
3+________________________________________________________________________________
4+
5+Ccache is a software development tool that caches the output of C/C++
6+compilation so that the next time, the same compilation can be avoided and the
7+results can be taken from the cache. This can greatly speed up recompiling time.
8+The detection is done by hashing different kinds of information that should be
9+unique for the compilation and then using the hash sum to identify the cached
10+output. Ccache is licensed under the GNU General Public License. [0]
11+
12+Upstream: https://ccache.dev/
13+
14+
15+[000] Index
16+________________________________________________________________________________
17+
18+* Installation ........................................................... [001]
19+* Setup .................................................................. [002]
20+* Usage .................................................................. [003]
21+* Troubleshooting ........................................................ [004]
22+* References ............................................................. [005]
23+
24+
25+[001] Installation
26+________________________________________________________________________________
27+
28++------------------------------------------------------------------------------+
29+| |
30+| $ kiss b ccache |
31+| |
32++------------------------------------------------------------------------------+
33+
34+
35+[002] Setup
36+________________________________________________________________________________
37+
38+To use ccache system-wide add the following to your .profile or shell runtime
39+configuration file. This will use ccache's wrappers in place of the actual
40+executables.
41+
42++------------------------------------------------------------------------------+
43+| |
44+| .profile |
45+| |
46+| 1 export PATH=/usr/lib/ccache/bin:$PATH |
47+| |
48++------------------------------------------------------------------------------+
49+
50+If using clang as the system compiler the setup is a little different. Do the
51+above step and in addition, create the following symbolic links.
52+
53++------------------------------------------------------------------------------+
54+| |
55+| $ ln -s /usr/bin/ccache /usr/lib/ccache/bin/clang |
56+| $ ln -s /usr/bin/ccache /usr/lib/ccache/bin/clang++ |
57+| |
58++------------------------------------------------------------------------------+
59+
60+
61+[003] Usage
62+________________________________________________________________________________
63+
64+Refer to the command help output. The package does not yet provide any such
65+documentation. There is also documentation available online. To verify that
66+ccache is working the 'ccache -s' command can be used.
67+
68+
69+[005] References
70+________________________________________________________________________________
71+
72+[0] https://en.wikipedia.org/wiki/Ccache
73+
+27,
-0
1@@ -0,0 +1,27 @@
2+#!/bin/sh -e
3+
4+export DESTDIR="$1"
5+export LDFLAGS="$LDFLAGS -static"
6+
7+cmake -B build \
8+ -DCMAKE_INSTALL_PREFIX=/usr \
9+ -DCMAKE_BUILD_TYPE=Release \
10+ -DREDIS_STORAGE_BACKEND=OFF \
11+ -DENABLE_TESTING=OFF \
12+ -DZSTD_LIBRARY=/usr/lib/libzstd.a
13+
14+cmake --build build
15+cmake --install build
16+
17+mkdir -p "$1/usr/lib/ccache/bin"
18+host=$(cc -dumpmachine)
19+
20+for link in \
21+ cc "$host-cc" \
22+ gcc "$host-gcc" \
23+ g++ "$host-g++" \
24+ cpp "$host-cpp" \
25+ c++ "$host-c++"
26+do
27+ ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link"
28+done
+1,
-0
1@@ -0,0 +1 @@
2+1c28d482f5412b70f12ef2b5fc0e0a639a1a7f91ea9ce4a671678d31721c9d73dd
+2,
-0
1@@ -0,0 +1,2 @@
2+cmake make
3+zstd make
+29,
-0
1@@ -0,0 +1,29 @@
2+/var/db/kiss/installed/ccache/version
3+/var/db/kiss/installed/ccache/sources
4+/var/db/kiss/installed/ccache/post-install
5+/var/db/kiss/installed/ccache/manifest
6+/var/db/kiss/installed/ccache/depends
7+/var/db/kiss/installed/ccache/checksums
8+/var/db/kiss/installed/ccache/build
9+/var/db/kiss/installed/ccache/README
10+/var/db/kiss/installed/ccache/
11+/var/db/kiss/installed/
12+/var/db/kiss/
13+/var/db/
14+/var/
15+/usr/lib/ccache/bin/x86_64-linux-musl-gcc
16+/usr/lib/ccache/bin/x86_64-linux-musl-g++
17+/usr/lib/ccache/bin/x86_64-linux-musl-cpp
18+/usr/lib/ccache/bin/x86_64-linux-musl-cc
19+/usr/lib/ccache/bin/x86_64-linux-musl-c++
20+/usr/lib/ccache/bin/gcc
21+/usr/lib/ccache/bin/g++
22+/usr/lib/ccache/bin/cpp
23+/usr/lib/ccache/bin/cc
24+/usr/lib/ccache/bin/c++
25+/usr/lib/ccache/bin/
26+/usr/lib/ccache/
27+/usr/lib/
28+/usr/bin/ccache
29+/usr/bin/
30+/usr/
+16,
-0
1@@ -0,0 +1,16 @@
2+#!/bin/sh
3+
4+cat <<EOF
5+
6+NOTE: To enable 'ccache' add this to your
7+ '.shellrc' or '.profile'.
8+
9+-> export PATH=/usr/lib/ccache/bin:\$PATH
10+
11+NOTE: Clang is not supported out-of-the-box.
12+ The following symlinks need to be created.
13+
14+-> ln -s /usr/bin/ccache /usr/lib/ccache/bin/clang
15+-> ln -s /usr/bin/ccache /usr/lib/ccache/bin/clang++
16+
17+EOF
+1,
-0
1@@ -0,0 +1 @@
2+https://github.com/ccache/ccache/releases/download/v4.9.1/ccache-4.9.1.tar.xz
+1,
-0
1@@ -0,0 +1 @@
2+4.9.1 1