Package Details: megasync 3.7.1.0-2

Git Clone URL: https://aur.archlinux.org/megasync.git (read-only)
Package Base: megasync
Description: Sync your files to your Mega account. Official app
Upstream URL: https://github.com/meganz/MEGAsync
Licenses: custom:MEGA LIMITED CODE REVIEW LICENCE
Submitter: son_link
Maintainer: Kozeid
Last Packager: Kozeid
Votes: 297
Popularity: 5.004682
First Submitted: 2014-09-01 18:12
Last Updated: 2018-09-25 15:54

Latest Comments

1 2 3 4 5 6 ... Next › Last »

bluntroller commented on 2018-10-29 17:07

Compiles like a charm... Thanks!

Kozeid commented on 2018-09-26 09:42

@zfkerr I can't reproduce this error. How big is your /tmp partition? Can you try building it manually, without yaourt?

zfkerr commented on 2018-09-25 19:51

@Kozeid , hi! Sadly, but I can't build it:

                        mega/include/megaapi.h:2768:13: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
                        g++ -c -pipe -g -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC -DQT_DISABLE_DEPRECATED_BEFORE=0x000000 -DHAVE_LIBUV -DUSE_MEDIAINFO -DUNICODE -DHAVE_LIBRAW -DHAVE_FFMPEG -DUSE_QT -DMEGA_QT_LOGGING -                                                                                                                
                        DUSE_SQLITE -DUSE_CRYPTOPP -DENABLE_SYNC -DENABLE_CHAT -DNDEBUG -DUSE_DBUS -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Igui -Igui/linux -I/tmp/yaourt-tmp-user/aur-megasync/src/MEGAsync/src/MEGASync/mega/bindings/qt/../..//bindings/qt/3rdparty/include/libuv -Imega/include -Imega/bindings/qt -I/tmp/yaourt-tmp-user/aur-megasync/src/MEGAsync/src/MEGASync/mega/bindings/qt/../..//bindings/qt/3rdparty/include -Imega/include/mega/posix -Icontrol -Iplatform -Igoogle_breakpad -Iqtlockedfile -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/qt/mkspecs/linux-g++ -o MegaItem.o gui/MegaItem.cpp
                        make[1]: *** No rule to make target 'gui/ChangeLogDialog.cpp', needed by 'ChangeLogDialog.o'.  Stop.
                        make[1]: *** Waiting for unfinished jobs....
                        g++: error: gui/MegaItem.cpp: No such file or directory
                        g++: fatal error: no input files
                        compilation terminated.
                        make[1]: *** [Makefile:2861: MegaItem.o] Error 1
                        make[1]: Leaving directory '/tmp/yaourt-tmp-user/aur-megasync/src/MEGAsync/src/MEGASync'
                        make: *** [Makefile:45: sub-MEGASync-make_first] Error 2
                        ==> ERROR: A failure occurred in build().
                            Aborting...
                        ==> ERROR: Makepkg was unable to build megasync.

jontxo commented on 2018-09-24 17:25

Hello

with a commit they have performed: https://github.com/meganz/MEGAsync/issues/231. It is possible to compile the git version of this package. This is the PKGBUILD I have used

Maintainer: Gustavo Alvarez sl1pkn07@gmail.com
Contributor: Archimede Pitagorico archimede.pitagorico@mail.com
Contributor: Alfonso Saavedra "Son Link" sonlink.dourden@gmail.com

