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

Bug 380505

Summary: app-portage/flaggie-0.1.2 fails with invalid USE_EXPAND contents
Product: Portage Development Reporter: Kevin Bryan <TenToThe8th>
Component: Third-Party ToolsAssignee: Michał Górny <mgorny>
Status: RESOLVED FIXED    
Severity: normal CC: fuzzyray
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kevin Bryan 2011-08-24 14:34:23 UTC
If /etc/make.conf contains an APACHE2_MODULES="..." line, then flaggie fails to even query the global USE flags:

$ flaggie ?xattr
Traceback (most recent call last):
  File "/usr/bin/flaggie-2.7", line 25, in <module>
    sys.exit(main(sys.argv))
  File "/usr/lib64/python2.7/site-packages/flaggie/cli.py", line 205, in main
    actset(pfiles)
  File "/usr/lib64/python2.7/site-packages/flaggie/action.py", line 246, in __call__
    a(self.pkgs, pfiles)
  File "/usr/lib64/python2.7/site-packages/flaggie/action.py", line 183, in __call__
    for pe in puse[p]:
  File "/usr/lib64/python2.7/site-packages/flaggie/packagefile.py", line 308, in __getitem__
    for e in self.makeconfvar:
  File "/usr/lib64/python2.7/site-packages/flaggie/makeconf.py", line 277, in __iter__
    self.parseflags()
  File "/usr/lib64/python2.7/site-packages/flaggie/makeconf.py", line 234, in parseflags
    self._useexpanded[t.use_expanded].remove(flag.name)
KeyError: u'apache2_modules_so'
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-29 16:41:09 UTC
Ok, the exact problem here is that 'apache2_modules_so' USE is not described in profiles/desc/apache2_modules.desc. Please report that as well.

For flaggie, I'll take a look at it in the next few days. As a temporary solution, you may either describe 'so' in the file mentioned above or just drop it from APACHE2_MODULES.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-30 09:41:06 UTC
[master 07cb063] Fix failure when USE_EXPAND vars contain invalid flags.
 1 files changed, 1 insertions(+), 1 deletions(-)

If you could test the -9999 version (from mgorny overlay), that'd be great. You can also manually look for 'remove(' in makeconf.py and replace it with 'discard('.
Comment 3 Kevin Bryan 2011-08-30 18:15:07 UTC
> If you could test the -9999 version (from mgorny overlay), that'd be great. You
> can also manually look for 'remove(' in makeconf.py and replace it with
> 'discard('.

Doing the replacement of s/remove(/discard(/  worked.  Thanks.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-30 21:33:14 UTC
Fixed in 0.1.3.