[Android] compile-medialibrary.sh: force uid/gid during tarball extraction

Simon Latapie git at videolan.org
Tue Aug 27 13:01:47 CEST 2019


vlc-android | branch: 3.2.x | Simon Latapie <garf at videolan.org> | Fri Jul 19 19:33:13 2019 +0200| [beedf2ee849f6420d0de407283d41cd6ba7fbb36] | committer: Nicolas Pomepuy

compile-medialibrary.sh: force uid/gid during tarball extraction

Under rare circonstances, tar will try to preserve uid/gid no matter what,
and fail.
This can happen for example when trying to build the contribs/extras as a
privileged user inside a namespaced container.

(cherry picked from commit ce62f92b58730c5575fe798d81797c44399e60e4)

> https://code.videolan.org/videolan/vlc-android/commit/beedf2ee849f6420d0de407283d41cd6ba7fbb36
---

 compile-medialibrary.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compile-medialibrary.sh b/compile-medialibrary.sh
index 0954acd11..146ae38df 100755
--- a/compile-medialibrary.sh
+++ b/compile-medialibrary.sh
@@ -56,7 +56,7 @@ if [ ! -d "${MEDIALIBRARY_MODULE_DIR}/${SQLITE_RELEASE}" ]; then
         echo "Wrong sha1 for ${SQLITE_RELEASE}.tar.gz"
         exit 1
     fi
-    tar -xzf ${SQLITE_RELEASE}.tar.gz
+    tar -xozf ${SQLITE_RELEASE}.tar.gz
     rm -f ${SQLITE_RELEASE}.tar.gz
 fi
 cd ${MEDIALIBRARY_MODULE_DIR}/${SQLITE_RELEASE}



More information about the Android mailing list