From 8e65c78869e529cc94aa62e6d0f3318511a24514 Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Fri, 25 Aug 2023 18:14:17 +0200 Subject: [PATCH] Fix system file ownership for Debian package Extract ffmpeg and tone but ignore the ownership information from the tar archive. This will ensure that those files are owned by root, not the UIDs/GIDs the tar files happen to contain. --- build/debian/DEBIAN/preinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/debian/DEBIAN/preinst b/build/debian/DEBIAN/preinst index ad6657ef..f43f2683 100644 --- a/build/debian/DEBIAN/preinst +++ b/build/debian/DEBIAN/preinst @@ -60,13 +60,13 @@ install_ffmpeg() { fi $WGET - tar xvf ffmpeg-git-amd64-static.tar.xz --strip-components=1 + tar xvf ffmpeg-git-amd64-static.tar.xz --strip-components=1 --no-same-owner rm ffmpeg-git-amd64-static.tar.xz # Temp downloading tone library to the ffmpeg dir echo "Getting tone.." $WGET_TONE - tar xvf tone-0.1.5-linux-x64.tar.gz --strip-components=1 + tar xvf tone-0.1.5-linux-x64.tar.gz --strip-components=1 --no-same-owner rm tone-0.1.5-linux-x64.tar.gz echo "Good to go on Ffmpeg (& tone)... hopefully"