app-emacs/company-mode failed to complete in python mode even with ropemacs USE. The problem turned out that company-mode use ropemacs for python completion but there are no dependencies on ropemacs. There are no dev-python/ropemacs in portage, neither. To be correct, company-mode should depend on dev-python/ropemacs & app-emacs/pymacs when the "ropemacs" USE flag is on.
Created attachment 248509 [details] company-mode-0.5-r1.ebuild The modified ebuild: Added dev-python/ropemacs in RDEPEND
Missing ebuilds for dependencies http://bugs.gentoo.org/show_bug.cgi?id=338556 http://bugs.gentoo.org/show_bug.cgi?id=338553
See the comment in the company-mode ebuild: # Note: company-mode supports many backends, and we refrain from including # them all in RDEPEND. Only depend on things that are needed at build time. It's fine to add ebuilds for packages that are supported by company-mode's backends, as in the depending bugs. But we won't add them as dependencies.
(In reply to comment #3) > See the comment in the company-mode ebuild: > # Note: company-mode supports many backends, and we refrain from including > # them all in RDEPEND. Only depend on things that are needed at build time. > > It's fine to add ebuilds for packages that are supported by company-mode's > backends, as in the depending bugs. But we won't add them as dependencies. > Hi, firstly thanks very much for your reply. I totally agree with the fact that it will be too complicated to add all dependencies for company-mode. But I suspect that if it is right to include a dependency which would not function correctly. The "ropemacs" USE flag pulls in a dependency (app-emacs/pymacs) but it does not work at all! An ordinary user (me for example) would expect to add "ropemacs" to make python completion work, but it doesn't. I think it is better to pull in direct dependency on dev-python/repomacs or we just remove the "repomacs" USE flag so the user does not get confused when finding it not work. It is even better if we can issue a elog describing the situation.
We can add ropemacs as run-time dependency, but we must wait for the ~amd64 keyword in bug 339633.
(In reply to comment #5) > We can add ropemacs as run-time dependency, but we must wait for the ~amd64 > keyword in bug 339633. > Thanks. Sorry that I have no amd64 access.
Fixed. Thank you for bringing this up.