diff options
Diffstat (limited to 'app-misc/anki/files/23.12.1/use-system-nextest.patch')
-rw-r--r-- | app-misc/anki/files/23.12.1/use-system-nextest.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-misc/anki/files/23.12.1/use-system-nextest.patch b/app-misc/anki/files/23.12.1/use-system-nextest.patch new file mode 100644 index 000000000000..8f931b97da86 --- /dev/null +++ b/app-misc/anki/files/23.12.1/use-system-nextest.patch @@ -0,0 +1,26 @@ +Provide the binary ourselves to prevent network access. +Set test runner options in the ebuild. + +From: Lucio Sauer <watermanpaint@posteo.net> +--- a/build/ninja_gen/src/cargo.rs ++++ b/build/ninja_gen/src/cargo.rs +@@ -152,19 +152,11 @@ impl BuildAction for CargoTest { + + fn files(&mut self, build: &mut impl FilesHandle) { + build.add_inputs("", &self.inputs); +- build.add_inputs("", inputs![":cargo-nextest"]); + build.add_env_var("ANKI_TEST_MODE", "1"); + build.add_output_stamp("tests/cargo_test"); + } + + fn on_first_instance(&self, build: &mut Build) -> Result<()> { +- build.add_action( +- "cargo-nextest", +- CargoInstall { +- binary_name: "cargo-nextest", +- args: "cargo-nextest --version 0.9.57 --locked", +- }, +- )?; + setup_flags(build) + } + } |