pkgbase=megasync-git pkgname=('libmega-git' 'megasync-git' 'megasync-daemon-git' 'megasync-cli-git' 'python-megasync-git' 'python2-megasync-git' 'fuse-megasync-git' ) pkgver=v3.7.1.0.2.g42144d4f pkgrel=1 pkgdesc="Sync your files to your Mega account. (GIT Version)" arch=('i686' 'x86_64') url='https://mega.co.nz/#sync' license=('custom:MEGA') source=('git+https://github.com/meganz/MEGAsync.git' 'git+https://github.com/meganz/sdk.git#branch=release/v3.4.1' 'mega.svg' 'megasync.conf' 'megasyncd.service' ) makedepends=('qt5-base' 'c-ares' 'libuv' 'curl' 'crypto++' 'libsodium' 'git' 'qt5-tools' 'cython' 'python' 'cython2' 'python2' 'swig' 'fuse2' 'pcre' ) sha256sums=('SKIP' 'SKIP' 'c0abfeafb541509923c85d253f6f64dae8a49e9ae4b067f5c0c484ff1d924403' 'a3d30b3e198c3c117b2dd3144acaeb66117ee013744d2a0f39e9d4624b979a22' '73600a6d5e7ddbb6d0a3eff22aa05cc22715c2b02be7e62d16c2c71ac17a5ad5' ) options=('!buildflags')

pkgver() { cd MEGAsync echo "$(git describe --long --tags | tr - . | tr _ . | sed 's|OSX.||' | sed 's|Win.||' | sed 's|Linux.||' )" }

prepare() { (git clone "${srcdir}/sdk" build; cd build; ./autogen.sh) (git clone "${srcdir}/sdk" build-python2; cd build-python2; ./autogen.sh)

cd MEGAsync git config submodule.src/MEGASync/mega.url "${srcdir}/sdk" git submodule update --init

cd src/MEGASync/mega ./autogen.sh }

build() { msg2 "Build libmega and programs, include Python bindings" cd "${srcdir}/build" ./configure \ --prefix=/usr \ --without-freeimage \ --enable-python \ --with-python3

make

msg2 "Build python2 bindings" cd "${srcdir}/build-python2" PYTHON=python2 \ PYTHON_VERSION="$(python2 -c "import platform; print('.'.join(platform.python_version_tuple()[:2]))")" \ ./configure \ --prefix=/usr \ --without-freeimage \ --disable-examples \ --enable-python

make

msg2 "Build MEGASync" cd "${srcdir}/MEGAsync/src/MEGASync/mega" ./configure \ --prefix=/usr \ --without-freeimage

cd "${srcdir}/MEGAsync/src/MEGASync" lrelease-qt5 MEGASync.pro qmake-qt5 CONFIG+=debug MEGASync.pro make }

package_megasync-git() { pkgdesc="MEGASync Desktop App. (GIT Version)" conflicts=('megasync' 'megatools' ) provides=('megasync') depends=('qt5-base' 'c-ares' 'libuv' 'curl' 'crypto++' 'libsodium' 'hicolor-icon-theme' )

install -Dm644 MEGAsync/LICENCE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm755 MEGAsync/src/MEGASync/megasync "${pkgdir}/usr/bin/megasync" install -Dm644 MEGAsync/src/MEGASync/platform/linux/data/megasync.desktop "${pkgdir}/usr/share/applications/megasync.desktop" sed 's|System;||g' -i "${pkgdir}/usr/share/applications/megasync.desktop" install -Dm644 "${srcdir}/mega.svg" "${pkgdir}/usr/share/pixmaps/mega.svg" }

