commit: 99cabffb90adfcedc7034cf71c2ea9e306bee1c1 Author: Jonas Frei <freijon <AT> pm <DOT> me> AuthorDate: Sun Nov 17 08:06:17 2024 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Sun Nov 17 19:19:32 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99cabffb
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 <freijon <AT> pm.me> Closes: https://github.com/gentoo/gentoo/pull/39347 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> 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 edc57a0cf70d..fcecadb54dc0 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 f34e0d23df49..c4e3778926b5 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
