From 99cabffb90adfcedc7034cf71c2ea9e306bee1c1 Mon Sep 17 00:00:00 2001 From: Jonas Frei Date: Sun, 17 Nov 2024 09:06:17 +0100 Subject: [PATCH] app-shells/nushell: Fix plugin compilation Plugins failed to compile when the USE flag 'system-clipboard' was enabled, because for the plugins this Cargo feature does not exist. This fix clears the 'myfeatures' variable and configures again before the plugins are compiled. Closes: https://bugs.gentoo.org/943627 Signed-off-by: Jonas Frei Closes: https://github.com/gentoo/gentoo/pull/39347 Signed-off-by: Zac Medico --- app-shells/nushell/nushell-0.100.0.ebuild | 4 ++++ app-shells/nushell/nushell-0.99.1.ebuild | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app-shells/nushell/nushell-0.100.0.ebuild b/app-shells/nushell/nushell-0.100.0.ebuild index edc57a0cf70da..fcecadb54dc0d 100644 --- a/app-shells/nushell/nushell-0.100.0.ebuild +++ b/app-shells/nushell/nushell-0.100.0.ebuild @@ -762,6 +762,10 @@ src_compile() { src_install() { cargo_src_install if use plugins ; then + # Clear features to compile plugins + local myfeatures=() + cargo_src_configure + cargo_src_install --path crates/nu_plugin_custom_values cargo_src_install --path crates/nu_plugin_example cargo_src_install --path crates/nu_plugin_formats diff --git a/app-shells/nushell/nushell-0.99.1.ebuild b/app-shells/nushell/nushell-0.99.1.ebuild index f34e0d23df499..c4e3778926b54 100644 --- a/app-shells/nushell/nushell-0.99.1.ebuild +++ b/app-shells/nushell/nushell-0.99.1.ebuild @@ -769,6 +769,10 @@ src_compile() { src_install() { cargo_src_install if use plugins ; then + # Clear features to compile plugins + local myfeatures=() + cargo_src_configure + cargo_src_install --path crates/nu_plugin_custom_values cargo_src_install --path crates/nu_plugin_example cargo_src_install --path crates/nu_plugin_formats