BTW, The libcrypt issue is not at upstream issue, it's an arch one because we no longer ship libgcrypt-config which is required by cmake. See https://github.com/vitalif/grive2/issues/399. So a patch here is warranted.
Search Criteria
Package Details: grive-git 557.648ff8e-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/grive-git.git (read-only, click to copy) |
---|---|
Package Base: | grive-git |
Description: | An open source Linux client for Google Drive with support for the new Drive REST API and partial sync |
Upstream URL: | https://github.com/vitalif/grive2 |
Keywords: | drive git Google share sync |
Licenses: | GPL2 |
Conflicts: | grive |
Provides: | grive |
Submitter: | ilpianista |
Maintainer: | edh |
Last Packager: | edh |
Votes: | 78 |
Popularity: | 0.000053 |
First Submitted: | 2012-04-29 15:20 (UTC) |
Last Updated: | 2023-01-23 14:25 (UTC) |
Dependencies (13)
- boost-libs
- curl (curl-gitAUR, curl-c-aresAUR)
- expat (expat-gitAUR)
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- json-c (json-c-gitAUR)
- libgcrypt
- yajl (yajl-gitAUR)
- boost (boost-gitAUR) (make)
- cmake (cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- binutils (optional) – backtrace and libiberty
- cppunit (optional) – unit tests
- inotify-tools (inotify-tools-gitAUR) (optional) – scheduled syncs and syncs on file change events
Required by (0)
Sources (1)
zwastik commented on 2025-02-12 21:28 (UTC) (edited on 2025-02-12 21:29 (UTC) by zwastik)
zwastik commented on 2025-02-11 17:08 (UTC) (edited on 2025-02-11 17:08 (UTC) by zwastik)
==> Starting build()...
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at CMakeLists.txt:8 (message):
Version to build: 0.5.3
CMake Error at cmake/Modules/FindLibGcrypt.cmake:49 (message):
Could not find libgcrypt libraries
Call Stack (most recent call first):
libgrive/CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
Aborting...
-> error making: grive-git-exit status 4
-> Failed to install the following packages. Manual intervention is required:
grive-git - exit status 4
jasper1378 commented on 2022-09-21 02:51 (UTC)
@zwastik this is a known issue, there's a pull request upstream to fix it that has yet to be merged. https://github.com/vitalif/grive2/pull/363. You should be able to patch it yourself, or switch to the "grive" package (which is also currently broken, but should be fixed as soon as @edh implements my patch).
zwastik commented on 2022-09-21 02:44 (UTC) (edited on 2022-09-21 02:45 (UTC) by zwastik)
@jasper1378's patch does work but it fails to build later anyway
[ 11%] Building CXX object libgrive/CMakeFiles/grive.dir/src/base/Syncer.cc.o
In file included from /home/user/.cache/pikaur/build/grive-git/src/grive-git/libgrive/src/base/Syncer.cc:20:
/home/user/.cache/pikaur/build/grive-git/src/grive-git/libgrive/src/base/Syncer.hh:58:22: error: ‘unique_ptr’ in namespace ‘std
’ does not name a template type
58 | virtual std::unique_ptr<Feed> GetFolders() = 0;
| ^~~~~~~~~~
/home/user/.cache/pikaur/build/grive-git/src/grive-git/libgrive/src/base/Syncer.hh:23:1: note: ‘std::unique_ptr’ is defined in
header ‘<memory>’; did you forget to ‘#include <memory>’?
22 | #include "util/FileSystem.hh"
+++ |+#include <memory>
23 |
jasper1378 commented on 2022-09-21 00:26 (UTC)
@edh I created a pull request upstream that fixes the issue, hopefully it gets merged sooner rather than later. https://github.com/vitalif/grive2/pull/371
jasper1378 commented on 2022-09-20 20:52 (UTC)
@edh That makes sense. Upstream seems to be dead, but I'll look into making a patch that you can apply to the grive package. If that gentoo bug that I linked is correct however, it may not actually be a problem with grive.
edh commented on 2022-09-20 20:45 (UTC)
This package has a bad record of not building. However, I am reluctant to patch a git-package because any changes would most likely break with any new upstream commit. Please try to get the build fixed upstream or switch to the grive package.
jasper1378 commented on 2022-09-19 21:14 (UTC) (edited on 2022-09-20 13:57 (UTC) by jasper1378)
EDIT: Seems like there's an issue upstream referencing this: https://github.com/vitalif/grive2/issues/370
EDIT: Like the upstream issue mentioned, downgrading grep to 3.7 resolves the issue.
EDIT: Seems like it might actually a bug in libgcrypt-config. Take a look a this gentoo bug report: https://bugs.gentoo.org/868384
I'm getting the following error(s) when trying to build the latest version:
CMake Warning:
Value of grive_LIB_DEPENDS contained a newline; truncating
CMake Error at libgrive/CMakeLists.txt:74 (add_library):
Target "grive" links to item " using grep -F
fgrep: warning: fgrep is obsolescent" which has leading or trailing
whitespace. This is now an error according to policy CMP0004.
CMake Error at libgrive/CMakeLists.txt:74 (add_library):
Target "grive" links to item " using grep -F
-lgcrypt -lgpg-error" which has leading or trailing whitespace. This is
now an error according to policy CMP0004.
CMake Error at libgrive/CMakeLists.txt:74 (add_library):
Target "grive" links to item " using grep -F
fgrep: warning: fgrep is obsolescent" which has leading or trailing
whitespace. This is now an error according to policy CMP0004.
CMake Error at libgrive/CMakeLists.txt:74 (add_library):
Target "grive" links to item " using grep -F
-lgcrypt -lgpg-error" which has leading or trailing whitespace. This is
now an error according to policy CMP0004.
CMake Error at libgrive/CMakeLists.txt:74 (add_library):
Target "grive" links to item " using grep -F
fgrep: warning: fgrep is obsolescent" which has leading or trailing
whitespace. This is now an error according to policy CMP0004.
CMake Error at libgrive/CMakeLists.txt:74 (add_library):
Target "grive" links to item " using grep -F
-lgcrypt -lgpg-error" which has leading or trailing whitespace. This is
now an error according to policy CMP0004.
CMake Error at libgrive/CMakeLists.txt:74 (add_library):
Target "grive" links to item " using grep -F
fgrep: warning: fgrep is obsolescent" which has leading or trailing
whitespace. This is now an error according to policy CMP0004.
CMake Error at libgrive/CMakeLists.txt:74 (add_library):
Target "grive" links to item " using grep -F
-lgcrypt -lgpg-error" which has leading or trailing whitespace. This is
now an error according to policy CMP0004.
CMake Error at libgrive/CMakeLists.txt:74 (add_library):
Target "grive" links to item " using grep -F
fgrep: warning: fgrep is obsolescent" which has leading or trailing
whitespace. This is now an error according to policy CMP0004.
CMake Error at libgrive/CMakeLists.txt:74 (add_library):
Target "grive" links to item " using grep -F
-lgcrypt -lgpg-error" which has leading or trailing whitespace. This is
now an error according to policy CMP0004.
semeion commented on 2022-08-10 06:35 (UTC)
@edh Oh i just deleted the .grive file and tried create new auth code using non-git version and it is working now!!!
Thank you very much! :D
semeion commented on 2022-08-10 06:00 (UTC) (edited on 2022-08-10 06:08 (UTC) by semeion)
@edh I think you could add the patch, because the package is already broken, if the program got fixed in mainstrean just remove the patchs :D
And, yeah, the non-git package compile but doesn´t run. I tried and i get this errors:
Failed to refresh auth token: HTTP 401, body:
exception: /home/mnemonic/.aur/grive/grive/src/grive2-0.5.1/libgrive/src/protocol/OAuth2.cc(111): Throw in function Refresh
Dynamic exception type: boost::wrapexcept<gr::OAuth2::AuthFailed>
[gr::expt::BacktraceTag*] = #0 0x55c4f4e3a04d grive gr::Exception::Exception()
#1 0x55c4f4e2f6a7 grive gr::OAuth2::Refresh()
#2 0x55c4f4e2fe69 grive gr::OAuth2::OAuth2(gr::http::Agent*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
#3 0x55c4f4dc1b83 grive Main(int, char**)
#4 0x55c4f4dbeddb grive main
#5 0x7fbd3e3592d0 /usr/lib/libc.so.6
#6 0x7fbd3e35938a /usr/lib/libc.so.6 __libc_start_main
#7 0x55c4f4dbf7c5 grive _start
Pinned Comments
edh commented on 2022-09-20 20:45 (UTC)
This package has a bad record of not building. However, I am reluctant to patch a git-package because any changes would most likely break with any new upstream commit. Please try to get the build fixed upstream or switch to the grive package.