2009-07-03 (Fri)
_ [comp] privoxy 3.0.13 vs w3m
privoxy 3.0.13 にしてから、w3m でうまくアクセスできないサイトが出てくるようになった。strace で w3m を追ってみると、どうも読み込みで止まってるっぽい。これはもしかして Keep-Alive 関係?と思って privoxy の changelog を見てみると、
** Version 3.0.13 Beta **
:
- Added client-side keep-alive support.
やっぱり。古い config と 3.0.13 の config の diff を取ってみると、
keep-alive-timeout 300
というのが増えてる。こいつをコメントアウトしたところ、w3m で詰まることがなくなった。けど、w3m 以外でも使ってるわけだし…。とりあえず Keep-Alive しないように、HTTP リクエストで Connection: close を送ってやるように w3m のほうを変更。これで keep-alive-timeout を生かしたままで w3m が詰まらなくなった。
--- CVS/url.c.orig 2007-05-24 10:30:17.000000000 +0900
+++ CVS/url.c 2009-07-03 12:29:07.000000000 +0900
@@ -1291,6 +1291,8 @@ otherinfo(ParsedURL *target, ParsedURL *
Strcat_m_charp(s, "Accept-Encoding: ", AcceptEncoding, "\r\n", NULL);
Strcat_m_charp(s, "Accept-Language: ", AcceptLang, "\r\n", NULL);
+ Strcat_charp(s, "Connection: close\r\n");
+
if (target->host) {
Strcat_charp(s, "Host: ");
Strcat_charp(s, target->host);
けど、w3m は HTTP/1.0 クライアントなので本当は Connection: close というものがあること自体知らない。HTTP/1.0 クライアントであるにも関わらず、HTTP/1.1 のデフォルトである Keep-Alive 動作を行っている privoxy のほうの問題?
_ [debian] privoxy 3.0.13 変
ということで #535545 に送った。
2009-07-02 (Thu)
_ [debian][amd64] 続々々々々・ia32-libs 変?
ia32-apt-get 20 を入れたところ、
Preparing to replace ia32-apt-get 18 (using .../ia32-apt-get_20_all.deb) ...
Adding `diversion of /usr/bin/aptitude to /usr/bin/aptitude.real by ia32-apt-get'
Unpacking replacement ia32-apt-get ...
となって、aptitude もラッパに入れ替わった。で、
Ia32-apt-get inserts itself into the Debian package management rather intrusively if you let it. But you can limit the amount of damage it might do.
:Selecting ‘Libraries’ is the safe option alowing only 32bit libraries to be installed. You can recognize them by having a prefix of ‘ia32-‘ in their name.
と出たので Libraries を選んだ。でもって、
Inst ia32-libs [20] (1:3.0 Debian:4.3/transitional)
Inst ia32-libs-gtk [20] (1:3.0 Debian:4.3/transitional)
Remv ia32-apt-get [20]
Remv ia32-libs-tools [20]
となるのが邪魔くさいので、
/etc/apt/sources.list.d/ia32-apt-get-transitional.list
/etc/apt/sources.list.d/ia32-apt-get.amd64.ia32-apt-get-transitional.list
/etc/apt/sources.list.d/ia32-apt-get.i386.ia32-apt-get-transitional.list
の
deb [arch=i386] file:///usr/share/ia32-apt-get transitional main
をコメントアウト。これでようやく落ち着いた感じ?
2009-07-01 (Wed)
_ [debian][amd64] 続々々々々・ia32-libs 変?
なんか wine.bin が消滅してた。
% wine XXXXXXXX.exe
/usr/bin/wine: line 63: /usr/lib32/wine/wine.bin: そのようなファイルやディレクトリはありません
/usr/bin/wine: line 63: exec: /usr/lib32/wine/wine.bin: cannot execute: そのようなファイルやディレクトリはありません
%
仕方ないので libwine 入れ直し。 これで OK かと思ったら、/usr/lib32/wine/wineboot.exe.so も消滅してた。
% wine XXXXXXXX.exe
err:process:start_wineboot failed to start wineboot, err 2
wine-bin も入れ直し。 これでもまだ起動しない…。面倒なので、wine 全部入れ直したけど、今度は
% wine XXXXXXXX.exe
Wine cannot find the FreeType font library. To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
err:module:load_builtin_dll failed to load .so lib for builtin L"winex11.drv": libSM.so.6: 共有オブジェクトファイルを開けません: そのようなファイルやディレクトリはありません
今度は ia32-libsm6 とかかな…とりあえず ia32-apt-get でパッケージを入れるのは、まだこれの使い方がよくわからないのでなんとなく抵抗があるから保留。