Package Details: megasync 5.2.1.0-1

Git Clone URL: https://aur.archlinux.org/megasync.git (read-only, click to copy)
Package Base: megasync
Description: Official MEGA desktop application for syncing with MEGA Cloud Drive
Upstream URL: https://github.com/meganz/MEGAsync/
Licenses: LicenseRef-Mega-Limited-Code-License
Submitter: son_link
Maintainer: dbermond
Last Packager: dbermond
Votes: 382
Popularity: 2.25
First Submitted: 2014-09-01 18:12 (UTC)
Last Updated: 2024-04-29 17:36 (UTC)

Latest Comments

« First ‹ Previous 1 .. 21 22 23 24 25 26 27 28 29 30 31 .. 51 Next › Last »

michaldybczak commented on 2018-02-05 09:56 (UTC)

Megasync stopped working after last system update (lot of new libs were updated). Usually I had to re-compile package to make it work. Not this time. I get make error (the same with git version):

mega/include/mega/crypto/cryptopp.h:61:26: error: ‘byte’ has not been declared static void genblock(byte buf, int len); ^~~~ mega/include/mega/crypto/cryptopp.h:94:12: error: ‘byte’ does not name a type static byte zeroiv[CryptoPP::AES::BLOCKSIZE]; ^~~~ mega/include/mega/crypto/cryptopp.h:99:5: error: ‘byte’ does not name a type byte key[KEYLENGTH]; ^~~~ mega/include/mega/crypto/cryptopp.h:103:23: error: ‘byte’ does not name a type void setkey(const byte, int = 1); ^~~~ mega/include/mega/crypto/cryptopp.h:115:22: error: ‘byte’ has not been declared void ecb_encrypt(byte, byte = NULL, unsigned = BLOCKSIZE); ^~~~ mega/include/mega/crypto/cryptopp.h:115:29: error: ‘byte’ has not been declared void ecb_encrypt(byte, byte = NULL, unsigned = BLOCKSIZE); ^~~~ mega/include/mega/crypto/cryptopp.h:125:22: error: ‘byte’ has not been declared void ecb_decrypt(byte, unsigned = BLOCKSIZE); ^~~~ mega/include/mega/crypto/cryptopp.h:137:22: error: ‘byte’ has not been declared void cbc_encrypt(byte data, unsigned len, const byte iv = NULL); ^~~~ mega/include/mega/crypto/cryptopp.h:137:54: error: ‘byte’ does not name a type void cbc_encrypt(byte data, unsigned len, const byte iv = NULL); ^~~~ mega/include/mega/crypto/cryptopp.h:149:22: error: ‘byte’ has not been declared void cbc_decrypt(byte data, unsigned len, const byte iv = NULL); ^~~~ mega/include/mega/crypto/cryptopp.h:149:54: error: ‘byte’ does not name a type void cbc_decrypt(byte data, unsigned len, const byte iv = NULL); ^~~~ mega/include/mega/crypto/cryptopp.h:161:61: error: ‘byte’ does not name a type void cbc_encrypt_pkcs_padding(const string data, const byte iv, string result); ^~~~ mega/include/mega/crypto/cryptopp.h:173:61: error: ‘byte’ does not name a type void cbc_decrypt_pkcs_padding(const string data, const byte iv, string result); ^~~~ mega/include/mega/crypto/cryptopp.h:189:48: error: ‘byte’ does not name a type void ccm_encrypt(const string data, const byte iv, unsigned ivlen, unsigned taglen, string result); ^~~~ mega/include/mega/crypto/cryptopp.h:204:48: error: ‘byte’ does not name a type void ccm_decrypt(const string data, const byte iv, unsigned ivlen, unsigned taglen, string result); ^~~~ mega/include/mega/crypto/cryptopp.h:220:48: error: ‘byte’ does not name a type void gcm_encrypt(const string data, const byte iv, unsigned ivlen, unsigned taglen, string result); ^~~~ mega/include/mega/crypto/cryptopp.h:235:48: error: ‘byte’ does not name a type void gcm_decrypt(const string data, const byte iv, unsigned ivlen, unsigned taglen, string result); ^~~~ mega/include/mega/crypto/cryptopp.h:247:20: error: ‘byte’ has not been declared void ctr_crypt(byte , unsigned, m_off_t, ctr_iv, byte , bool, bool initmac = true); ^~~~ mega/include/mega/crypto/cryptopp.h:247:55: error: ‘byte’ has not been declared void ctr_crypt(byte , unsigned, m_off_t, ctr_iv, byte , bool, bool initmac = true); ^~~~ mega/include/mega/crypto/cryptopp.h:249:35: error: ‘byte’ has not been declared static void setint64(int64_t, byte); ^~~~ mega/include/mega/crypto/cryptopp.h:251:32: error: ‘byte’ does not name a type static void xorblock(const byte, byte); ^~~~ mega/include/mega/crypto/cryptopp.h:251:39: error: ‘byte’ has not been declared static void xorblock(const byte, byte); ^~~~ mega/include/mega/crypto/cryptopp.h:252:32: error: ‘byte’ does not name a type static void xorblock(const byte, byte, int); ^~~~ mega/include/mega/crypto/cryptopp.h:252:39: error: ‘byte’ has not been declared static void xorblock(const byte, byte, int); ^~~~ mega/include/mega/crypto/cryptopp.h:254:26: error: ‘byte’ has not been declared static void incblock(byte, unsigned = BLOCKSIZE); ^~~~ mega/include/mega/crypto/cryptopp.h:259:22: error: ‘byte’ does not name a type SymmCipher(const byte); ^~~~ mega/include/mega/crypto/cryptopp.h:267:55: error: ‘byte’ does not name a type int decodeintarray(CryptoPP::Integer, int, const byte, int); ^~~~ mega/include/mega/crypto/cryptopp.h:290:35: error: ‘byte’ does not name a type int setkey(int numints, const byte data, int len); ^~~~ mega/include/mega/crypto/cryptopp.h:315:23: error: ‘byte’ does not name a type int encrypt(const byte plain, int plainlen, byte buf, int buflen); ^~~~ mega/include/mega/crypto/cryptopp.h:315:50: error: ‘byte’ has not been declared int encrypt(const byte plain, int plainlen, byte buf, int buflen); ^~~~ mega/include/mega/crypto/cryptopp.h:326:23: error: ‘byte’ does not name a type int decrypt(const byte cipher, int cipherlen, byte buf, int buflen); ^~~~ mega/include/mega/crypto/cryptopp.h:326:52: error: ‘byte’ has not been declared int decrypt(const byte cipher, int cipherlen, byte buf, int buflen); ^~~~ mega/include/mega/crypto/cryptopp.h:337:31: error: ‘byte’ does not name a type unsigned rawencrypt(const byte plain, int plainlen, byte buf, int buflen); ^~~~ mega/include/mega/crypto/cryptopp.h:337:58: error: ‘byte’ has not been declared unsigned rawencrypt(const byte plain, int plainlen, byte buf, int buflen); ^~~~ mega/include/mega/crypto/cryptopp.h:348:31: error: ‘byte’ does not name a type unsigned rawdecrypt(const byte cipher, int cipherlen, byte buf, int buflen); ^~~~ mega/include/mega/crypto/cryptopp.h:348:60: error: ‘byte’ has not been declared unsigned rawdecrypt(const byte cipher, int cipherlen, byte buf, int buflen); ^~~~ mega/include/mega/crypto/cryptopp.h:387:20: error: ‘byte’ does not name a type void add(const byte, unsigned); ^~~~ mega/include/mega/crypto/cryptopp.h:396:20: error: ‘byte’ does not name a type void add(const byte, unsigned int); ^~~~ mega/include/mega/crypto/cryptopp.h:405:20: error: ‘byte’ does not name a type void add(const byte, unsigned); ^~~~ mega/include/mega/crypto/cryptopp.h:406:14: error: ‘byte’ has not been declared void get(byte); ^~~~ mega/include/mega/crypto/cryptopp.h:422:22: error: ‘byte’ does not name a type HMACSHA256(const byte key, size_t length); ^~~~ mega/include/mega/crypto/cryptopp.h:429:20: error: ‘byte’ does not name a type void add(const byte data, unsigned len); ^~~~ mega/include/mega/crypto/cryptopp.h:435:14: error: ‘byte’ has not been declared void get(byte out); ^~~~ mega/include/mega/crypto/cryptopp.h:447:20: error: ‘byte’ has not been declared void deriveKey(byte derivedkey, size_t derivedkeyLen, ^~~~ mega/include/mega/crypto/cryptopp.h:448:20: error: ‘byte’ has not been declared byte pwd, size_t pwdLen, ^~~~ mega/include/mega/crypto/cryptopp.h:449:20: error: ‘byte’ has not been declared byte salt, size_t saltLen, unsigned int iterations); ^~~~ In file included from mega/include/mega/types.h:60:0, from mega/include/mega/utils.h:25, from mega/include/mega/attrmap.h:25, from mega/src/attrmap.cpp:22: mega/include/mega/crypto/sodium.h:79:5: error: ‘byte’ does not name a type byte genFingerprint(bool hexFormat = false); ^~~~ In file included from mega/include/mega/utils.h:25:0, from mega/include/mega/attrmap.h:25, from mega/src/attrmap.cpp:22: mega/include/mega/types.h:128:5: error: ‘byte’ does not name a type byte mac[SymmCipher::BLOCKSIZE]; ^~~~ In file included from mega/include/mega/attrmap.h:25:0, from mega/src/attrmap.cpp:22: mega/include/mega/utils.h:90:20: error: ‘byte’ does not name a type void add(const byte, unsigned); ^~~~ mega/include/mega/utils.h:93:32: error: ‘byte’ has not been declared unsigned get(AsymmCipher, byte, unsigned); ^~~~ mega/include/mega/utils.h:96:45: error: ‘byte’ does not name a type bool checksignature(AsymmCipher, const byte, unsigned); ^~~~ mega/include/mega/utils.h:125:5: error: ‘byte’ does not name a type byte keys[ENC_KEY_BYTES+MAC_KEY_BYTES]; ^~~~ mega/include/mega/utils.h:130:5: error: ‘byte’ does not name a type byte encKey; ^~~~ mega/include/mega/utils.h:135:5: error: ‘byte’ does not name a type byte hmacKey; ^~~~ mega/include/mega/utils.h:140:5: error: ‘byte’ does not name a type byte iv[IV_BYTES]; ^~~~ mega/include/mega/utils.h:155:24: error: ‘byte’ does not name a type void setKeys(const byte newEncKey, const byte newHmacKey, const byte newIv); ^~~~ mega/include/mega/utils.h:155:47: error: ‘byte’ does not name a type void setKeys(const byte newEncKey, const byte newHmacKey, const byte newIv); ^~~~ mega/include/mega/utils.h:155:71: error: ‘byte’ does not name a type void setKeys(const byte newEncKey, const byte newHmacKey, const byte newIv); ^~~~ mega/include/mega/utils.h:183:56: error: ‘byte’ does not name a type bool rsaEncryptKeys(const string cleartext, const byte pubkdata, int pubkdatalen, string result, bool randompadding = true); ^~~~ mega/include/mega/utils.h:194:55: error: ‘byte’ does not name a type bool hybridEncrypt(const string cleartext, const byte pubkdata, int pubkdatalen, string result, bool randompadding = true); ^~~~ mega/include/mega/utils.h:208:42: error: ‘byte’ has not been declared template<typename t=""> static void set(byte* ptr, T val) ^~~~ make[1]: [Makefile:3695: attrmap.o] Error 1 make[1]: Leaving directory '/home/username/.cache/pacaur/megasync/src/MEGAsync/src/MEGASync' make: [Makefile:45: sub-MEGASync-make_first] Error 2 ==> ERROR: There has been error in build(). Aborting...</typename>

LuighiV commented on 2018-02-04 17:23 (UTC) (edited on 2018-02-04 17:26 (UTC) by LuighiV)

This package is outdated. Please update to the new version 3.6.0.0.

I've done it modifying the PKGBUILD, through the following steps:

  1. Change the version number to 3.6.0.0.
  2. In prepare, add these two lines, because of some issues with cryptoc++, reported in: https://github.com/meganz/sdk/issues/935 :

    cd "${srcdir}/MEGAsync/src/MEGASync/mega"

    git checkout 222594ea17e6fe4fca9b42b28e3cce335c2ca60e

These lines move to the commit which solves the issue: https://github.com/meganz/sdk/commit/222594ea17e6fe4fca9b42b28e3cce335c2ca60e

  1. In build, change the directory to:

    cd "${srcdir}/MEGAsync/src/"

and comment out autogen.sh and all the options in configure.

  1. Finally compile and install as it is usual:

    makepkg -si

It worked for me.

servimo commented on 2018-02-04 11:47 (UTC)

Thanks @spsf64 your compiled package worked

spsf64 commented on 2018-02-04 09:34 (UTC) (edited on 2018-02-04 09:35 (UTC) by spsf64)

This will work fine for the latest version 3.6.0 https://pastebin.com/LTycASjb I used "makepkg -crs" to build. Thanks for all suggestions posted!

If you want, get it already compiled here: https://sourceforge.net/projects/arch-mod/files/aur-pkgs/

david_pjimenez commented on 2018-02-03 20:46 (UTC)

I did what @jpmac26 said (Pretty much)

What I did:

1- git clone https://github.com/meganz/megasync (Original Repo) (Folder 1) 2- git clone https://aur.archlinux.org/megasync.git (AUR) (Folder 2) 3- Copy the "PKGBUILD" from "Folder 2" to "Folder 1" 4- Build the package "makepkg -...." In "Folder 1"

It's working for me. (I know it's a pretty dirty solution) However if I try to build in "Folder 2" (AUR) it doesn't work due to crypto++.

famar commented on 2018-02-03 20:28 (UTC) (edited on 2018-02-03 20:29 (UTC) by famar)

same error of KeNaCo

Used kikadf instructions but not working

KeNaCo commented on 2018-02-03 10:48 (UTC)

@kikadf apply your instructions, but still get error:

undefined reference to `MediaInfoLib::MediaInfo::~MediaInfo()'

kikadf commented on 2018-02-02 17:14 (UTC)

Add jpmac26's changes to prepare(), and add libmediainfo to depends, and build fine.

servimo commented on 2018-02-02 15:13 (UTC)

make: *** [Makefile:45: sub-MEGASync-make_first] Error 2 ==> ERRO: Uma falha ocorreu em build(). Abortando... ==> ERRO: Makepkg não conseguiu compilar megasync. ==> Reiniciar a compilação de megasync ? [s/N]

jpmac26 commented on 2018-02-01 23:07 (UTC) (edited on 2018-02-01 23:07 (UTC) by jpmac26)

To fix the crypto++ 6.0.0 compilation issue for the time being, add these lines to the end of the "prepare()" section of the PKGBUILD:

cd "${srcdir}/MEGAsync/src/MEGASync/mega"

git checkout cryptopp600support

cd "${srcdir}/MEGAsync"