Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353139 - app-portage/eix: eix-test-obsolete and wildcard-atoms
Summary: app-portage/eix: eix-test-obsolete and wildcard-atoms
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
: 354723 371855 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-29 13:13 UTC by Alexander Weber
Modified: 2011-06-16 16:19 UTC (History)
3 users (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 Alexander Weber 2011-01-29 13:13:08 UTC
eix-test-obsolete does not handle currently wildcard-atoms.

Reproducible: Always

Steps to Reproduce:
1. install portage-2.2
2. set *games*/* to the /etc/portage/package.keywords
3. run eix-test-obsolete brief

Actual Results:  
...
Redundant in /etc/portage/package.accept_keywords:
[N] dev-games/KXL (1.1.7-r2): Development Library for making games for X
[N] dev-games/cardpics (0.4): set of free cards sets
...
Found 798 matches.


Not installed but in /etc/portage/package.accept_keywords:
[N] dev-games/KXL (1.1.7-r2): Development Library for making games for X
[N] dev-games/cardpics (0.4): set of free cards sets
...
Found 1025 matches.


Expected Results:  
The atom "*games*/*" is redundant only if all installed matched packages are stable. (No change by removing atom)

The atom "*games*/*" is "not installed" only if no matched packages are installed.
Comment 1 Martin Väth 2011-01-29 19:40:19 UTC
This is expected and correct behavior:

The package dev-games/KXL (and many others) are unmasked by an entry
in package.accept_keywords although they are not installed and although
it would not be necessary to unmask them; so your mask is indeed redundant
for all these packages.

Note that eix tests on a per-package basis, i.e. eix does not care whether
you used one or ten lines to unmask packages; for instance the two lines
  <dev-games/KXL-1.1.7-r2
  >=dev-games/KXL-1.1.7-r2
or
  dev-games/KXL
would produce identical output. Redundancy tests on a per-line basis of
/etc/portage/package.* are not compatible with tests on a per-package basis
which eix does; hence, they are not (and never will be) supported by eix.

As a solution of your problem, since obviously you decided to consider
your *games*/* entry not redundant (although it is in a sense),
I suggest that you create a /etc/portage/package.nowarn file or directory
and add there the line

*games*/* no_change in_keywords

This will prevent the "false" (in your opinion) positives but will still
give you a warning about duplicate unmasking if you have another entry like
dev-games/KXL
in your /etc/portage/package.accept_keywords.
Comment 2 Alexander Weber 2011-01-30 09:02:26 UTC
Thanks, the "nowarn" Option solved the problem for me.
Comment 3 Martin Väth 2011-01-30 12:09:00 UTC
I am aware that the solution is not perfect: The package-based strategy of
eix has many disadvantages, but the line-based strategy does not fit into eix;
it would require an implementation rather independent of eix.
Thus, I close this bug as CANTFIX.
Comment 4 Martin Väth 2011-02-13 14:25:45 UTC
*** Bug 354723 has been marked as a duplicate of this bug. ***
Comment 5 Martin Väth 2011-06-16 16:19:48 UTC
*** Bug 371855 has been marked as a duplicate of this bug. ***