Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447686 - app-portage/eix: eix-test-obsolete : should validate /etc/portage/package.env/misc too
Summary: app-portage/eix: eix-test-obsolete : should validate /etc/portage/package.env...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-18 09:24 UTC by Toralf Förster
Modified: 2012-12-19 19:43 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 Toralf Förster gentoo-dev 2012-12-18 09:24:09 UTC
Today I found there package definition where the packages itself where removed long time ago.
Comment 1 Martin Väth 2012-12-18 19:47:44 UTC
What was the entry?
When I create here a dummy /etc/portage/package.env/misc with the content
  foo-bar/check
it is reported as expected with eix-test-obsolete.
Maybe the package name is still available in some of your overlays?
Comment 2 Toralf Förster gentoo-dev 2012-12-19 10:11:15 UTC
No, I just have Gentoo is repository and currently a local overlay containing:

# ls /usr/local/portage/*
/usr/local/portage/app-office:
lotus-meta

/usr/local/portage/media-video:
devede

/usr/local/portage/perl-gcpan:
Sysadm-Install

/usr/local/portage/profiles:
repo_name

/usr/local/portage/sci-misc:
boinc


The entry I had have in /etc/portage/package.env/misc was :

app-office/libreoffice    notest


and the package itself is not installed b/c I switched sometimes in tha past to app-office/libreoffice-bin
Comment 3 Martin Väth 2012-12-19 15:41:11 UTC
So it is not a removed package but just a package which you do not have installed. For such type of packages the test is intentionally switched off, because some people may want to keep entries in case they reinstall the package.

You can see this also in the output eix-test-obsolete:

Skipping check: uninstalled entries in /etc/portage/package.env

To switch on the test in a mild form, set e.g.

REDUNDANT_IF_IN_ENV='-some'

(in /etc/eixrc or ~/.eixrc or in the environment):
This value means that the package is output if it is not installed
but your entry in /etc/portage/package.env matches anyway.

For a stronger form of the test you might want to set even

REDUNDANT_IF_IN_ENV='some-uninstalled'

which gives even a warning if the entry matches *some* available but not installed version. (This makes only sense if you only specify exact version(s)
in /etc/portage/package.env).
Comment 4 Toralf Förster gentoo-dev 2012-12-19 18:41:01 UTC
ah ok.
But just to clarify it : I had libreoffice installed in the past, but unmergeded it in favour of emerging libreoffice-bin.
Comment 5 Toralf Förster gentoo-dev 2012-12-19 19:41:50 UTC
(In reply to comment #4)
> ah ok.
> But just to clarify it : I had libreoffice installed in the past, but
> unmergeded it in favour of emerging libreoffice-bin.

and it still skips although I set that variable :

n22 ~ #  eix-test-obsolete -H brief

No non-matching entries in /etc/portage/package.keywords.
No non-matching entries in /etc/portage/package.accept_keywords.
No non-matching entries in /etc/portage/package.mask.
No non-matching entries in /etc/portage/package.unmask.
No non-matching or empty entries in /etc/portage/package.use.
No non-matching or empty entries in /etc/portage/package.env.
No non-matching or empty entries in /etc/portage/package.license.
No non-matching or empty entries in /etc/portage/package.cflags.
The names of all installed packages are in the database.

No  redundant  entries in /etc/portage/package.{,accept_}keywords
No uninstalled entries in /etc/portage/package.{,accept_}keywords
No  redundant  entries in /etc/portage/package.mask
No uninstalled entries in /etc/portage/package.mask
No  redundant  entries in /etc/portage/package.unmask
No uninstalled entries in /etc/portage/package.unmask
Skipping check:  redundant  entries in /etc/portage/package.use
Skipping check: uninstalled entries in /etc/portage/package.use
Skipping check:  redundant  entries in /etc/portage/package.env
No uninstalled entries in /etc/portage/package.env
No  redundant  entries in /etc/portage/package.license
No uninstalled entries in /etc/portage/package.license
Skipping check:  redundant  entries in /etc/portage/package.cflags
Skipping check: uninstalled entries in /etc/portage/package.cflags
All installed versions of packages are in the database.

n22 ~ # grep some /etc/eixrc 
REDUNDANT_IF_IN_ENV='-some-uninstalled'
Comment 6 Toralf Förster gentoo-dev 2012-12-19 19:43:02 UTC
sry - resolved now