Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380505 - app-portage/flaggie-0.1.2 fails with invalid USE_EXPAND contents
Summary: app-portage/flaggie-0.1.2 fails with invalid USE_EXPAND contents
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-08-24 14:34 UTC by Kevin Bryan
Modified: 2011-08-30 21:33 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 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.