summaryrefslogtreecommitdiff
path: root/dev-lang/rust/rust-1.75.0-r101.ebuild
diff options
context:
space:
mode:
authorMatt Jolly <kangie@gentoo.org>2025-06-04 09:55:42 +1000
committerMatt Jolly <kangie@gentoo.org>2025-06-04 10:06:47 +1000
commitbcfde367abadc6c154d2452ba916cae2bf73f194 (patch)
treef2b53f4bd7e16548cb190afe674df31cc39175a7 /dev-lang/rust/rust-1.75.0-r101.ebuild
parentb7a855a1adcd5d53fdb03c6c41fc17010cd3d65b (diff)
downloadgentoo-bcfde367abadc6c154d2452ba916cae2bf73f194.tar.gz
gentoo-bcfde367abadc6c154d2452ba916cae2bf73f194.tar.bz2
gentoo-bcfde367abadc6c154d2452ba916cae2bf73f194.zip
dev-lang/rust: fix verify-sig
When the patch tarballs were added the ebuilds were not updated to ensure that only upstream-signed files are verified. Signed-off-by: Matt Jolly <kangie@gentoo.org>
Diffstat (limited to 'dev-lang/rust/rust-1.75.0-r101.ebuild')
-rw-r--r--dev-lang/rust/rust-1.75.0-r101.ebuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/dev-lang/rust/rust-1.75.0-r101.ebuild b/dev-lang/rust/rust-1.75.0-r101.ebuild
index 0d0075b47848..26405e53fed7 100644
--- a/dev-lang/rust/rust-1.75.0-r101.ebuild
+++ b/dev-lang/rust/rust-1.75.0-r101.ebuild
@@ -232,6 +232,15 @@ pkg_setup() {
fi
}
+src_unpack() {
+ if use verify-sig ; then
+ # Patch tarballs are not signed (but we trust Gentoo infra)
+ verify-sig_verify_detached "${DISTDIR}"/rustc-${PV}-src.tar.xz{,.asc}
+ else
+ default
+ fi
+}
+
src_prepare() {
PATCHES=(
"${WORKDIR}/rust-patches-${RUST_PATCH_VER}/"