package_libmega-git() { pkgdesc="MEGASync libs (GIT Version)" conflicts=('libmega') provides=('libmega') depends=('c-ares' 'curl' 'crypto++' 'libsodium' 'sqlite' )

install -Dm644 MEGAsync/LICENCE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" make -C build DESTDIR="${pkgdir}" install-data make -C build DESTDIR="${pkgdir}" install-libLTLIBRARIES make -C build DESTDIR="${pkgdir}" install-pkgconfigDATA make -C build DESTDIR="${pkgdir}" install-pkglibLTLIBRARIES make -j1 -C build DESTDIR="${pkgdir}" uninstall-pkgpythonPYTHON make -j1 -C build DESTDIR="${pkgdir}" uninstall-pkgpyexecLTLIBRARIES make -j1 -C build DESTDIR="${pkgdir}" uninstall-nodist_pkgpythonPYTHON rm -fr "${pkgdir}/$(python -c "import os; import inspect; print(os.path.dirname(inspect.getfile(inspect)))")" }

package_fuse-megasync-git() { pkgdesc="MEGASync client based on FUSE (GIT Version)" conflicts=('fuse-megasync') provides=('fuse-megasync') depends=(libmega-git 'fuse2' ) options=('!emptydirs')

install -Dm644 MEGAsync/LICENCE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" make -C build DESTDIR="${pkgdir}" install-binPROGRAMS make -C build DESTDIR="${pkgdir}" uninstall-libLTLIBRARIES rm -fr "${pkgdir}/usr/bin/megacli" rm -fr "${pkgdir}/usr/bin/megasimplesync" rm -fr "${pkgdir}/usr/bin/mega-cmd" rm -fr "${pkgdir}/usr/bin/mega-exec" }

package_megasync-daemon-git() { pkgdesc="MEGASync daemon client. (GIT Version)" conflicts=('megasync-daemon') provides=('megasync-daemon') depends=('libmega-git') options=('!emptydirs') backup=('etc/conf.d/megasync.conf')

install -Dm644 MEGAsync/LICENCE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" make -C build DESTDIR="${pkgdir}" install-binPROGRAMS make -C build DESTDIR="${pkgdir}" uninstall-libLTLIBRARIES rm -fr ${pkgdir}/usr/bin/megacli rm -fr ${pkgdir}/usr/bin/megafuse rm -fr "${pkgdir}/usr/bin/mega-cmd" rm -fr "${pkgdir}/usr/bin/mega-exec"

install -Dm644 "${srcdir}/megasyncd.service" "${pkgdir}/usr/lib/systemd/system/megasyncd.service" install -Dm600 "${srcdir}/megasync.conf" "${pkgdir}/etc/conf.d/megasync.conf" install -d "${pkgdir}/srv/mega" install -dm700 "${pkgdir}/var/mega" }

package_megasync-cli-git() { pkgdesc="MEGASync CLI client. (GIT Version)" conflicts=('megasync-cli') provides=('megasync-cli') depends=('libmega-git' 'pcre' ) options=('!emptydirs')

install -Dm644 MEGAsync/LICENCE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" make -C build DESTDIR="${pkgdir}" install-binPROGRAMS make -C build DESTDIR="${pkgdir}" uninstall-libLTLIBRARIES rm -fr ${pkgdir}/usr/bin/megafuse rm -fr ${pkgdir}/usr/bin/megasimplesync } package_python-megasync-git() { pkgdesc="Python Bindings for MEGASync. (GIT Version)" conflicts=('python-megasync') provides=('python-megasync') depends=('libmega-git' 'python' )

install -Dm644 MEGAsync/LICENCE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" make -C build DESTDIR="${pkgdir}" install-libLTLIBRARIES make -C build DESTDIR="${pkgdir}" install-pkgpythonPYTHON make -C build DESTDIR="${pkgdir}" install-pkgpyexecLTLIBRARIES make -C build DESTDIR="${pkgdir}" uninstall-libLTLIBRARIES } package_python2-megasync-git() { pkgdesc="Python2 Bindings for MEGASync. (GIT Version)" conflicts=('python2-megasync') provides=('python2-megasync') depends=('libmega-git' 'python2' )

install -Dm644 MEGAsync/LICENCE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" make -C build DESTDIR="${pkgdir}" install-libLTLIBRARIES make -C build-python2 DESTDIR="${pkgdir}" install-pkgpythonPYTHON make -C build-python2 DESTDIR="${pkgdir}" install-pkgpyexecLTLIBRARIES make -C build DESTDIR="${pkgdir}" uninstall-libLTLIBRARIES }

kikadf commented on 2018-09-24 07:53

I move from Arch Linux, so who would like to maintain this package, let's do it! Bye :)

aleextra commented on 2018-09-23 20:18

I have same issue for a few days for now. @Menelkir thank you for the tip to install directly from mega.nz.

Menelkir commented on 2018-09-22 19:35

Doesn't build to me (like @jontxo and @meowxiik), and it's being some time already. I've made a report in megasync github because it seems like the software itself.

https://github.com/meganz/MEGAsync/issues/231

DevPre24 commented on 2018-09-22 15:00

@jontxo @meowxiik +1. For the moment i reverted back to the official tar.xz package offered at "https://mega.nz/sync".

meowxiik commented on 2018-09-22 14:21

Got the same error as @jontxo, ambiguous call to RSA_get0_n

jontxo commented on 2018-09-19 05:36

When I try to compile the latest version after the following error: '''

mega/src/posix/net.cpp: In static member function ‘static int mega::CurlHttpIO::cert_verify_callback(X509_STORE_CTX, void)’: mega/src/posix/net.cpp:2576:59: error: call of overloaded ‘RSA_get0_n(rsa_st)’ is ambiguous if (BN_num_bytes(RSA_get0_n(EVP_PKEY_get0_RSA(evp))) == sizeof APISSLMODULUS1 - 1 ^ mega/src/posix/net.cpp:2526:15: note: candidate: ‘const BIGNUM mega::RSA_get0_n(const RSA)’ const BIGNUM RSA_get0_n(const RSA rsa) ^~~~~~~~~~ In file included from /usr/include/openssl/x509.h:25, from /usr/include/openssl/ssl.h:20, from mega/include/mega/posix/meganet.h:28, from mega/include/mega.h:76, from mega/src/posix/net.cpp:22: /usr/include/openssl/rsa.h:219:15: note: candidate: ‘const BIGNUM RSA_get0_n(const RSA)’ const BIGNUM RSA_get0_n(const RSA d); ^~~~~~~~~~ In file included from /usr/include/openssl/asn1.h:23, from /usr/include/openssl/objects.h:15, from /usr/include/openssl/evp.h:28, from /usr/include/openssl/x509.h:18, from /usr/include/openssl/ssl.h:20, from mega/include/mega/posix/meganet.h:28, from mega/include/mega.h:76, from mega/src/posix/net.cpp:22: mega/src/posix/net.cpp:2577:66: error: call of overloaded ‘RSA_get0_e(rsa_st)’ is ambiguous && BN_num_bytes(RSA_get0_e(EVP_PKEY_get0_RSA(evp))) == sizeof APISSLEXPONENT - 1) ^ mega/src/posix/net.cpp:2537:15: note: candidate: ‘const BIGNUM mega::RSA_get0_e(const RSA)’ const BIGNUM RSA_get0_e(const RSA rsa) ^~~~~~~~~~ In file included from /usr/include/openssl/x509.h:25, from /usr/include/openssl/ssl.h:20, from mega/include/mega/posix/meganet.h:28, from mega/include/mega.h:76, from mega/src/posix/net.cpp:22: /usr/include/openssl/rsa.h:220:15: note: candidate: ‘const BIGNUM RSA_get0_e(const RSA)’ const BIGNUM RSA_get0_e(const RSA d); ^~~~~~~~~~ mega/src/posix/net.cpp:2579:56: error: call of overloaded ‘RSA_get0_n(rsa_st)’ is ambiguous BN_bn2bin(RSA_get0_n(EVP_PKEY_get0_RSA(evp)), buf); ^ mega/src/posix/net.cpp:2526:15: note: candidate: ‘const BIGNUM mega::RSA_get0_n(const RSA)’ const BIGNUM RSA_get0_n(const RSA rsa) ^~~~~~~~~~ In file included from /usr/include/openssl/x509.h:25, from /usr/include/openssl/ssl.h:20, from mega/include/mega/posix/meganet.h:28, from mega/include/mega.h:76, from mega/src/posix/net.cpp:22: /usr/include/openssl/rsa.h:219:15: note: candidate: ‘const BIGNUM RSA_get0_n(const RSA)’ const BIGNUM RSA_get0_n(const RSA d); ^~~~~~~~~~ mega/src/posix/net.cpp:2587:60: error: call of overloaded ‘RSA_get0_e(rsa_st)’ is ambiguous BN_bn2bin(RSA_get0_e(EVP_PKEY_get0_RSA(evp)), buf); ^ mega/src/posix/net.cpp:2537:15: note: candidate: ‘const BIGNUM mega::RSA_get0_e(const RSA)’ const BIGNUM RSA_get0_e(const RSA rsa) ^~~~~~~~~~ In file included from /usr/include/openssl/x509.h:25, from /usr/include/openssl/ssl.h:20, from mega/include/mega/posix/meganet.h:28, from mega/include/mega.h:76, from mega/src/posix/net.cpp:22: /usr/include/openssl/rsa.h:220:15: note: candidate: ‘const BIGNUM RSA_get0_e(const RSA)’ const BIGNUM RSA_get0_e(const RSA d); ^~~~~~~~~~ In file included from /usr/include/openssl/asn1.h:23, from /usr/include/openssl/objects.h:15, from /usr/include/openssl/evp.h:28, from /usr/include/openssl/x509.h:18, from /usr/include/openssl/ssl.h:20, from mega/include/mega/posix/meganet.h:28, from mega/include/mega.h:76, from mega/src/posix/net.cpp:22: mega/src/posix/net.cpp:2602:102: error: call of overloaded ‘RSA_get0_n(rsa_st)’ is ambiguous LOG_warn << "Public key size mismatch " << BN_num_bytes(RSA_get0_n(EVP_PKEY_get0_RSA(evp))) << " " << BN_num_bytes(RSA_get0_e(EVP_PKEY_get0_RSA(evp))); ^ mega/src/posix/net.cpp:2526:15: note: candidate: ‘const BIGNUM mega::RSA_get0_n(const RSA)’ const BIGNUM RSA_get0_n(const RSA rsa) ^~~~~~~~~~ In file included from /usr/include/openssl/x509.h:25, from /usr/include/openssl/ssl.h:20, from mega/include/mega/posix/meganet.h:28, from mega/include/mega.h:76, from mega/src/posix/net.cpp:22: /usr/include/openssl/rsa.h:219:15: note: candidate: ‘const BIGNUM RSA_get0_n(const RSA)’ const BIGNUM RSA_get0_n(const RSA d); ^~~~~~~~~~ In file included from /usr/include/openssl/asn1.h:23, from /usr/include/openssl/objects.h:15, from /usr/include/openssl/evp.h:28, from /usr/include/openssl/x509.h:18, from /usr/include/openssl/ssl.h:20, from mega/include/mega/posix/meganet.h:28, from mega/include/mega.h:76, from mega/src/posix/net.cpp:22: mega/src/posix/net.cpp:2602:161: error: call of overloaded ‘RSA_get0_e(rsa_st)’ is ambiguous LOG_warn << "Public key size mismatch " << BN_num_bytes(RSA_get0_n(EVP_PKEY_get0_RSA(evp))) << " " << BN_num_bytes(RSA_get0_e(EVP_PKEY_get0_RSA(evp))); ^ mega/src/posix/net.cpp:2537:15: note: candidate: ‘const BIGNUM mega::RSA_get0_e(const RSA)’ const BIGNUM RSA_get0_e(const RSA rsa) ^~~~~~~~~~ In file included from /usr/include/openssl/x509.h:25, from /usr/include/openssl/ssl.h:20, from mega/include/mega/posix/meganet.h:28, from mega/include/mega.h:76, from mega/src/posix/net.cpp:22: /usr/include/openssl/rsa.h:220:15: note: candidate: ‘const BIGNUM RSA_get0_e(const RSA)’ const BIGNUM RSA_get0_e(const RSA d); ^~~~~~~~~~ make[1]: [Makefile:5470: net.o] Error 1 make[1]: Leaving directory '/home/demian/.cache/aurman/megasync/src/MEGAsync-3.6.7.0_Win/src/MEGASync' make: [Makefile:45: sub-MEGASync-make_first] Error 2 ==> ERROR: A failure occurred in build(). Aborting... 2018-09-19 07:30:30,418 - wrappers - makepkg - ERROR - makepkg query ['makepkg', '-cf', '--noconfirm'] failed in directory /home/user/.cache/aurman/megasync '''