Summary: | app-misc/gcalcli should depend on <=dev-python/oauth2client-1.4.12 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Aurélien Francillon <aurelien> |
Component: | Current packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | erkiferenc, gentoo, python |
Priority: | Normal | Keywords: | NeedPatch |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
gcalcli-3.3.2.ebuild.patch
The patch. |
Description
Aurélien Francillon
2016-06-13 09:46:26 UTC
Gentoo ebuild doesn't currently depend on oauthclient, but perhaps this could be facilitated with an appropriate USE flag. No patch currently attached, but passing to Rob anyway. Created attachment 437352 [details, diff]
gcalcli-3.3.2.ebuild.patch
Sorry here is the patch.
In addition to this, it seem that dev-python/google-api-python-client-1.3.1 is needed, instead of the stable 1.5.0. With the stable version the following error occurs (non fatal): # gcalcli agenda WARNING:root:No module named contrib.locked_file Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/googleapiclient/discovery_cache/__init__.py", line 38, in autodetect from . import file_cache File "/usr/lib64/python2.7/site-packages/googleapiclient/discovery_cache/file_cache.py", line 32, in <module> from oauth2client.contrib.locked_file import LockedFile ImportError: No module named contrib.locked_file These seem to be related problems. Created attachment 447274 [details, diff]
The patch.
There's a workaround to fix that and doesn't need an specific version of oauth2client.
There goes the patch. Tested here with oauth2client-2.2.0 and working.
Thanks for the patch, this worked well for me. However this does not seem to be a perfect solution (problems with newer auths): https://github.com/insanum/gcalcli/pull/211 This has been solved in the tree... not sure which release includes this patch however. https://github.com/freebsd/freebsd-ports/commit/ff3ffbd19720311dbabae5018cbc97979b3ada61 Looks like version 3.4.0 was released. Maybe adding ebuild for 3.4.0 solves this without forcing an old version of the library? I've opened bug 613850 for a version bump to 3.4.0, including a fix for this too. InGit |