[crux-commits] ports/opt (3.6): clang-ccache-bindings: update footprint

crux at crux.nu crux at crux.nu
Wed Feb 17 09:54:49 UTC 2021


commit 33de66e3502a9a4bdbf12c37102f57ce0de88ced
Author: Danny Rawlins <contact at romster.me>
Date:   Wed Feb 17 20:53:22 2021 +1100

    clang-ccache-bindings: update footprint

diff --git a/clang-ccache-bindings/.footprint b/clang-ccache-bindings/.footprint
index 2178d1d78..b32fb7c3b 100644
--- a/clang-ccache-bindings/.footprint
+++ b/clang-ccache-bindings/.footprint
@@ -4,4 +4,4 @@ drwxr-xr-x	root/root	usr/lib/ccache/
 lrwxrwxrwx	root/root	usr/lib/ccache/clang -> ../../bin/ccache
 lrwxrwxrwx	root/root	usr/lib/ccache/clang++ -> ../../bin/ccache
 lrwxrwxrwx	root/root	usr/lib/ccache/clang-11 -> ../../bin/ccache
-lrwxrwxrwx	root/root	usr/lib/ccache/clang-11.0 -> ../../bin/ccache
+lrwxrwxrwx	root/root	usr/lib/ccache/clang-11.1 -> ../../bin/ccache
diff --git a/clang-ccache-bindings/.signature b/clang-ccache-bindings/.signature
index ecd56bd72..827cd725b 100644
--- a/clang-ccache-bindings/.signature
+++ b/clang-ccache-bindings/.signature
@@ -1,4 +1,4 @@
 untrusted comment: verify with /etc/ports/opt.pub
-RWSE3ohX2g5d/Tnku5q5YBqOUxyAA7QCfc/VYmQuSHylJXUQdTekvtMl4k6y+72YN0kgecbUTlKrZGeQN3IW1Oj51w33727qgwM=
-SHA256 (Pkgfile) = 61c04b25c1a59dc158823b526dfe4a763ddd38414564630b265998b2a2c076bd
-SHA256 (.footprint) = 50fcd79bec335679df5be4f2affaa8bbfae5122d92287d184bb2d2618750afaf
+RWSE3ohX2g5d/QwuB+JzuMHIGamCApBJ42BnI4OP+w+7TWWBAKS409O5QdKbrxX6N58H2p4pUAqmPGGDxLTjdu+ndjNCGxcgOQM=
+SHA256 (Pkgfile) = beb3b76ce3bdde2c12b71743628ca9345d9a239877d13a9089cd1377a47bf1da
+SHA256 (.footprint) = 9fd862d8969c211e5bef766f78decd13b3e0b9f099245016144c53d00b642ca9
diff --git a/clang-ccache-bindings/Pkgfile b/clang-ccache-bindings/Pkgfile
index 4d4ee8023..cad2008c4 100644
--- a/clang-ccache-bindings/Pkgfile
+++ b/clang-ccache-bindings/Pkgfile
@@ -1,5 +1,5 @@
 # Description: Masquerade directory to use ccache with clang.
-# URL: http://llvm.org/
+# URL: https://ccache.dev/
 # Maintainer: Danny Rawlins, crux at romster dot me
 # Depends on: ccache clang
 
@@ -11,8 +11,8 @@ source=()
 build() {
 	install -d $PKG/usr/lib/ccache
 
-	local clang0="$(clang++ -v 2>&1 | grep version | sed 's/.*version \([0-9]*\).[0-9]*.[0-9]*/\1/g')"
-	local clang1="$(clang++ -v 2>&1 | grep version | sed 's/.*version \([0-9]*.[0-9]*\).[0-9]*/\1/g')"
+	local clang0="$(clang --version | awk '/version/ { split($3,i,"."); print i[1]"."i[2] }')"
+	local clang1="${clang0:0:2}"
 
 	if [ -z "$clang0" ]; then
 		echo 'Failed to find clang version'


More information about the crux-commits mailing list