* [gentoo-user] eix-test-obsolete problem
@ 2008-03-07 2:50 Shaochun Wang
2008-03-07 9:46 ` Neil Bothwick
0 siblings, 1 reply; 4+ messages in thread
From: Shaochun Wang @ 2008-03-07 2:50 UTC (permalink / raw
To: gentoo user
I have an local overlay, which contains some ebuild written by myself or
copied from bugzilla.
When I execute eix-test-obsolete, it display the following wierd thing:
Installed packages with a version not in the database (or masked):
[I] app-misc/beagle (0.3.3[?]@02/27/08): Search tool that ransacks
your personal information space to find whatever you're looking for
[I] net-ftp/proftpd (1.3.1[?]@02/20/08): An advanced and very
configurable FTP server.
[I] x11-misc/qterm (0.4.1[?]@03/07/08): QTerm is a BBS client in Linux.
[1] /usr/local/portage
And I also notice that when I execute command update-eix, the following is printed:
Reading Portage settings ..
Building database (/var/cache/eix) ..
[0] "gentoo" /usr/portage/ (cache: metadata)
Reading 100%
[1] "" /usr/portage/local/layman/sajinet (cache: none)
Reading 100%
[2] "berkano" /usr/portage/local/layman/berkano (cache: none)
Reading 100%
[3] "" /usr/local/portage (cache: none)
Reading 100%
Applying masks ..
Database contains 12454 packages in 152 categories.
It seems that there is no cache in the portage overlays, so update-eix
can't get the package information in these overlay.
What can I do to get the local overlay picked by eix?
--
Shaochun Wang <scwang@ios.ac.cn>
Jabber: fungusw@jabber.org
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] eix-test-obsolete problem
2008-03-07 2:50 [gentoo-user] eix-test-obsolete problem Shaochun Wang
@ 2008-03-07 9:46 ` Neil Bothwick
0 siblings, 0 replies; 4+ messages in thread
From: Neil Bothwick @ 2008-03-07 9:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 802 bytes --]
On Fri, 7 Mar 2008 10:50:57 +0800, Shaochun Wang wrote:
> It seems that there is no cache in the portage overlays, so update-eix
> can't get the package information in these overlay.
That's normal. eix still gets the information, by reading the filesystem.
The cache is simply a way of speeding u this process for large trees.
> What can I do to get the local overlay picked by eix?
It should already, if you search for a package that has an ebuild in the
overlay, it should display it, along with the name of the overlay.
% eix openchrome
* x11-drivers/xf86-video-openchrome [1]
Available versions: 0.2.901 {dri}
Description: VIA unichrome graphics driver
[1] "digimed" /mnt/portage/local
--
Neil Bothwick
Modesty Becomes You. Try It More Often.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] eix-test-obsolete problem
[not found] <a4AYz-4S4-9@gated-at.bofh.it>
@ 2008-03-07 17:06 ` Vaeth
2008-03-10 7:32 ` Shaochun Wang
0 siblings, 1 reply; 4+ messages in thread
From: Vaeth @ 2008-03-07 17:06 UTC (permalink / raw
To: gentoo-user
> Installed packages with a version not in the database (or masked):
>
> [I] app-misc/beagle (0.3.3[?]@02/27/08)
^
This is your problem: eix is not able to detect from which repository
this version was installed. The reason is that you have not given your
overlay a name.
Some time ago, eix was able to guess the repository by means of the
information in /var/db/*/*/environment.bz2, but new portage versions
do not store that information in this file anymore.
The clean solution of your problem is to give your overlay a name
(i.e. to create a "profile" subdirectory in your overlay and store
your name in a new file "profile/repo_name") and then to reemerge
all packages from the overlay so that the name is also stored in
the /var/db database. (Instead of reemerging you can also hack
the database manually and create the files /var/db/*/*/repository
with the corresponding overlay name in it; however, I give no
guarantee that this will not have unexpected side effects...).
If you want that eix-test-obsolete just ignores the repository
(i.e. that 0.3.3[?] is "found" in the database even if the version
in the database is from a possibly different overlay), set
NONEXISTENT_IF_OTHER_OVERLAY='false'
in /etc/eixrc. However, I would not recommend this.
The output of update-eix is as expected:
> [3] "" /usr/local/portage (cache: none)
^^ ^^^^
This is empty, because you have not ^^^^
named your overlay yet ^^^^
^^^^
This means that the cache method "none" is used
(man eix for details) which is the default for
overlays unless you set something special.[*]
[*] With eix-0.12.0 the default has changed to a new cache method
which appears superior (but has some security risks).
The previous cache method "none" was renamed.
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] eix-test-obsolete problem
2008-03-07 17:06 ` Vaeth
@ 2008-03-10 7:32 ` Shaochun Wang
0 siblings, 0 replies; 4+ messages in thread
From: Shaochun Wang @ 2008-03-10 7:32 UTC (permalink / raw
To: gentoo-user
Thanks very much. It works.
BTW, there is a trivial error in you reply as following
On Fri, Mar 07, 2008 at 06:06:02PM +0100, Vaeth wrote:
> your name in a new file "profile/repo_name") and then to reemerge
^^
It should be profiles/repo_name
--
Shaochun Wang <scwang@ios.ac.cn>
Jabber: fungusw@jabber.org
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-10 7:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-07 2:50 [gentoo-user] eix-test-obsolete problem Shaochun Wang
2008-03-07 9:46 ` Neil Bothwick
[not found] <a4AYz-4S4-9@gated-at.bofh.it>
2008-03-07 17:06 ` Vaeth
2008-03-10 7:32 ` Shaochun Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox