[Android] buildsystem: medialibrary: fix patch invocation

Alexandre Janniaux git at videolan.org
Wed Jun 23 04:04:49 UTC 2021


vlc-android | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Jun 22 17:56:50 2021 +0200| [8f3d9c61d9e6f3ff92078e5c5c949c5fbae075e9] | committer: Nicolas Pomepuy

buildsystem: medialibrary: fix patch invocation

patch arguments are supposed to be -p<number>, not -<number>. The error
was not previously visible because set -e was not set in the script.

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

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

diff --git a/buildsystem/compile-medialibrary.sh b/buildsystem/compile-medialibrary.sh
index ddd71a35e..433a238f0 100755
--- a/buildsystem/compile-medialibrary.sh
+++ b/buildsystem/compile-medialibrary.sh
@@ -58,7 +58,7 @@ if [ ! -d "${MEDIALIBRARY_MODULE_DIR}/${SQLITE_RELEASE}" ]; then
   tar -xozf ${SQLITE_RELEASE}.tar.gz
   rm -f ${SQLITE_RELEASE}.tar.gz
   cd ${SQLITE_RELEASE}
-  patch -1 ${SRC_DIR}/buildsystem/sqlite/sqlite-no-shell.patch
+  patch -p1 ${SRC_DIR}/buildsystem/sqlite/sqlite-no-shell.patch
 fi
 cd ${MEDIALIBRARY_MODULE_DIR}/${SQLITE_RELEASE}
 if [ ! -d "build-$ANDROID_ABI" ]; then



More information about the Android mailing list