From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust-common/
Date: Sun, 10 Nov 2024 13:03:23 +0000 (UTC) [thread overview]
Message-ID: <1731243730.d859c906462b56fab05deb6170d4ed639d41549c.sam@gentoo> (raw)
commit: d859c906462b56fab05deb6170d4ed639d41549c
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 10 13:01:52 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 13:02:10 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d859c906
dev-lang/rust-common: wire up USE=verify-sig
The USE was there but it wasn't doing anything. Note that we don't
use verify-sig_src_unpack to avoid unpacking everything, see also
2d190c9e5b1db3292ea5d36f77a314eee019f99d.
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-lang/rust-common/rust-common-1.81.0.ebuild | 12 +++++++++---
dev-lang/rust-common/rust-common-1.82.0.ebuild | 11 ++++++++---
2 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/dev-lang/rust-common/rust-common-1.81.0.ebuild b/dev-lang/rust-common/rust-common-1.81.0.ebuild
index b977c5aa1b92..83fbbf485e6c 100644
--- a/dev-lang/rust-common/rust-common-1.81.0.ebuild
+++ b/dev-lang/rust-common/rust-common-1.81.0.ebuild
@@ -3,7 +3,8 @@
EAPI=8
-inherit bash-completion-r1
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/rust.asc
+inherit bash-completion-r1 verify-sig
DESCRIPTION="Common files shared between multiple slots of Rust"
HOMEPAGE="https://www.rust-lang.org/"
@@ -25,16 +26,21 @@ SRC_URI="
S="${WORKDIR}/${MY_P}-src"
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
-SLOT=0
+SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
-IUSE="verify-sig"
+# Legacy non-slotted versions bash completions will collide.
RDEPEND="
!dev-lang/rust:stable
!dev-lang/rust-bin:stable
"
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-rust )"
src_unpack() {
+ if use verify-sig ; then
+ verify-sig_verify_detached "${DISTDIR}"/${SRC} "${DISTDIR}"/${SRC}.asc
+ fi
+
# Avoid unpacking the whole tarball which would need check-reqs
tar -xf "${DISTDIR}"/${SRC} ${SRC%%.tar.xz}/src/tools/cargo/src/etc/cargo.bashcomp.sh || die
}
diff --git a/dev-lang/rust-common/rust-common-1.82.0.ebuild b/dev-lang/rust-common/rust-common-1.82.0.ebuild
index 0d4b5aa7b8ae..285a9a5b8e5f 100644
--- a/dev-lang/rust-common/rust-common-1.82.0.ebuild
+++ b/dev-lang/rust-common/rust-common-1.82.0.ebuild
@@ -3,7 +3,8 @@
EAPI=8
-inherit bash-completion-r1
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/rust.asc
+inherit bash-completion-r1 verify-sig
DESCRIPTION="Common files shared between multiple slots of Rust"
HOMEPAGE="https://www.rust-lang.org/"
@@ -25,17 +26,21 @@ SRC_URI="
S="${WORKDIR}/${MY_P}-src"
LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4"
-SLOT=0
+SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
-IUSE="verify-sig"
# Legacy non-slotted versions bash completions will collide.
RDEPEND="
!dev-lang/rust:stable
!dev-lang/rust-bin:stable
"
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-rust )"
src_unpack() {
+ if use verify-sig ; then
+ verify-sig_verify_detached "${DISTDIR}"/${SRC} "${DISTDIR}"/${SRC}.asc
+ fi
+
# Avoid unpacking the whole tarball which would need check-reqs
tar -xf "${DISTDIR}"/${SRC} ${SRC%%.tar.xz}/src/tools/cargo/src/etc/cargo.bashcomp.sh || die
}
next reply other threads:[~2024-11-10 13:03 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-10 13:03 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-28 7:10 [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust-common/ Arthur Zamarin
2025-02-22 8:18 Arthur Zamarin
2025-02-22 8:17 Arthur Zamarin
2025-02-22 8:17 Arthur Zamarin
2025-02-21 19:54 Arthur Zamarin
2025-02-21 19:54 Arthur Zamarin
2025-02-21 18:50 Arthur Zamarin
2025-02-21 11:14 Arthur Zamarin
2025-02-21 11:14 Arthur Zamarin
2025-02-05 18:37 Arthur Zamarin
2025-01-18 7:12 Arthur Zamarin
2025-01-18 7:12 Arthur Zamarin
2025-01-17 17:08 Arthur Zamarin
2025-01-17 16:00 Arthur Zamarin
2025-01-17 16:00 Arthur Zamarin
2025-01-17 16:00 Arthur Zamarin
2025-01-17 16:00 Arthur Zamarin
2025-01-11 8:10 Arthur Zamarin
2025-01-04 20:28 Sam James
2025-01-04 20:28 Sam James
2025-01-04 16:22 Arthur Zamarin
2025-01-04 16:17 Sam James
2025-01-04 14:37 Sam James
2025-01-04 14:27 Sam James
2025-01-04 14:13 Sam James
2024-12-01 8:23 Arthur Zamarin
2024-11-09 7:42 Sam James
2024-11-09 6:42 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1731243730.d859c906462b56fab05deb6170d4ed639d41549c.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox