Re: [gentoo-dev] [PATCH] cargo.eclass: Add cargo_target_dir helper function

2024-07-06 Thread Eli Schwartz
On 7/6/24 5:04 AM, Florian Schmaus wrote: > FYI, it turns out that at least clap-rs has support to generate the > completion files as part of the build process: > > https://docs.rs/clap_complete/latest/clap_complete/generator/fn.generate_to.html > > Maybe we could encourage projects to simply adj

Re: [gentoo-dev] [PATCH] cargo.eclass: Add cargo_target_dir helper function

2024-07-06 Thread Florian Schmaus
On 16/06/2024 00.22, James Le Cuirot wrote: On Sat, 2024-06-15 at 17:56 -0400, Ionen Wolkens wrote: On Sat, Jun 15, 2024 at 08:14:34PM +0200, Florian Schmaus wrote: On 13/06/2024 17.03, James Le Cuirot wrote: Several Cargo-based ebuilds cannot use cargo_src_install for various reasons and manu

Re: [gentoo-dev] [PATCH] cargo.eclass: Add cargo_target_dir helper function

2024-06-15 Thread James Le Cuirot
On Sat, 2024-06-15 at 17:56 -0400, Ionen Wolkens wrote: > On Sat, Jun 15, 2024 at 08:14:34PM +0200, Florian Schmaus wrote: > > On 13/06/2024 17.03, James Le Cuirot wrote: > > > Several Cargo-based ebuilds cannot use cargo_src_install for various > > > reasons and manually install binaries from with

Re: [gentoo-dev] [PATCH] cargo.eclass: Add cargo_target_dir helper function

2024-06-15 Thread Ionen Wolkens
On Sat, Jun 15, 2024 at 08:14:34PM +0200, Florian Schmaus wrote: > On 13/06/2024 17.03, James Le Cuirot wrote: > > Several Cargo-based ebuilds cannot use cargo_src_install for various > > reasons and manually install binaries from within the target directory > > instead. It is common to see `target

Re: [gentoo-dev] [PATCH] cargo.eclass: Add cargo_target_dir helper function

2024-06-15 Thread Lucio Sauer
On Fri, Jun 14, 2024 at 02:54:47PM +0100, James Le Cuirot wrote: > On Thu, 2024-06-13 at 21:32 +, Lucio Sauer wrote: > > On Thu, Jun 13, 2024 at 04:03:44PM +0100, James Le Cuirot wrote: > > > Several Cargo-based ebuilds cannot use cargo_src_install for various > > > reasons and manually install

Re: [gentoo-dev] [PATCH] cargo.eclass: Add cargo_target_dir helper function

2024-06-15 Thread Florian Schmaus
On 13/06/2024 17.03, James Le Cuirot wrote: Several Cargo-based ebuilds cannot use cargo_src_install for various reasons and manually install binaries from within the target directory instead. It is common to see `target/$(usex debug debug release)`, but this lacks the target ABI when cross-compi

Re: [gentoo-dev] [PATCH] cargo.eclass: Add cargo_target_dir helper function

2024-06-14 Thread James Le Cuirot
On Thu, 2024-06-13 at 21:32 +, Lucio Sauer wrote: > On Thu, Jun 13, 2024 at 04:03:44PM +0100, James Le Cuirot wrote: > > Several Cargo-based ebuilds cannot use cargo_src_install for various > > reasons and manually install binaries from within the target directory > > instead. It is common to s

Re: [gentoo-dev] [PATCH] cargo.eclass: Add cargo_target_dir helper function

2024-06-13 Thread Lucio Sauer
On Thu, Jun 13, 2024 at 04:03:44PM +0100, James Le Cuirot wrote: > Several Cargo-based ebuilds cannot use cargo_src_install for various > reasons and manually install binaries from within the target directory > instead. It is common to see `target/$(usex debug debug release)`, but > this lacks the

[gentoo-dev] [PATCH] cargo.eclass: Add cargo_target_dir helper function

2024-06-13 Thread James Le Cuirot
Several Cargo-based ebuilds cannot use cargo_src_install for various reasons and manually install binaries from within the target directory instead. It is common to see `target/$(usex debug debug release)`, but this lacks the target ABI when cross-compiling, so provide a helper function. There are