commit: e287404a043cf110b9982dc3493877fd7b14f08c Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Mon Mar 4 05:36:29 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Mar 4 05:47:11 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e287404a
media-video/rav1e: unvendor libgit2 from rust dependency It is actually only used at build time, by this... thing: https://crates.io/crates/built Apparently it is of the utmost importance that when you get the version info from your git checkout of the project, you do so with blazing-fast fearless concurrency, and if that means spending several minutes compiling a git implementation instead of running /usr/bin/git, then no price is too large. Fearless concurrency for the win! Onward! Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> media-video/rav1e/rav1e-0.7.1.ebuild | 5 +++++ media-video/rav1e/rav1e-9999.ebuild | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/media-video/rav1e/rav1e-0.7.1.ebuild b/media-video/rav1e/rav1e-0.7.1.ebuild index 3f21fd7d33c8..6e51df483cb6 100644 --- a/media-video/rav1e/rav1e-0.7.1.ebuild +++ b/media-video/rav1e/rav1e-0.7.1.ebuild @@ -265,6 +265,8 @@ BDEPEND=" amd64? ( ${ASM_DEP} ) capi? ( >=dev-util/cargo-c-0.6.3 ) " +# only used as a build script to check the version of rav1e... +DEPEND="dev-libs/libgit2" # Rust QA_FLAGS_IGNORED="usr/lib.*/librav1e.* usr/bin/rav1e" @@ -280,6 +282,9 @@ src_unpack() { } src_compile() { + # used by build script to get rav1e repository info + export LIBGIT2_NO_VENDOR=1 + cargo_src_compile if use capi; then diff --git a/media-video/rav1e/rav1e-9999.ebuild b/media-video/rav1e/rav1e-9999.ebuild index 3f21fd7d33c8..6e51df483cb6 100644 --- a/media-video/rav1e/rav1e-9999.ebuild +++ b/media-video/rav1e/rav1e-9999.ebuild @@ -265,6 +265,8 @@ BDEPEND=" amd64? ( ${ASM_DEP} ) capi? ( >=dev-util/cargo-c-0.6.3 ) " +# only used as a build script to check the version of rav1e... +DEPEND="dev-libs/libgit2" # Rust QA_FLAGS_IGNORED="usr/lib.*/librav1e.* usr/bin/rav1e" @@ -280,6 +282,9 @@ src_unpack() { } src_compile() { + # used by build script to get rav1e repository info + export LIBGIT2_NO_VENDOR=1 + cargo_src_compile if use capi; then
