Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338550 - app-emacs/company-mode failed to complete python symbols because of missing backend dependencies
Summary: app-emacs/company-mode failed to complete python symbols because of missing b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords: EBUILD
Depends on: 338553 339633
Blocks:
  Show dependency tree
 
Reported: 2010-09-24 13:24 UTC by Yang Zhang
Modified: 2010-10-10 06:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
company-mode-0.5-r1.ebuild (company-mode-0.5-r1.ebuild,1.39 KB, text/plain)
2010-09-24 13:28 UTC, Yang Zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yang Zhang 2010-09-24 13:24:53 UTC
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.
Comment 1 Yang Zhang 2010-09-24 13:28:53 UTC
Created attachment 248509 [details]
company-mode-0.5-r1.ebuild

The modified ebuild:
Added dev-python/ropemacs in RDEPEND
Comment 2 Yang Zhang 2010-09-24 13:45:34 UTC
Missing ebuilds for dependencies

http://bugs.gentoo.org/show_bug.cgi?id=338556
http://bugs.gentoo.org/show_bug.cgi?id=338553
Comment 3 Ulrich Müller gentoo-dev 2010-09-25 09:07:57 UTC
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.
Comment 4 Yang Zhang 2010-09-25 12:13:51 UTC
(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.
Comment 5 Ulrich Müller gentoo-dev 2010-10-03 21:11:34 UTC
We can add ropemacs as run-time dependency, but we must wait for the ~amd64 keyword in bug 339633.
Comment 6 Yang Zhang 2010-10-04 02:03:43 UTC
(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.
Comment 7 Ulrich Müller gentoo-dev 2010-10-10 06:57:54 UTC
Fixed. Thank you for bringing this up.