[crux-commits] ports/contrib (refs/remotes/origin/3.6): sccache: fix up build options

crux at crux.nu crux at crux.nu
Sat Apr 10 19:06:06 UTC 2021


commit e8c67c9590740eb54542b6e87ee63dd0365b14d9
Author: Danny Rawlins <contact at romster.me>
Date:   Sat Jan 2 17:53:41 2021 +1100

    sccache: fix up build options

diff --git a/sccache/.signature b/sccache/.signature
index eba5a4f2e..e769fabf4 100644
--- a/sccache/.signature
+++ b/sccache/.signature
@@ -1,5 +1,5 @@
 untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF363+Dt92dny00ftyRHgciZfS9dyE/+dm7pC0RtP9RvnfyBFAu2CzjmkwrGGxv1LxlA6zUZRtI0j2wv8W0j3F1AM=
-SHA256 (Pkgfile) = 267965ca4cb6e9dc3862ce2d17157bf2d832897128ad14ae33e964a95ee843c2
+RWSagIOpLGJF3+7qTlwpN8Da4X3e6O3CCrbO7hprGgIhr6zDOuXIM/ao6VSm2DuXfdr8XOHJby+7E6m/DZA9lJSag94YXRd+FAI=
+SHA256 (Pkgfile) = caf685050c945805270b1a3bd460ddca0a569924b3d16c3f3cad8e86c51c8a1f
 SHA256 (.footprint) = faf777b374273121eaa06a3f627d66169ce6db1948d7cd60994b641e88e88f09
 SHA256 (sccache-0.2.14.tar.gz) = 664f1557430056960261cac6f939c6d7bbd746b1e4bc88f79edcac40417bb654
diff --git a/sccache/Pkgfile b/sccache/Pkgfile
index 516dc6148..787a5b916 100644
--- a/sccache/Pkgfile
+++ b/sccache/Pkgfile
@@ -5,18 +5,19 @@
 
 name=sccache
 version=0.2.14
-release=1
+release=2
 source=(https://github.com/mozilla/sccache/archive/$version/$name-$version.tar.gz)
 
 build() {
-	cd $name-$version
-
 	prt-get isinst sccache && export RUSTC_WRAPPER='/usr/bin/sccache'
 	mkdir "$PKGMK_SOURCE_DIR/rust" || true
 	export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
 
-	cargo fetch
-	cargo build --release
-	cargo install --path . --root $PKG/usr
-	rm $PKG/usr/{.crates.toml,.crates2.json}
+	cargo fetch --manifest-path $name-$version/Cargo.toml --locked
+
+	cargo build --manifest-path $name-$version/Cargo.toml --release --frozen \
+		--features all --features native-zlib
+
+	cargo install --path $name-$version --root $PKG/usr --frozen --no-track --offline \
+		--features all --features native-zlib
 }


More information about the crux-commits mailing list