ということで mauroさんにスポンサーしていただき、Debian Official に入りました。thx!
#601996: + patch
#601996 で file overwrite の対処として Conflicts を使ったけど、他のバグ #601980 #601991 #601993 の対処を見ると、Replaces と Breaks を使っている。ということで Debian Policy Manual を再確認。
Normally, Breaks should be used instead of Conflicts since Conflicts imposes a stronger restriction on the ordering of package installation or upgrade and can make it more difficult for the package manager to find a correct solution to an upgrade or installation problem. Breaks should be used
* when moving a file from one package to another (see Overwriting files and replacing packages - Replaces, Section 7.6),
* when splitting a package (a special case of the previous one), or
* when the breaking package exposes a bug in or interacts badly with particular versions of the broken package.
[7.4 Conflicting binary packages - Conflictsより引用]
ということでパッケージ間のファイル移動には Conflicts を使うべきではなく Breaks を使うべき、とのこと。
なお、
Many of the cases where Breaks should be used were previously handled with Conflicts because Breaks did not yet exist. Many Conflicts fields should now be Breaks. See Conflicting binary packages - Conflicts, Section 7.4 for more information about the differences.
[7.3 Packages which break other packages - Breaksより引用]
という事情もあったようだ。
#602636 は tar 1.24-1 の問題(#602184)で、base.tgz が壊れてたようだ。
% tar tvfz /var/cache/pbuilder/base.tgz | lv : drwxr-xr-x root/root 0 2010-05-30 03:14 dev/ -rw-rw---- root/disk 0 2010-05-19 21:35 dev/ram0 -rw-rw---- root/disk 0 2010-05-19 21:35 dev/loop3 -rw-rw---- root/disk 0 2010-05-19 21:35 dev/loop5 -rw------- root/tty 0 2010-05-19 21:35 dev/console -rw-rw-rw- root/root 0 2010-05-19 21:35 dev/zero -rw-rw-rw- root/root 0 2010-05-19 21:35 dev/random drwxr-xr-x root/root 0 2010-05-30 02:53 dev/pts/ -rw------- root/tty 0 2010-05-19 21:35 dev/tty0 -rw-rw-rw- root/root 0 2010-11-08 09:59 dev/null :
なるほどたしかにデバイスファイルがおかしなことに...。ということで pbuilder --create して作り直した。
% tar tvfz /var/cache/pbuilder/base.tgz | lv : drwxr-xr-x root/root 0 2010-11-13 03:18 dev/ brw-rw---- root/disk 1,0 2010-11-12 21:07 dev/ram0 brw-rw---- root/disk 7,3 2010-11-12 21:07 dev/loop3 brw-rw---- root/disk 7,5 2010-11-12 21:07 dev/loop5 crw------- root/tty 5,1 2010-11-12 21:07 dev/console crw-rw-rw- root/root 1,5 2010-11-12 21:07 dev/zero crw-rw-rw- root/root 1,8 2010-11-12 21:07 dev/random drwxr-xr-x root/root 0 2010-11-13 03:18 dev/pts/ crw------- root/tty 4,0 2010-11-12 21:07 dev/tty0 crw-rw-rw- root/root 1,3 2010-11-12 21:07 dev/null :
DPMS で
xset s off xset -dpms
してるのにモニタが省電力になる、と書いたけど、よく見てみると省電力は無効なんだけどスクリーンセーバが効いてる、の間違いだった。xset s off した後は
% xset q : Screen Saver: prefer blanking: yes allow exposures: yes timeout: 0 cycle: 600 :
となっててスクリーンセーバが無効なんだけど、いつの間にか
% xset q : Screen Saver: prefer blanking: yes allow exposures: yes timeout: 600 cycle: 600 :
に戻ってる。はて。何のタイミング?
linuxデスクトップ環境をたったの3ステップで高速化する方法より。Debian では Alternative To The "200 Lines Kernel Patch That Does Wonders" Which You Can Use Right Away にある Ubuntu の方法を試してみる。zsh 使ってるので ~/.bashrc の代わりに ~/.zshrc に記載する以外は一緒。設定後、VMware 中の Windows での動画再生の音飛びがかなり軽減された。
ところで Debian, Ubuntu と、何かわからないけどその他の違いってなんだろう。最初、/sys/fs/cgroup と /dev/cgroup の違いかと思ったけど、
please consider cherry-picking the patch to mount cgroupfs at /sys/fs/cgroup [1]. This patch will be in upstream 2.6.36 and has been acked by the kernel cgroup and libcgroup maintainer.
Having it in the default Debian kernel would simplify running systemd, which uses cgroups to monitor processes.
Without this patch, the cgroupfs for systemd will be mounted at /cgroup and it would be preferable to not introduce another toplevel directory.
[#595964 - Please cherry-pick patch to mount cgroupfs at /sys/fs/cgroupより引用]
とあるように、kernel 2.6.36 またはそこのパッチが当たってる状態で systemd が動いているのが条件? 試しにそのパッチが取り込まれている 2.6.36-1~experimental.1 にしてみたけど、
# ls -la /sys/fs/cgroup total 0 drwxr-xr-x 2 root root 0 Nov 22 21:38 . drwxr-xr-x 5 root root 0 Nov 22 21:37 .. # mkdir -p /sys/fs/cgroup/cpu mkdir: cannot create directory `/sys/fs/cgroup/cpu': No such file or directory #
となってしまって駄目。さすがに systemd (systemd-sysv) は sysvinit を消さないと入れられなくて怖すぎるので断念。
/sys/fs/cgroup vs /dev/cgroup は別に systemid とか関係なくて、パスちょっと変えればいいらしい。
mkdir -m 0700 /sys/fs/cgroup/cpu/user/$$ echo $$ > /sys/fs/cgroup/cpu/user/$$/tasks mount -t cgroup cgroup /sys/fs/cgroup/cpu -o cpu mkdir -m 0777 /sys/fs/cgroup/cpu/user
を
mkdir -m 0700 /sys/fs/cgroup/user/$$ echo $$ > /sys/fs/cgroup/user/$$/tasks mount -t cgroup cgroup /sys/fs/cgroup -o cpu mkdir -p -m 0777 /sys/fs/cgroup/user
に変える。cpu ディレクトリをカットすれば OK。どこでそういう違いが出てくるのか、ドキュメント見てもよくわからん。
前 | 2010年 11月 |
次 | ||||
日 | 月 | 火 | 水 | 木 | 金 | 土 |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
[amd64 | audacious | comp | debian | gkrelluim | kip | misc | movie | research | rime | unicon | vdr | work | えふえふ]
書いてる人: dai
パッチ等(無保証)