LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 676|回复: 7

eix 找不到overlay里的包?

[复制链接]
发表于 2009-8-18 08:35:51 | 显示全部楼层 |阅读模式
我刚把portage cache换了sqlite:
http://en.gentoo-wiki.com/wiki/P ... he#Regenerate_Cache
eix-update也成功:
  1. $ sudo eix-update
  2. Password:
  3. Reading Portage settings ..
  4. Building database (/var/cache/eix) ..
  5. [0] "gentoo" /usr/portage/ (cache: sqlite)
  6.      Reading 100%
  7. [1] "gentoo-taiwan" /usr/local/portage/layman/gentoo-taiwan (cache: sqlite)
  8.      Reading 100%
  9. [2] "gentoo-china" /usr/local/portage/layman/gentoo-china (cache: sqlite)
  10.      Reading 100%
  11. [3] "desktop-effects" /usr/local/portage/layman/desktop-effects (cache: sqlite)
  12.      Reading 100%
  13. [4] "science" /usr/local/portage/layman/science (cache: sqlite)
  14.      Reading 100%
  15. [5] "sunrise" /usr/local/portage/layman/sunrise (cache: sqlite)
  16.      Reading 100%
  17. [6] "arcon" /usr/local/portage/layman/arcon (cache: sqlite)
  18.      Reading 100%
  19. [7] "emacs" /usr/local/portage/layman/emacs (cache: sqlite)
  20.      Reading 100%
  21. [8] "" /usr/local/portage (cache: sqlite)
  22.      Reading 100%
  23. Applying masks ..
  24. Calculating hash tables ..
  25. Writing database file /var/cache/eix ..
  26. Database contains 13767 packages in 153 categories.
复制代码

其实我不知道是不是这个的影响。但我跑eix的时候如果某个包只有overylay里有它就找不出来:
  1. $ eix alpine
  2. [i] mail-client/alpine
  3.      Available versions:  (~)2.00 {chappa doc ipv6 kerberos ldap nls onlyalpine passfile smime spell ssl threads topal}
  4.      Installed versions:  2.00[1](05:26:07 PM 08/17/2009)(ipv6 nls onlyalpine passfile smime spell ssl threads -chappa -doc -kerberos -ldap -topal -userland_BSD)
  5.      Homepage:            http://www.washington.edu/alpine/ http://staff.washington.edu/chappa/alpine/
  6.      Description:         alpine is an easy to use text-based based mail and news client
  7. [1] "gentoo-china" /usr/local/portage/layman/gentoo-china
  8. $ eix qq
  9. No matches found.
复制代码

这是用sqlite cache的bug?还是eix默认设定就是这样?
发表于 2009-8-18 09:00:54 | 显示全部楼层
在 /etc/eixrc 中添加一行:
OVERLAY_CACHE_METHOD=parse

重新eix-update试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-18 10:45:03 | 显示全部楼层
Post by zhou3345;2017427
在 /etc/eixrc 中添加一行:
OVERLAY_CACHE_METHOD=parse

重新eix-update试试。


parse在这里是什么意思?man eix里面解释不清不楚。只说因为不相信OVERLAY应该设为parse
  1. PORTDIR_CACHE_METHOD, OVERLAY_CACHE_METHOD  (string)
  2.               Set the type of the cache used by portage and for overlays.  PORTDIR_CACHE_METHOD defaults to metadata-flat, OVER‐
  3.               LAY_CACHE_METHOD to parse|ebuild*.

  4.               Security Warning: If  you  do  not  completely  trust  the  .ebuilds  in  your  overlays,  you  should  set  OVER‐
  5.               LAY_CACHE_METHOD=parse.

  6.               You might want to set temporarily OVERLAY_CACHE_METHOD=eix*::~ - as will be explained later, eix will then take by
  7.               default the overlay data from the previous eix database.

  8.               The available cache methods are described below.  You might want to specify a different cache method only for some
  9.               overlays.  This can be done with the following variables:
复制代码

....
  1. parse[#metadata-method]...
  2.               Get the information from the ebuilds, parsing it using some heuristics.  Hence, this method has no  security  risk
  3.               but  possibly  some  other problems.  For example, if variables are only set in eclasses, this method will not see
  4.               them.  Examples of problems with this method is missing SLOT information for  typical  ebuilds  from  kde-base  or
  5.               stupid  version  numbers  for  gcc cross-compilers.  This is the cache-method none from older eix versions (before
  6.               0.11.1).
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-8-18 11:01:29 | 显示全部楼层
我这里用不用没什么两样。
回复 支持 反对

使用道具 举报

发表于 2009-8-18 14:32:20 | 显示全部楼层
用 update-eix 试试看
回复 支持 反对

使用道具 举报

发表于 2009-8-18 14:54:02 | 显示全部楼层
为什么是eix-update ?我这里是用update-eix 运行一下就可以查询overlayer了。
回复 支持 反对

使用道具 举报

发表于 2009-8-18 15:50:09 | 显示全部楼层
Post by zzwzzw;2017561
为什么是eix-update ?我这里是用update-eix 运行一下就可以查询overlayer了。
  1. ~ # update-eix
  2. update-eix is a deprecated name since eix-0.17.0.
  3. Please use eix-update instead.
  4. Sleeping for 5 seconds...
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-8-18 17:05:31 | 显示全部楼层
Post by coderoar;2017581
  1. ~ # update-eix
  2. update-eix is a deprecated name since eix-0.17.0.
  3. Please use eix-update instead.
  4. Sleeping for 5 seconds...
复制代码


谢谢,原来我用了混合分支。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表