From 854bd813f48670fe308e7bc2b4e2e57cf19ed834 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Mon, 16 Aug 2021 12:28:42 +0200 Subject: [PATCH] termux_step_create_datatar.sh: add data/ to tar instead of ./ This avoids "./" being part of the tar. "./" translates to the systemroot / when we extract, and this is problematic since tar cannot change permissions and ownerships of this folder. tar 1.34 gives an error: tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted tar: Exiting with failure status due to previous errors when we try to extract the data.tar.xz. --- scripts/build/termux_step_create_datatar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/termux_step_create_datatar.sh b/scripts/build/termux_step_create_datatar.sh index 2f0386087a..e7c3528d11 100644 --- a/scripts/build/termux_step_create_datatar.sh +++ b/scripts/build/termux_step_create_datatar.sh @@ -4,5 +4,5 @@ termux_step_create_datatar() { rm -rf data fi - tar -cJf "$TERMUX_PKG_PACKAGEDIR/data.tar.xz" -H gnu . + tar -cJf "$TERMUX_PKG_PACKAGEDIR/data.tar.xz" -H gnu data }