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: 383
Popularity: 3.38
First Submitted: 2014-09-01 18:12 (UTC)
Last Updated: 2024-04-29 17:36 (UTC)

Sources (4)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 .. 50 Next › Last »

jghodd commented on 2022-10-12 00:16 (UTC) (edited on 2022-10-12 18:09 (UTC) by jghodd)

am getting an error on the i686 build. i was able to create a patch to allow the build to complete, but due to the context of the "fix", i'm not 100% comfortable that there wouldn't be negative ripple effects. the error is one of narrowing in posix/fs.cpp - a 32-bit hex value is being assigned to an int via a #define. the patch, which i'll post, allows the build not to fail, but i'd feel more comfortable if someone more familiar with the code base could give it a thumbs-up or thumbs-down, or even code in a fix for 32-bit platforms.


diff --git a/src/posix/fs.cpp b/src/posix/fs.cpp
index b65b6f38f..e6ee148e1 100644
--- a/src/posix/fs.cpp
+++ b/src/posix/fs.cpp
@@ -80,7 +80,7 @@
 #endif /* ! XFS_SUPER_MAGIC */

 #ifndef CIFS_MAGIC_NUMBER
-#define CIFS_MAGIC_NUMBER 0xFF534D42
+#define CIFS_MAGIC_NUMBER (int)0xFF534D42
 #endif // ! CIFS_MAGIC_NUMBER

 #ifndef NFS_SUPER_MAGIC
@@ -92,7 +92,7 @@
 #endif // ! SMB_SUPER_MAGIC

 #ifndef SMB2_MAGIC_NUMBER
-#define SMB2_MAGIC_NUMBER 0xfe534d42
+#define SMB2_MAGIC_NUMBER (int)0xfe534d42
 #endif // ! SMB2_MAGIC_NUMBER

 #endif /* __linux__ */

please let me know if this does or does not pass the smell test.

edit: i've changed the cast to __fsword_t so that it matches the type of statfs.f_type because the only way these two constants are used are in a switch statement where they're compared to a statfs.f_type variable. tracking back through the include files, statfs.f_type is a __fsword_t which is #def'd to different types depending on the platform (32-bit vs 64-bit). so now the patch looks like this:


diff --git a/src/posix/fs.cpp b/src/posix/fs.cpp
index b65b6f38f..e6ee148e1 100644
--- a/src/posix/fs.cpp
+++ b/src/posix/fs.cpp
@@ -80,7 +80,7 @@
 #endif /* ! XFS_SUPER_MAGIC */

 #ifndef CIFS_MAGIC_NUMBER
-#define CIFS_MAGIC_NUMBER 0xFF534D42
+#define CIFS_MAGIC_NUMBER (__fsword_t)0xFF534D42
 #endif // ! CIFS_MAGIC_NUMBER

 #ifndef NFS_SUPER_MAGIC
@@ -92,7 +92,7 @@
 #endif // ! SMB_SUPER_MAGIC

 #ifndef SMB2_MAGIC_NUMBER
-#define SMB2_MAGIC_NUMBER 0xfe534d42
+#define SMB2_MAGIC_NUMBER (__fsword_t)0xfe534d42
 #endif // ! SMB2_MAGIC_NUMBER

 #endif /* __linux__ */

if anyone sees a problem with this, please let me know. what concerns me is that these 2 values would set the sign bit of a 32-bit int. but at least that would also hold true of the statfs.f_type value they're being compared against, which makes it more consistent, and it resolves the narrowing error.

pescepalla commented on 2022-09-15 07:38 (UTC)

Please add qt5-wayland as an optional dependency for those of us who use wayland.

killua99 commented on 2022-09-08 04:50 (UTC)

I just bumped the version, for my github fork, this package still doesn't install without issues

kikadf commented on 2022-05-30 16:00 (UTC)

@attila123: cmst is not a megasync dependency, it is an inedependent package. The megasync upgrade was fine (just a reinstall, not built the package) in your output. I don't know paru, maybe you upgraded all AUR packages, not only megasync, and you had a problem with the megyasync independent cmst package.

attila123 commented on 2022-05-30 14:56 (UTC)

When upgrading megasync (with paru), for some reason there was some problem with cmst. So I manually upgraded cmst (went fine), then reinstalled megasync just to make sure. The mystical problem with cmst was:

==> Making package: megasync 4.6.6.0-1 (Mon 30 May 2022 04:49:15 PM CEST)
==> Retrieving sources...
  -> Updating MEGAsync git repo...
Fetching origin
From https://github.com/meganz/MEGAsync
 - [deleted]             (none)     -> refs/pull/684/merge
  -> Updating meganz-sdk git repo...
