From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/anki/files/23.12.1/
Date: Tue, 20 Aug 2024 08:31:47 +0000 (UTC) [thread overview]
Message-ID: <1724142705.dbb73d2c2716f419f1fe3c320c79ae3f97b1ac45.juippis@gentoo> (raw)
commit: dbb73d2c2716f419f1fe3c320c79ae3f97b1ac45
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Wed Aug 7 13:05:00 2024 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Aug 20 08:31:45 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbb73d2c
app-misc/anki: ensure build runner and configure are built for CBUILD
These changes have not yet been tested in an actual cross environment
but since the build system respects Cargo environment variables, this
should hopefully work.
Bump the revision of this ebuild because the build now honors LDFLAGS
among other RUSTFLAGS set in cargo_env in the cargo eclass.
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
...ystem-nextest.patch => ninja-rules-for-cargo.patch} | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/app-misc/anki/files/23.12.1/use-system-nextest.patch b/app-misc/anki/files/23.12.1/ninja-rules-for-cargo.patch
similarity index 50%
rename from app-misc/anki/files/23.12.1/use-system-nextest.patch
rename to app-misc/anki/files/23.12.1/ninja-rules-for-cargo.patch
index 8f931b97da86..cf9356bbc24c 100644
--- a/app-misc/anki/files/23.12.1/use-system-nextest.patch
+++ b/app-misc/anki/files/23.12.1/ninja-rules-for-cargo.patch
@@ -1,10 +1,24 @@
-Provide the binary ourselves to prevent network access.
+Fix the output path for Rust binaries in the Ninja file to match
+Cargo's target directory when CARGO_BUILD_TARGET is set. This prevents
+file-not-found errors for some build steps.
+
+Provide the cargo-nextest 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 {
+@@ -61,6 +61,9 @@ impl RustOutput<'_> {
+ let mut path: Utf8PathBuf = rust_base.into();
+ if let Some(target) = target {
+ path = path.join(target);
++ } else {
++ let triple = std::env::var("CARGO_BUILD_TARGET").unwrap_or_default();
++ path = path.join(triple);
+ }
+ path = path.join(profile_output_dir(build_profile)).join(filename);
+ path.to_string()
+@@ -152,19 +155,11 @@ impl BuildAction for CargoTest {
fn files(&mut self, build: &mut impl FilesHandle) {
build.add_inputs("", &self.inputs);
next reply other threads:[~2024-08-20 8:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-20 8:31 Joonas Niilola [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-07-08 20:28 [gentoo-commits] repo/gentoo:master commit in: app-misc/anki/files/23.12.1/ Sam James
2024-01-21 10:00 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1724142705.dbb73d2c2716f419f1fe3c320c79ae3f97b1ac45.juippis@gentoo \
--to=juippis@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox