* [gentoo-user] eix settings for searching all layman overlays @ 2013-07-07 16:52 Thanasis 2013-07-07 20:58 ` Neil Bothwick 0 siblings, 1 reply; 12+ messages in thread From: Thanasis @ 2013-07-07 16:52 UTC (permalink / raw To: gentoo-user I would like to use eix and (updating it via cron job) be able to search locally *all* layman overlays. What commands and settings should I use? ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] eix settings for searching all layman overlays 2013-07-07 16:52 [gentoo-user] eix settings for searching all layman overlays Thanasis @ 2013-07-07 20:58 ` Neil Bothwick 2013-07-08 7:56 ` Thanasis 2013-07-08 8:12 ` Daniel Pielmeier 0 siblings, 2 replies; 12+ messages in thread From: Neil Bothwick @ 2013-07-07 20:58 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 354 bytes --] On Sun, 07 Jul 2013 19:52:31 +0300, Thanasis wrote: > I would like to use eix and (updating it via cron job) be able to search > locally *all* layman overlays. > What commands and settings should I use? LOCAL_LAYMAN=/path/to/layman/storage eix-remote -q update -- Neil Bothwick The facts, although interesting, are usually irrelevant. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] eix settings for searching all layman overlays 2013-07-07 20:58 ` Neil Bothwick @ 2013-07-08 7:56 ` Thanasis 2013-07-08 8:02 ` Alan McKinnon 2013-07-08 8:12 ` Daniel Pielmeier 1 sibling, 1 reply; 12+ messages in thread From: Thanasis @ 2013-07-08 7:56 UTC (permalink / raw To: gentoo-user; +Cc: Neil Bothwick on 07/07/2013 11:58 PM Neil Bothwick wrote the following: > On Sun, 07 Jul 2013 19:52:31 +0300, Thanasis wrote: > >> I would like to use eix and (updating it via cron job) be able to search >> locally *all* layman overlays. >> What commands and settings should I use? > > LOCAL_LAYMAN=/path/to/layman/storage eix-remote -q update > > I don't have a local overlay, and the default path for layman overlays is /var/lib/layman/<overlay>, so I guess I don't have to set the LOCAL_LAYMAN variable, do I? The problem is that after updating (by running the command eix-remote update). I still don't get the results expected when doing a search, eg: # eix -l games-engines/spring No matches found. whereas it should list that there is a match in the sabayon (layman) overlay (though not installed) like: spring-88.0 ~amd64 ~x86 because, at least, the above is what I get by using the http://gpo.zugaina.org/ search at http://gpo.zugaina.org/games-engines/spring So, I guess, I must be missing something in my eix configuration, don't I? Besides, under /etc I only have /etc/eixrc/00-eixrc which is the default (all lines in it are comments). ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] eix settings for searching all layman overlays 2013-07-08 7:56 ` Thanasis @ 2013-07-08 8:02 ` Alan McKinnon 0 siblings, 0 replies; 12+ messages in thread From: Alan McKinnon @ 2013-07-08 8:02 UTC (permalink / raw To: gentoo-user On 08/07/2013 09:56, Thanasis wrote: > on 07/07/2013 11:58 PM Neil Bothwick wrote the following: >> On Sun, 07 Jul 2013 19:52:31 +0300, Thanasis wrote: >> >>> I would like to use eix and (updating it via cron job) be able to search >>> locally *all* layman overlays. >>> What commands and settings should I use? >> >> LOCAL_LAYMAN=/path/to/layman/storage eix-remote -q update >> >> > > I don't have a local overlay, and the default path for layman overlays > is /var/lib/layman/<overlay>, so I guess I don't have to set the > LOCAL_LAYMAN variable, do I? > > The problem is that after updating (by running the command eix-remote > update). I still don't get the results expected when doing a search, eg: > > # eix -l games-engines/spring > No matches found. > > whereas it should list that there is a match in the sabayon (layman) > overlay (though not installed) like: > > spring-88.0 ~amd64 ~x86 > > because, at least, the above is what I get by using the > http://gpo.zugaina.org/ search at > http://gpo.zugaina.org/games-engines/spring > > So, I guess, I must be missing something in my eix configuration, don't > I? Besides, under /etc I only have /etc/eixrc/00-eixrc which is the > default (all lines in it are comments). > You are trying to do something the software does not support. eix will index your *installed* overlays, not all possible overlays that could be out there. There is no way I know of to do that, and even if there was a way, it would be a rather dumb idea. That's what Google is for. -- Alan McKinnon alan.mckinnon@gmail.com ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] eix settings for searching all layman overlays 2013-07-07 20:58 ` Neil Bothwick 2013-07-08 7:56 ` Thanasis @ 2013-07-08 8:12 ` Daniel Pielmeier 2013-07-08 9:12 ` Thanasis 1 sibling, 1 reply; 12+ messages in thread From: Daniel Pielmeier @ 2013-07-08 8:12 UTC (permalink / raw To: gentoo-user 2013/7/7 Neil Bothwick <neil@digimed.co.uk>: > On Sun, 07 Jul 2013 19:52:31 +0300, Thanasis wrote: > >> I would like to use eix and (updating it via cron job) be able to search >> locally *all* layman overlays. >> What commands and settings should I use? > > LOCAL_LAYMAN=/path/to/layman/storage eix-remote -q update > A good explaination on how to use eix-remote can be found here [1] and as usual in the man pages. [1] http://klaig.blogspot.de/2013/04/how-to-search-super-quickly-in-all.html -- Regards Daniel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] eix settings for searching all layman overlays 2013-07-08 8:12 ` Daniel Pielmeier @ 2013-07-08 9:12 ` Thanasis 2013-07-08 18:39 ` [gentoo-user] " Martin Vaeth 0 siblings, 1 reply; 12+ messages in thread From: Thanasis @ 2013-07-08 9:12 UTC (permalink / raw To: gentoo-user; +Cc: Daniel Pielmeier on 07/08/2013 11:12 AM Daniel Pielmeier wrote the following: > 2013/7/7 Neil Bothwick <neil@digimed.co.uk>: >> On Sun, 07 Jul 2013 19:52:31 +0300, Thanasis wrote: >> >>> I would like to use eix and (updating it via cron job) be able to search >>> locally *all* layman overlays. >>> What commands and settings should I use? >> >> LOCAL_LAYMAN=/path/to/layman/storage eix-remote -q update >> > > A good explaination on how to use eix-remote can be found here [1] and > as usual in the man pages. > > [1] http://klaig.blogspot.de/2013/04/how-to-search-super-quickly-in-all.html > Following the above, I see that the way ti search for remote (not locally installed overlays) is to use the -R option. From eix (app-portage/eix-0.28.5) man page: -R, --remote Uses the value of EIX_REMOTE1 as cache file name. Use this option if you want to see what eix-remote produced. You can make this option the default by setting REMOTE_DEFAULT=1. So in /etc/eixrc/00-eixrc I have set KEEP_VIRTUALS=true REMOTE_DEFAULT=1 and now when doing a search I get results from all layman overlays (either installed or not). I am not sure whether the KEEP_VIRTUALS setting is needed though, because the man page is *not* clear to me. Besides, in the bugs section of the man page, it says: The previous default KEEP_VIRTUALS=true used to confuse people. However, with the new default, nobody will find out that this feature exists. :( ^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: eix settings for searching all layman overlays 2013-07-08 9:12 ` Thanasis @ 2013-07-08 18:39 ` Martin Vaeth 2013-07-09 9:28 ` Thanasis 0 siblings, 1 reply; 12+ messages in thread From: Martin Vaeth @ 2013-07-08 18:39 UTC (permalink / raw To: gentoo-user Thanasis <thanasis@asyr.hopto.org> wrote: > > So in /etc/eixrc/00-eixrc I have set > KEEP_VIRTUALS=true > REMOTE_DEFAULT=1 With the current default setting of separate databases for the local eix cache (normally /var/cache/eix/portage.eix) and for the remote eix cache (/var/cache/eix/remote.eix), KEEP_VIRTUALS=true makes no sense: The purpose of KEEP_VIRTUALS=true was to update the local cache data without changing the remote data with eix-update (if both are in the same file). However, especially if you set REMOTE_DEFAULT you should call eix-remote add1 after every eix-sync so that your local eix cache is copied into the remote eix cache (see the manpage how to do this automatically with eix-sync). ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: eix settings for searching all layman overlays 2013-07-08 18:39 ` [gentoo-user] " Martin Vaeth @ 2013-07-09 9:28 ` Thanasis 2013-07-10 6:38 ` Martin Vaeth 0 siblings, 1 reply; 12+ messages in thread From: Thanasis @ 2013-07-09 9:28 UTC (permalink / raw To: gentoo-user; +Cc: Martin Vaeth on 07/08/2013 09:39 PM Martin Vaeth wrote the following: > Thanasis <thanasis@asyr.hopto.org> wrote: >> >> So in /etc/eixrc/00-eixrc I have set >> KEEP_VIRTUALS=true >> REMOTE_DEFAULT=1 > > With the current default setting of separate databases for the > local eix cache (normally /var/cache/eix/portage.eix) and > for the remote eix cache (/var/cache/eix/remote.eix), > KEEP_VIRTUALS=true makes no sense: > > The purpose of KEEP_VIRTUALS=true was to update the local > cache data without changing the remote data with eix-update > (if both are in the same file). > > However, especially if you set REMOTE_DEFAULT you should call > eix-remote add1 > after every eix-sync so that your local eix cache is > copied into the remote eix cache > (see the manpage how to do this automatically with eix-sync). > Thanks, Martin. So, if I understand correctly, I _don't_ need any settings, and I should remove both KEEP_VIRTUALS and REMOTE_DEFAULT, and just use the -R option when I want to search the remote cache and no option for searching the local (installed) overlays and portage, is that correct? ^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: eix settings for searching all layman overlays 2013-07-09 9:28 ` Thanasis @ 2013-07-10 6:38 ` Martin Vaeth 2013-07-10 7:37 ` Thanasis 0 siblings, 1 reply; 12+ messages in thread From: Martin Vaeth @ 2013-07-10 6:38 UTC (permalink / raw To: gentoo-user Thanasis <thanasis@asyr.hopto.org> wrote: > > So, if I understand correctly, I _don't_ need any settings, and I should > remove both KEEP_VIRTUALS and REMOTE_DEFAULT, and just use the -R option You don't need KEEP_VIRTUALS. Whether you prefer REMOTE_DEFAULT or not is up to you. This has nothing to do with the necessity to call "eix-remote add" after eix-sync: Otherwise your local portage tree will not get "pushed" to the remote database /var/cache/eix/remote.eix If you do not use REMOTE_DEFAULT, it is only less likely that you will notice this since you will then see the outdated local data only if you use -R ;) ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: eix settings for searching all layman overlays 2013-07-10 6:38 ` Martin Vaeth @ 2013-07-10 7:37 ` Thanasis 2013-07-11 7:50 ` Martin Vaeth 0 siblings, 1 reply; 12+ messages in thread From: Thanasis @ 2013-07-10 7:37 UTC (permalink / raw To: gentoo-user; +Cc: Martin Vaeth on 07/10/2013 09:38 AM Martin Vaeth wrote the following: > Thanasis <thanasis@asyr.hopto.org> wrote: >> >> So, if I understand correctly, I _don't_ need any settings, and I should >> remove both KEEP_VIRTUALS and REMOTE_DEFAULT, and just use the -R option > > You don't need KEEP_VIRTUALS. > Whether you prefer REMOTE_DEFAULT or not is up to you. > > This has nothing to do with the necessity to call "eix-remote add" > after eix-sync: Otherwise your local portage tree will not get > "pushed" to the remote database /var/cache/eix/remote.eix > > If you do not use REMOTE_DEFAULT, it is only less likely > that you will notice this since you will then see the outdated > local data only if you use -R ;) > Martin, I appreciate your help, but I am still confused about the whole <eix> thing. My goal is to be able to query both local and remote data with one command. To this end, what should the simplest configuration settings be, and in relation to those settings, what would the sequence of commands be for updating and then querying? ^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: eix settings for searching all layman overlays 2013-07-10 7:37 ` Thanasis @ 2013-07-11 7:50 ` Martin Vaeth 2013-07-11 13:52 ` Thanasis 0 siblings, 1 reply; 12+ messages in thread From: Martin Vaeth @ 2013-07-11 7:50 UTC (permalink / raw To: gentoo-user Thanasis <thanasis@asyr.hopto.org> wrote: > on 07/10/2013 09:38 AM Martin Vaeth wrote the following: >> >> This has nothing to do with the necessity to call "eix-remote add" >> after eix-sync With eix-0.29.0 which just entered the tree, eix-sync will by default do this for you, so you usually do not need to care about. > My goal is to be able to query both local and remote data with one > command. Either you use eix -R ... (or eix -Z ...) or, alternatively, you set REMOTE_DEFAULT=1 (or -2) to avoid typing -R/-Z. (You have to type -R/-Z then if you want *only* a local query). > what would the sequence of commands be for updating With >=eix-0.29.0, if you use eix-sync, this will completely care about updating the local data. If you call eix-update manually (e.g. after changing some local overlay manually) you should call afterwards eix-remote add1 (and/or eix-remote add2, depending on whether you use -R or -Z, i.e. depending which remote data you use). For updating the remote data you just use as usual eix-remote update1 (and/or eix-remote update2), If you want to do the latter automatically with every eix-sync, put e.g. the following lines into your /etc/eix-sync.conf: @StatusInfo Downloading remote1 @eix-remote fetch1 (Of course, you can replace 1 by 2 and/or add corresponding lines for 2 to fetch the alternative remote data). (In /etc/eix-sync.conf it suffices to call "eix-remote fetch" because the "eix-remote add" is called automatically after the call of eix-update). ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: eix settings for searching all layman overlays 2013-07-11 7:50 ` Martin Vaeth @ 2013-07-11 13:52 ` Thanasis 0 siblings, 0 replies; 12+ messages in thread From: Thanasis @ 2013-07-11 13:52 UTC (permalink / raw To: gentoo-user; +Cc: Martin Vaeth on 07/11/2013 10:50 AM Martin Vaeth wrote the following: > Thanasis <thanasis@asyr.hopto.org> wrote: >> on 07/10/2013 09:38 AM Martin Vaeth wrote the following: >>> >>> This has nothing to do with the necessity to call "eix-remote add" >>> after eix-sync > > With eix-0.29.0 which just entered the tree, eix-sync will > by default do this for you, so you usually do not need to > care about. I have eix-0.29.0 > >> My goal is to be able to query both local and remote data with one >> command. > > Either you use eix -R ... (or eix -Z ...) or, alternatively, > you set REMOTE_DEFAULT=1 (or -2) to avoid typing -R/-Z. > (You have to type -R/-Z then if you want *only* a local query). > >> what would the sequence of commands be for updating > > With >=eix-0.29.0, if you use eix-sync, this will completely > care about updating the local data. > > If you call eix-update manually (e.g. after changing some > local overlay manually) you should call afterwards > eix-remote add1 (and/or eix-remote add2, depending on whether > you use -R or -Z, i.e. depending which remote data you use). > > For updating the remote data you just use as usual > eix-remote update1 (and/or eix-remote update2), > > If you want to do the latter automatically with every eix-sync, > put e.g. the following lines into your /etc/eix-sync.conf: > > @StatusInfo Downloading remote1 > @eix-remote fetch1 > > (Of course, you can replace 1 by 2 and/or add corresponding > lines for 2 to fetch the alternative remote data). > > (In /etc/eix-sync.conf it suffices to call "eix-remote fetch" > because the "eix-remote add" is called automatically > after the call of eix-update). > So in /etc/eix-sync.conf I've set the following 2 lines @StatusInfo Downloading remote1 @eix-remote fetch1 and the following 1 line in /etc/eixrc/00-eixrc REMOTE_DEFAULT=1 (Thanks for your patience Martin) ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2013-07-11 13:52 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-07-07 16:52 [gentoo-user] eix settings for searching all layman overlays Thanasis 2013-07-07 20:58 ` Neil Bothwick 2013-07-08 7:56 ` Thanasis 2013-07-08 8:02 ` Alan McKinnon 2013-07-08 8:12 ` Daniel Pielmeier 2013-07-08 9:12 ` Thanasis 2013-07-08 18:39 ` [gentoo-user] " Martin Vaeth 2013-07-09 9:28 ` Thanasis 2013-07-10 6:38 ` Martin Vaeth 2013-07-10 7:37 ` Thanasis 2013-07-11 7:50 ` Martin Vaeth 2013-07-11 13:52 ` Thanasis
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox