Package Details: megasync 3.6.0.0-1

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: kikadf
Last Packager: kikadf
Votes: 269
Popularity: 6.660572
First Submitted: 2014-09-01 18:12
Last Updated: 2018-02-09 09:30

Latest Comments

Archrysler commented on 2018-02-05 18:13

While the package is not updated in AUR It is very simple Download Mega package https://mega.nz/sync

Open Console

sudo pacman -U /home/user/Downloads/megasync-x86_64.pkg.tar.xz

Enjoy.

servimo commented on 2018-02-05 14:30

@michaldybczak see @LuighiV post

michaldybczak commented on 2018-02-05 09:56

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

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

Thanks @spsf64 your compiled package worked

spsf64 commented on 2018-02-04 09:34

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

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

same error of KeNaCo

Used kikadf instructions but not working

KeNaCo commented on 2018-02-03 10:48

@kikadf apply your instructions, but still get error:

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

kikadf commented on 2018-02-02 17:14

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

All comments