From 1d9347be4a0c58aaa6817b0fe55a2832d64a914b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bissey?= Date: Thu, 5 Sep 2024 09:36:41 +1200 Subject: [PATCH] sage-git-patch.eclass: do not process patch in DISTDIR but T --- eclass/sage-git-patch.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/sage-git-patch.eclass b/eclass/sage-git-patch.eclass index 4533db650..8632c78f4 100644 --- a/eclass/sage-git-patch.eclass +++ b/eclass/sage-git-patch.eclass @@ -68,10 +68,10 @@ sage-git-patch_patch() { for patch in "${GIT_PRS[@]}"; do # remove files with patchutils filterdiff -i '*/${tree}/*' "${DISTDIR}/sagemath_PR${patch}.patch" > \ - "${DISTDIR}/${patch}_proc.patch" \ + "${T}/${patch}_proc.patch" \ || die "patch for PR ${patch} not found" # apply with eapply and -p2 as we have the extra "src" folder inside # PR patches. - eapply -p2 "${DISTDIR}/${patch}_proc.patch" + eapply -p2 "${T}/${patch}_proc.patch" done }