From 5917bde99fd7295b78b6aa2f233bd95021301730 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Thu, 1 Apr 2021 19:22:08 +0200 Subject: [PATCH] Workaround an issue with the file 5.40 update that prevents makepkg from extracting secondary source tarballs Fixes https://github.com/Frogging-Family/linux-tkg/issues/215 --- linux-tkg-config/prepare | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 362f98f..d22fa56 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -346,6 +346,9 @@ _tkg_srcprep() { # add upstream patch if [ "$_sub" != "0" ]; then msg2 "Patching from $_basekernel to $pkgver" + if [ ! -e "$srcdir/patch-${pkgver}" ]; then + ( cd "$_where" && xz -dk patch-${pkgver}.xz && mv "$_where"/patch-${pkgver} "$srcdir"/ ) + fi tkgpatch="$srcdir/patch-${pkgver}" && _tkg_patcher fi