From 9cbd8fbc18adad6a22f24e2544ed4353681f97f1 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Sat, 10 Jun 2023 13:21:18 +0200 Subject: [PATCH] delta: rebuild for libgit2 --- srcpkgs/delta/patches/bump-git2.patch | 13 +++++++++++++ srcpkgs/delta/template | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/delta/patches/bump-git2.patch diff --git a/srcpkgs/delta/patches/bump-git2.patch b/srcpkgs/delta/patches/bump-git2.patch new file mode 100644 index 00000000000..05255c23c9c --- /dev/null +++ b/srcpkgs/delta/patches/bump-git2.patch @@ -0,0 +1,13 @@ +diff --git a/Cargo.toml b/Cargo.toml +index 8c0c6d8..4fdaa9d 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -46,7 +46,7 @@ vte = "0.11.0" + xdg = "2.4.1" + + [dependencies.git2] +-version = "0.16.1" ++version = "0.17" + default-features = false + features = [] + diff --git a/srcpkgs/delta/template b/srcpkgs/delta/template index 7904e323b89..e0e2c44370d 100644 --- a/srcpkgs/delta/template +++ b/srcpkgs/delta/template @@ -1,7 +1,7 @@ # Template file for 'delta' pkgname=delta version=0.16.5 -revision=1 +revision=2 build_style=cargo hostmakedepends="pkg-config" makedepends="libgit2-devel oniguruma-devel" @@ -13,8 +13,8 @@ homepage="https://github.com/dandavison/delta" distfiles="https://github.com/dandavison/delta/archive/refs/tags/${version}.tar.gz" checksum=00d4740e9da4f543f34a2a0503615f8190d307d1180dfb753b6911aa6940197f -pre_build() { - export RUSTONIG_SYSTEM_LIBONIG=1 +post_patch() { + cargo update --package git2@0.16.1 --precise 0.17.2 } post_install() {