commit: ca6c0b500eaff6fef1242ef7c800456cc74c42a4 Author: Violet Purcell <vimproved <AT> inventati <DOT> org> AuthorDate: Tue Feb 11 18:03:13 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Feb 14 05:15:17 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca6c0b50
sys-apps/bat: fix build with libgit2 1.9.0 Missed this in the bump since I have sys-apps/eza pinning it currently. Closes: https://bugs.gentoo.org/949505 Closes: https://bugs.gentoo.org/949536 Signed-off-by: Violet Purcell <vimproved <AT> inventati.org> Closes: https://github.com/gentoo/gentoo/pull/40536 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/bat/bat-0.25.0.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys-apps/bat/bat-0.25.0.ebuild b/sys-apps/bat/bat-0.25.0.ebuild index 5e4e47569aa8..7dfb022e072d 100644 --- a/sys-apps/bat/bat-0.25.0.ebuild +++ b/sys-apps/bat/bat-0.25.0.ebuild @@ -243,6 +243,14 @@ DOCS=( README.md CHANGELOG.md doc/alternatives.md ) QA_FLAGS_IGNORED="usr/bin/${PN}" +src_prepare() { + default + + # libgit2-sys unnecessarily(?) requests <libgit2-1.9.0, bump to 2 for now + sed -e '/range_version/s/1\.9\.0/2/' \ + -i "${ECARGO_VENDOR}"/libgit2-sys-0.17.0+1.8.1/build.rs || die +} + src_configure() { export RUSTONIG_SYSTEM_LIBONIG=1 export LIBGIT2_NO_VENDOR=1
