Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299260 - app-portage/gentoolkit: equery depends has problems with use flags and/or blocks
Summary: app-portage/gentoolkit: equery depends has problems with use flags and/or blocks
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2010-01-01 20:25 UTC by Sebastian Luther (few)
Modified: 2010-01-07 16:39 UTC (History)
0 users

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


Attachments
output of python setup.py test with r140 (test_output_r140,1.91 KB, text/plain)
2010-01-05 07:50 UTC, Sebastian Luther (few)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Luther (few) 2010-01-01 20:25:31 UTC
This bug was introduced in gentoolkit revision 703, when genscripts revision 113 was merged. The bug has been introduced in genscripts with revision 107.

With revision 702:
# equery d boost
 * Searching for boost ...
app-office/openoffice-3.1.1 (>=dev-libs/boost-1.33.1)
dev-util/monotone-0.45 (>=dev-libs/boost-1.33.1)
sci-astronomy/stellarium-0.10.2 (dev-libs/boost)

With revision 703:
# equery d boost
 * These packages depend on boost:
app-office/openoffice-3.1.1 (cups ? >=dev-libs/boost-1.33.1)
dev-libs/boost-1.37.0-r2 (python ? <=dev-libs/boost-1.35.0-r2)
dev-libs/boost-1.40.0-r1 (python ? <=dev-libs/boost-1.35.0-r2)
dev-util/boost-build-1.41.0 (<dev-libs/boost-1.34.0)
dev-util/boost-build-1.42.0 (<dev-libs/boost-1.34.0)
dev-util/monotone-0.45 (emacs ? >=dev-libs/boost-1.33.1)
sci-astronomy/stellarium-0.10.2 (nls ? =dev-libs/boost)
Comment 1 Douglas Anderson 2010-01-04 05:18:42 UTC
genscripts r139 is an attempt at fixing this bug, though I don't currently have access to a computer with Gentoo on it so I'm not sure if this will fix the problem or not. Please test.
Comment 2 Sebastian Luther (few) 2010-01-04 20:51:30 UTC
It improved with genscripts r139 but it's not perfect.

#equery d boost
app-office/openoffice-3.1.1 (>=dev-libs/boost-1.33.1)
dev-libs/boost-1.37.0-r2 (<=dev-libs/boost-1.35.0-r2)  |
dev-libs/boost-1.40.0-r1 (<=dev-libs/boost-1.35.0-r2)  |
dev-util/boost-build-1.41.0 (<dev-libs/boost-1.34.0)   |  <-- these are blocks
dev-util/boost-build-1.42.0 (<dev-libs/boost-1.34.0)   | 
dev-util/monotone-0.45 (>=dev-libs/boost-1.33.1)
sci-astronomy/stellarium-0.10.2 (=dev-libs/boost)    <-- the '='
Comment 3 Sebastian Luther (few) 2010-01-05 07:50:43 UTC
Created attachment 215236 [details]
output of python setup.py test with r140

$ equery d boost
 * These packages depend on boost:
Traceback (most recent call last):
  File "/home/mingramm/gentoolkit/bin/equery", line 35, in <module>
    equery.main()
  File "/home/mingramm/gentoolkit/pym/gentoolkit/equery/__init__.py", line 342, in main
    loaded_module.main(module_args)
  File "/home/mingramm/gentoolkit/pym/gentoolkit/equery/depends.py", line 188, in main
    printer_fn=dep_print
  File "/home/mingramm/gentoolkit/pym/gentoolkit/dependencies.py", line 248, in graph_reverse_depends
    all_depends = uniqify(pkgdep.get_all_depends())
  File "/home/mingramm/gentoolkit/pym/gentoolkit/dependencies.py", line 111, in get_all_depends
    return self.parser(' '.join(self.environment(env_vars)))
  File "/home/mingramm/gentoolkit/pym/gentoolkit/dependencies.py", line 306, in _parser
    if not use_conditional[0] == '!':
TypeError: 'NoneType' object is unsubscriptable
Comment 4 Douglas Anderson 2010-01-06 02:57:07 UTC
OK, this issue and the test suite are fixed in genscripts r144. I need a dev to merge this in to gentoolkit-svn, please.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2010-01-06 15:56:00 UTC
$ svn commit -m "Merge genscripts revision 144, contains fixes for Bug 299260"
Sending        gentoolkit/DEVELOPING
Sending        gentoolkit/pym/gentoolkit/atom.py
Sending        gentoolkit/pym/gentoolkit/cpv.py
Sending        gentoolkit/pym/gentoolkit/dependencies.py
Sending        gentoolkit/pym/gentoolkit/equery/depends.py
Sending        gentoolkit/pym/gentoolkit/test/test_atom.py
Transmitting file data ......
Committed revision 729.
Comment 6 Paul Varner (RETIRED) gentoo-dev 2010-01-07 16:39:40 UTC
Released in gentoolkit-0.3.0_rc8