LinuxSir.cn,穿越时空的Linuxsir!

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

全局USE標記再問

[复制链接]
发表于 2011-7-3 08:51:39 | 显示全部楼层 |阅读模式
更新系統,發現
  1. [ebuild   R    ]  net-libs/xulrunner-2.0.1-r1  USE="alsa crashreporter dbus ipc libnotify startup-notification webm            
  2. -custom-optimization -debug -gconf -hardened% -system-sqlite -wifi" 0 kB
复制代码

換而言之,重新編譯xulrunner僅僅是因為USE標記的增刪,而這些增刪的標記並沒有寫入make.conf。想問問,是不是一個包,它的USE標記是否是穩定的?也即能不能就以目前系統中xulrunner的USE標記寫入make.conf,之後就不會發生類似情況。

另外,像doc、test這樣的標記是不是可以直接 -doc -test?
標記doc和包的man有關係嗎?
发表于 2011-7-3 12:54:09 | 显示全部楼层
如果运行emerge时使用了--newuse (-N),emerge会要求重新编译/安装任何已安装的,ebuild中USE发生变化的软件包,无论这些增加/减少了的USE是否在make.conf/package.use/profile中被启用。只要你使用了-N,xulrunner ebuild中任何USE增加/减少都会导致重新编译。
  1.        --newuse (-N)
  2.               Tells emerge to include installed packages where USE flags  have  changed  since  compilation.
  3.               This option also implies the --selective option.  USE flag changes include:
  4.               A  USE  flag  was  added to a package.  A USE flag was removed from a package.  A USE flag was
  5.               turned on for a package.  A USE flag was turned off for a package.
  6.               USE flags may be toggled by your profile as well as your USE and package.use settings. If  you
  7.               would  like to skip rebuilds for which disabled flags have been added to or removed from IUSE,
  8.               see the related --reinstall=changed-use option.
复制代码

于--newuse相似的--reinstall changed-use则只在已启用的USE flag发生变化时要求重新编译,可以考虑用该选项替代--newuse。

不过,有些情况下某些未被启用USE flag被去除是因为该USE flag所代表的编译选项被默认启用(通常是为了解决bug),这种情况下使用--newuse较--reinstall changed-use更为合理。
回复 支持 反对

使用道具 举报

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

本版积分规则

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