[PATCH 3/4] kde.org.eclass: Handle src_unpack for live ebuild Corrosion here
Andreas Sturmlechner <[email protected]> Sat, 06 Jun 2026 01:09:35 +0200
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Andreas Sturmlechner <[email protected]> --- eclass/kde.org.eclass | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass index 93909d58e71e..d35ec6502e69 100644 --- a/eclass/kde.org.eclass +++ b/eclass/kde.org.eclass @@ -243,12 +243,27 @@ _kde.org_live_corrosion_unpack() { # @FUNCTION: kde.org_src_unpack # @DESCRIPTION: # Unpack the sources, automatically handling both release and live ebuilds. +# For releases, if cargo.eclass is inherited, call cargo_src_unpack instead of +# default. For live ebuilds, if both cmake.eclass and cargo.eclass are +# inherited, deal with potential Corrosion. kde.org_src_unpack() { debug-print-function ${FUNCNAME} "$@" case ${KDE_BUILD_TYPE} in - live) git-r3_src_unpack ;& - *) default ;; + live) + git-r3_src_unpack + default + if has cmake ${INHERITED} && has cargo ${INHERITED}; then + _kde.org_live_corrosion_unpack + fi + ;; + *) + if has cargo ${INHERITED}; then + cargo_src_unpack + else + default + fi + ;; esac } -- 2.54.0
signature.asc
(application/pgp-signature, 829 B)
-----BEGIN PGP SIGNATURE----- iQIvBAABCgCZFiEE34gXUSooizdYNDu3S5FW4z0PgBkFAmojVy8bFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRERjg4MTc1MTJBMjg4QjM3NTgzNDNC Qjc0QjkxNTZFMzNEMEY4MDE5AAoJEEuRVuM9D4AZn/YMAKgu0pvHNPRxudubz5ed BZ+sILM7yu0gz1B2Z+Mft1RKLGoZYnS3xtyqRaT3UGbCCh1xGPG/YdbVtc2odvRd XP8cDrPepX9rYX3MWxAf8BT83xu2xDe4CWjG+F5Ugx6xGJ2oi3Ubwdpia1fGMKAQ /W6M+3L4Mdp/OdNqLpXOkjQY4GB0kkmbLMCplYtv2PWmRN673mSwIyiWN1zlBH7w xRZVQJzlSpdnNvKkSgxeH8N70DHaBJu0JQSOFaHFksytEuNgUOImbsbHIAIRs65n mPkFDUgkRU5p9A/oyMqwl2kcNwvPpz7qa5tWJfluuO9O0yY5OzyhiOx0l1IOMgKm /2H1ki2fYf/4zZysG8gPl5JhgQROUcqK4uzOuyOtrdBhcJ6eeyNTb9BxdQiFObI3 BbWlGgrwlMR94NLIsWIPEE/bTEc5G3sum1jr0+BnGzQzCaTFCzval7S0xfeyLHiS tEPPla1SEj4zgWLw1CgzCHJsUBQPkRJIbyXYFNdc0NLmuw== =uok4 -----END PGP SIGNATURE-----