Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519252 - app-portage/pfl should depend on sys-apps/portage[${PYTHON_USEDEP}]
Summary: app-portage/pfl should depend on sys-apps/portage[${PYTHON_USEDEP}]
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-06 20:11 UTC by Paweł Stankowski
Modified: 2014-08-08 07:43 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Stankowski 2014-08-06 20:11:47 UTC
+++ This bug was initially created as a clone of Bug #512708 +++

app-portage/pfl has the dependency to portage defined as

  DEPEND="sys-apps/portage"

This can lead to a situation where pfl is installed for PYTHON_TARGETS which aren't enabled on sys-apps/portage.

Steps to reproduce:
1. emerge sys-apps/portage against python 3.3 only
2. emerge app-portage/pfl against python 2.7
3. Run pfl without any arguments

Actual result:
$ pfl
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/pfl", line 4, in <module>
    import pfl.pfl
  File "/usr/lib64/python2.7/site-packages/pfl/pfl.py", line 2, in <module>
    from portage.dbapi.vartree import vartree
ImportError: No module named portage.dbapi.vartree

Proposed fix - The dependency should read:

RDEPEND="${DEPEND}
 	net-misc/curl
 	sys-apps/portage[${PYTHON_USEDEP}]"
Comment 1 Daniel Pielmeier gentoo-dev 2014-08-08 07:43:18 UTC
Fixed. Thanks for the report.