Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 129098

Summary: portage-2.1 emits redundant error messages
Product: Portage Development Reporter: Jakub Moc (RETIRED) <jakub>
Component: Core - External InteractionAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: minor    
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: raise exception when canonical_path == filename

Description Jakub Moc (RETIRED) gentoo-dev 2006-04-07 01:05:41 UTC
$ euse -i apache
global use flags (searching: apache)
************************************************************

*** You are not in the portage group. You may experience cache problems
*** due to permissions preventing the creation of the on-disk cache.
*** Please add this user to the portage group if you wish to use portage.

!!! Failed to open file: '/var/cache/edb/mtimedb.4732'
!!! [Errno 13] Permission denied: '/var/cache/edb/mtimedb.4732'
[-    ] apache - Chooses Apache1 support when a package optionally supports Apache1

local use flags (searching: apache)
************************************************************
[-    ] apache (www-servers/gorg):
Install apache

Don't know if the portage group warning is really needed here or not, but the permission denied issue is really redundant. Another example:

$ emerge --info

<snip>
!!! Failed to open file: '/var/cache/edb/mtimedb.5980'
!!! [Errno 13] Permission denied: '/var/cache/edb/mtimedb.5980'
</snip>
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2006-04-07 02:00:50 UTC
The latter error message is python's string description of the error. This may not necessarily contain the file name but will contain the exact problem. Hence, both are needed to cover all cases.
Comment 2 Zac Medico gentoo-dev 2006-04-07 02:10:09 UTC
Created attachment 84117 [details, diff]
raise exception when canonical_path == filename

Hopefully this patch will make it slighly less annoying.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-07 02:40:28 UTC
(In reply to comment #2)
> Hopefully this patch will make it slighly less annoying.

Yeah, much better now. ;) 

Comment 4 Zac Medico gentoo-dev 2006-04-09 00:09:48 UTC
The patch is in 2.1_pre7-r5.