LinuxSir.cn,穿越时空的Linuxsir!

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

New USE defaults in the making Baselayout changes

[复制链接]
发表于 2006-1-16 10:58:12 | 显示全部楼层 |阅读模式
New USE defaults in the making

For some packages portage has auto-use entries, which means that unless you explicitly override a USE flag it will be enabled after emerging a package and disabled after unmerging it. Example: after "emerge sqlite" the sqlite flag will show up as enabled in "emerge info" and "emerge -vp" of something that has sqlite in iuse unless you have "-sqlite" or "-*" in USE in make.conf. If you unmerge sqlite the USE flag will show up as disabled again (unless you have sqlite in USE in make.conf of course).

This has caused some annoyances as USE flags tend to "randomly" jump when a new package triggers auto-use (either because you emerged or unmerged it or because the package.use file in the tree was edited). Many bugs have been filed, the general consensus is to phase out auto-use.

The change will happen in one of the next Portage 2.1 releases - it is in the tree and marked ~ARCH on almost all arches. "Stable" users will stay unaffected for some time since Portage 2.0.x will not change its behaviour, but upgrades can and will change USE flags. If you just upgraded to a portage 2.1 release you will probably want to look at the "emerge -DuvpN world" output and add flags that you want to keep enabled to make.conf if they show up as "-foo*".

Baselayout changes

The Gentoo baselayout team is pleased to release baselayout-1.12.0_pre14 to the eagerly awaiting public. Here's a summary of the major changes since 1.11:

    * Network backgrounding support from wpa_supplicant, ifplugd and netplug with service dependency restart -- Typically ifplugd is used to monitor ethernet cable being in/out and start/stop the network service accordingly, along with the services depending on that network service. The problem was that when ifplugd re-started the network service it didn't restart the services it stopped! Now ifplugd and netplug support have been merged into baselayout, we have more direct control and can remember which services were stopped by the network service so we can re-start them. wpa_supplicant can now do this too.
    * Separate network configuration per interface -- Each interface is now able to have its own resolv.conf and default route. We also prioritize wired over wireless and merge resolv.confs together. This works great for roaming laptop users.
    * Interactive startup -- Do you have a service that causes serious issues when booting? You should not, but if you do then you can now choose to start, skip, continue or drop to shell for each service interactively. Using generic stty and shell calls we do this in a non-blocking way without the need for a daemon.
    * Parallel startup/shutdown improvements -- Parallel startup and shutdown didn't really do what it claimed to in previous releases, but now it's very parallel and much faster than before. Which leads us onto ....
    * Improved service dependency ordering (albeit slower) -- Thanks to parallel startup, we found that our service ordering was totally wrong. So we had to re-write it entirely. So far it's in its fourth re-write using a topological sort written in bash and has been doing a very good job for around three months now so we think we've finally cracked it.
    * Service daemon status checks -- Services that launch daemons via start-stop-daemon now ensure that they really start instead of start - become daemon - die due to invalid config fooling rc into thinking they have started. Also, if you check a service status we check if the daemon is still running or not. If not then we stop the service and dependencies. We also really stop the service, which fixes an issue where you start cups, re-emerge cups and then it cannot stop or restart.
发表于 2006-1-16 12:36:39 | 显示全部楼层
早就瞅着Separate network configuration per interface了,这样我的laptop就可以很方便的在不同的地方使用不同的网络接口了。
回复 支持 反对

使用道具 举报

发表于 2006-1-16 16:55:11 | 显示全部楼层
莫非使用gentoo的都是英语通?
回复 支持 反对

使用道具 举报

发表于 2006-1-18 05:55:43 | 显示全部楼层
Post by 食古不化
莫非使用gentoo的都是英语通?

用gentoo最好还是把英语练一练,因为一是gentoo非常非常需要读文档,二来gentoo新手遇到的所有问题在forums.gentoo.org几乎都可以找到答案。hehe,我觉得forums.gentoo.org是gentoo镇兔之宝。
回复 支持 反对

使用道具 举报

发表于 2006-1-18 13:00:19 | 显示全部楼层
对于英语使用大家可能都有些感触。我个人觉得,推广标准汉语是每个中国人义不容辞的责任。
回复 支持 反对

使用道具 举报

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

本版积分规则

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