mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
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@pm.me> Closes: https://github.com/gentoo/gentoo/pull/39347 Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user