vitalif / grive2

Google Drive client with support for new Drive REST API and partial sync
http://yourcmc.ru/wiki/Grive2
GNU General Public License v2.0
1.52k stars 141 forks source link

macOS fixes #259

Closed Tatsh closed 4 years ago

Tatsh commented 5 years ago

This makes Grive build on macOS (tested with MacPorts).

There's no systemd on macOS, so this makes CMake look for the systemd binary and installs the systemd units conditionally. This is a portable check for systemd but really only applies to Linux.

I can provide launchctl service files if desired.

Tatsh commented 5 years ago

The libgrive change fixes for this warning given twice by Clang:

...s/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2285:5: Delete called on 'gr::Feed' that is abstract but has non-virtual destructor

Grive was crashing in Syncer2::GetChanges() and Drive::DetectChanges() (it was random).