From 250c159cc99262226c20d872cc92a281e1810212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 27 Oct 2022 18:59:14 +0700 Subject: [PATCH] schroot: fix build after create_wrksrc --- srcpkgs/schroot/template | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/srcpkgs/schroot/template b/srcpkgs/schroot/template index 1a6dfe8ef1a..cd011b5043b 100644 --- a/srcpkgs/schroot/template +++ b/srcpkgs/schroot/template @@ -55,10 +55,12 @@ checksum=" 3ce8dfd9cb97b099e4b6d4ccec421d6cc8c9ef84574681e928a12badb5643d0b 7bd4e0c2709979362c86a86c10d2b23d290d26e1a2d301a602e829327f483ec1" nocross=yes +skip_extraction="schroot_${version}-${_debian_version}.debian.tar.xz" -pre_configure() { - cat ../debian/patches/series | while read p; do - patch -p1 -i ../debian/patches/$p +post_extract() { + bsdtar -xf $XBPS_SRCDISTDIR/schroot-${version}/$skip_extraction + cat debian/patches/series | while read p; do + patch -Np1 -F0 -i debian/patches/$p done }