Skip to content

Commit

Permalink
sage-git-patch.eclass: do not process patch in DISTDIR but T
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwifb committed Sep 4, 2024
1 parent f0bf46b commit 1d9347b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eclass/sage-git-patch.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 1d9347b

Please sign in to comment.