From 4ab93d8481c5d5b07b2b35e4022cc54ce9324275 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 4 Nov 2025 17:24:22 +0300 Subject: [PATCH] Use tar.xz from bookworm for trixie O_o --- debian/vitastor-build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/vitastor-build.sh b/debian/vitastor-build.sh index 77c41252..81ee5ce8 100755 --- a/debian/vitastor-build.sh +++ b/debian/vitastor-build.sh @@ -44,7 +44,12 @@ curl -s https://git.yourcmc.ru/vitalif/antietcd/archive/master.tar.gz | tar -zx curl -s https://git.yourcmc.ru/vitalif/tinyraft/archive/master.tar.gz | tar -zx cd /root/vitastor/packages/vitastor-$REL -tar --sort=name --mtime='2020-01-01' --owner=0 --group=0 --exclude=debian -cJf vitastor_$VER.orig.tar.xz vitastor-$VER +if [[ "$REL" = "trixie" && -e ../vitastor-bookworm/vitastor_$VER.orig.tar.xz ]]; then + # Fucking shit, archives differ between bookworm (xz 5.4.1) and trixie (xz 5.8.1) + cp ../vitastor-bookworm/vitastor_$VER.orig.tar.xz . +else + tar --sort=name --mtime='2020-01-01' --owner=0 --group=0 --exclude=debian -cJf vitastor_$VER.orig.tar.xz vitastor-$VER +fi cd vitastor-$VER DEBEMAIL="Vitaliy Filippov " dch -D $REL -v "$FULLVER""$REL" "Rebuild for $REL" DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage --jobs=auto -sa