commit:     a840be57165ce97e2735c9c1713208b5f2052069
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 10 17:48:39 2022 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Nov 10 18:00:37 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a840be57

cargo.eclass: mention --frozen usecase.

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 eclass/cargo.eclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index c46f48146aed..eb9d2e8c3599 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -243,7 +243,8 @@ cargo_src_unpack() {
 
 # @FUNCTION: cargo_live_src_unpack
 # @DESCRIPTION:
-# Runs 'cargo fetch' and vendors downloaded crates for offline use, used in 
live ebuilds
+# Runs 'cargo fetch' and vendors downloaded crates for offline use, used in 
live ebuilds.
+# NOTE: might require passing --frozen to cargo_src_configure if git 
dependencies are used.
 cargo_live_src_unpack() {
        debug-print-function ${FUNCNAME} "$@"
 
@@ -355,6 +356,10 @@ cargo_live_src_unpack() {
 # In some cases crates may need '--no-default-features' option,
 # as there is no way to disable single feature, except disabling all.
 # It can be passed directly to cargo_src_configure().
+#
+# Some live/9999 ebuild may need '--frozen' option, if git crates
+# are used.
+# Otherwise src_install phase may query network again and fail.
 cargo_src_configure() {
        debug-print-function ${FUNCNAME} "$@"
 

Reply via email to