Summary: | gentoolkit: "equery list -p" fails if /usr/portage is a symbolic link | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Manfred Knick <Manfred.Knick> |
Component: | [OLD] Unspecified | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | InVCS |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 268001 | ||
Attachments: |
portdir_symlink.patch
fix_portdir_symlink.patch |
Description
Manfred Knick
2009-01-06 13:32:52 UTC
* installed packages [I--] [ ] sys-apps/portage-2.1.6.4 (0) [I--] [ ] app-portage/portage-utils-0.1.29 (0) [I--] [ ] app-portage/gentoolkit-0.2.4.2 (0) That is because /usr/portage is a symbolic link. What is happening is the PORTDIR setting is not matching the actual path to the package so equery thinks it is in an overlay. You can see this by running the command equery list -o -p <package> The fix to the problem is to set PORTDIR in /etc/make.conf to the actual path of ypur portage tree and not to the symbolic link. Created attachment 177839 [details, diff]
portdir_symlink.patch
If this patch is saved as /tmp/portdir_symlink.patch, then it can be applied as follows:
patch /usr/lib/gentoolkit/pym/gentoolkit/package.py /tmp/portdir_symlink.patch
I didn't really like my working as designed answer since portage itself seems to handle the symlink fine. The attached patch should fix the issue. Created attachment 177841 [details, diff]
fix_portdir_symlink.patch
Simpler patch that also works with relative path names in the symlink
(In reply to comment #5) > Simpler patch that also works with relative path names in the symlink Paul, I definitely like this nice clean one! Paints the picture much more consistent to portage's behaviour as well as *NIX in general. Already tested it; can confirm as "WORKSFORME". I think this fix should enter into stable. Thanks a lot! Kind regards Manfred Released in gentoolkit-0.2.4.3 |