Fetching origin
remote: Enumerating objects: 1453, done.
remote: Counting objects: 100% (1118/1118), done.
remote: Compressing objects: 100% (164/164), done.
remote: Total 778 (delta 637), reused 744 (delta 610), pack-reused 0
Receiving objects: 100% (778/778), 246.91 KiB | 3.58 MiB/s, done.
Resolving deltas: 100% (637/637), completed with 104 local objects.
From https://github.com/meganz/sdk
   f9054e437..ec2c9df4c  master               -> master
 + b23cc3a66...68560f3cf refs/pull/2596/merge -> refs/pull/2596/merge  (forced update)
 + 021465251...9829f8956 refs/pull/2597/merge -> refs/pull/2597/merge  (forced update)
 + c8b1d1e5e...129769f96 refs/pull/2600/merge -> refs/pull/2600/merge  (forced update)
 + 428adbdbc...ce4d605fb refs/pull/2614/merge -> refs/pull/2614/merge  (forced update)
 * [new ref]             refs/pull/2620/head  -> refs/pull/2620/head
 * [new ref]             refs/pull/2620/merge -> refs/pull/2620/merge
 * [new tag]             v3.12.1              -> v3.12.1
  -> Found pdfium.patch
  -> Found ffmpeg.patch
==> Validating source files with sha256sums...
    MEGAsync ... Skipped
    meganz-sdk ... Skipped
    pdfium.patch ... Passed
    ffmpeg.patch ... Passed
==> Making package: megasync 4.6.6.0-1 (Mon 30 May 2022 04:49:19 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating MEGAsync git repo...
Fetching origin
  -> Updating meganz-sdk git repo...
Fetching origin
  -> Found pdfium.patch
  -> Found ffmpeg.patch
==> Validating source files with sha256sums...
    MEGAsync ... Skipped
    meganz-sdk ... Skipped
    pdfium.patch ... Passed
    ffmpeg.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of MEGAsync git repo...
Cloning into 'MEGAsync'...
done.
Switched to a new branch 'makepkg'
  -> Creating working copy of meganz-sdk git repo...
Cloning into 'meganz-sdk'...
done.
==> Starting prepare()...
Submodule 'src/MEGASync/mega' (https://github.com/meganz/sdk.git) registered for path 'src/MEGASync/mega'
Cloning into '/home/avangel/.cache/paru/clone/megasync/src/MEGAsync/src/MEGASync/mega'...
done.
Submodule path 'src/MEGASync/mega': checked out '4b40fcbf58cd7b0ccb4a9604f08693fc5ed62bf2'
patching file bindings/qt/sdk.pri
patching file src/gfx/freeimage.cpp
==> Sources are ready.
megasync-4.6.6.0-1: parsing pkg list...
:: megasync-4.6.6.0-1 is up to date -- skipping build
loading packages...
warning: megasync-4.6.6.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) megasync-4.6.6.0-1

Total Installed Size:  14.98 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                 [#############################################################################] 100%
(1/1) checking package integrity                                                                                               [#############################################################################] 100%
(1/1) loading package files                                                                                                    [#############################################################################] 100%
(1/1) checking for file conflicts                                                                                              [#############################################################################] 100%
(1/1) checking available disk space                                                                                            [#############################################################################] 100%
:: Processing package changes...
(1/1) reinstalling megasync                                                                                                    [#############################################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...
error: packages failed to build: cmst-2022.05.01-1

kikadf commented on 2022-05-23 15:16 (UTC)

@simona: you should rebuild libpdfium, after a clean build for megasync with the fixed ffmpeg patch

simona commented on 2022-05-23 07:39 (UTC)

/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../lib/libpdfium.so: undefined reference to u_isspace_70'<br> /bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../lib/libpdfium.so: undefined reference tou_tolower_70'
/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../lib/libpdfium.so: undefined reference to u_isalnum_70'<br> /bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../lib/libpdfium.so: undefined reference tou_isalpha_70'
/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../lib/libpdfium.so: undefined reference to `u_toupper_70'

kikadf commented on 2022-05-13 16:20 (UTC)

Kozeid, can you update this package to 4.6.6.0, and fix the ffmpeg patch (https://raw.githubusercontent.com/killua99/megasync_aur/bump-version/ffmpeg.patch)?

emceebois commented on 2022-04-27 22:47 (UTC) (edited on 2022-04-28 00:06 (UTC) by emceebois)

@killua99 I got this build error when running makepkg -si against your version:

MegaApplication.cpp: In member function ‘void MegaApplication::onSyncDisabled(std::shared_ptr<SyncSetting>)’:
MegaApplication.cpp:8411:31: error: ‘LOCAL_FINGERPRINT_MISMATCH’ is not a member of ‘mega::MegaSync::Error’
 8411 |         case MegaSync::Error::LOCAL_FINGERPRINT_MISMATCH:
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:11182: MegaApplication.o] Error 1
make[1]: Leaving directory '/home/moghingold/Code/git/megasync_aur/src/MEGAsync/src/MEGASync'
make: *** [Makefile:47: sub-MEGASync-make_first] Error 2
==> ERROR: A failure occurred in build().
    Aborting...