File fix-build.patch of Package megasync_dead_mozay
diff -rub a/src/configure b/src/configure
--- a/src/configure 2020-07-27 13:57:18.689504000 +0600
+++ b/src/configure 2020-07-27 14:01:19.794371272 +0600
@@ -73,7 +73,6 @@
# if archives are not yet downloaded
if [ ! -d "$archives" ]; then
mkdir $archives
- ./MEGASync/mega/contrib/build_sdk.sh $FLAG_CRYPTOPP -n $FLAG_CARES $FLAG_LIBMEDIA -f $FLAG_CURL $FLAG_DISABLE_ZLIB $FLAG_RAW -w -s -v -u -o $archives
rm_archives=1
fi
@@ -87,9 +86,8 @@
-c \
-t \
-s \
- -v \
-I \
- -u \
+ -y \
-p $root_dir/MEGASync/mega/bindings/qt/3rdparty
# For compatibility with other platforms
diff -rub a/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.cc b/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.cc
--- a/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.cc 2020-07-27 13:57:18.573504000 +0600
+++ b/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.cc 2020-07-27 14:02:19.830585829 +0600
@@ -105,7 +105,7 @@
#if !defined(__GLIBC__) || ((__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 30 )))
// A wrapper for the tgkill syscall: send a signal to a specific thread.
-static int tgkill(pid_t tgid, pid_t tid, int sig) {
+int tgkill(pid_t tgid, pid_t tid, int sig) {
return syscall(__NR_tgkill, tgid, tid, sig);
return 0;
}
diff -rub a/src/MEGASync/mega/contrib/build_sdk.sh b/src/MEGASync/mega/contrib/build_sdk.sh
--- a/src/MEGASync/mega/contrib/build_sdk.sh 2020-07-27 13:58:02.485662000 +0600
+++ b/src/MEGASync/mega/contrib/build_sdk.sh 2020-07-27 14:03:07.558756902 +0600
@@ -1410,8 +1410,6 @@
zlib_pkg $build_dir $install_dir
fi
- sqlite_pkg $build_dir $install_dir
-
if [ $enable_cares -eq 1 ]; then
cares_pkg $build_dir $install_dir
fi
diff -rub a/src/MEGASync/MEGASync.pro b/src/MEGASync/MEGASync.pro
--- a/src/MEGASync/MEGASync.pro 2020-07-27 13:57:18.561504000 +0600
+++ b/src/MEGASync/MEGASync.pro 2020-07-27 14:04:26.279040285 +0600
@@ -79,6 +79,8 @@
CONFIG += USE_MEDIAINFO
CONFIG += USE_LIBRAW
CONFIG += USE_FFMPEG
+CONFIG += link_pkgconfig
+PKGCONFIG += libavcodec
macx {
CONFIG += USE_PDFIUM
@@ -192,7 +194,6 @@
DEFINES += REQUIRE_HAVE_PDFIUM
}
else:contains(BUILD_ARCH, x86_64) { #Notice this might not work for clang!
-DEFINES += REQUIRE_HAVE_PDFIUM
}
#DEFINES += REQUIRE_ENABLE_CHAT