2ちゃんねる スマホ用 ■掲示板に戻る■ 全部 1- 最新50    

なにはともあれSLAX

1 :よーだ:2006/08/25(金) 08:34:04 ID:hyAu/OJ9.net
ディストリの壁をこえて SLAX を語ろう。


111 :login:Penguin:2006/10/02(月) 08:59:45 ID:+nsWYShe.net
>>110
よく見たらisoイメージの./tools以下にmksquashfsとunsquashfsがありました。
*2moのコマンド群は、おなじ./tools以下にあるliblinuxliveという、関数登録用のスクリプトを起動したのち、その中の

create_module()
{
mksquashfs "$1" "$2" $3 >/dev/null
if [ $? -ne 0 ]; then return 1; fi
chmod oga-x "$2" # remove execute attrib
}

を使っていました。つまり間接的にmksquashfsを使っていることになります。いわばwrapperですね。


112 :login:Penguin:2006/10/02(月) 09:00:36 ID:+nsWYShe.net
>>110つづき
またmo2dirでは同じliblinuxliveの中の

mount_module()
{
mount -t squashfs -o loop,ro "$1" "$2"
err=$?
if [ $err -eq 0 ]; then
echo "$1 $2" >>/tmp/_mounts
fi
return $err
}

を使用していました。
unsquashfsというコマンドを使うのではなく、kernelにsquashfsパッチを当てているようです。
エラーを返すというのはこのmountの動作に関してでしょう。

unsquashfsで一部の*.moを解凍しようとすると次のようなエラーが出ます。これも類似の現象だと思います。

Major/Minor mismatch, filesystem on Avidemux_2_0_40.mo is (2:1)
I only support Squashfs 3.0 filesystems! Later releases will support older Squashfs filesystems

つまり、もう少ししたら3.0以前のsquashfsにも対応するから待っててね、ということのようです。


113 :login:Penguin:2006/10/02(月) 09:09:01 ID:+nsWYShe.net
>>108
The glibc-profile package includes the GNU libc libraries and support for profiling using the gprof program.
Profiling is analyzing a program's functions to see how much CPU time they use and determining which functions are calling other functions during execution.
To use gprof to profile a program, your program needs to use the GNU libc libraries included in glibc-profile (instead of the standard GNU libc libraries included in the glibc package).

If you are going to use the gprof program to profile a program, you'll need to install the glibc-profile program.

以上、赤帽のサイトから。これ見るかぎりglibcのプロファイリング用のライブラリ群のようですな。あまり必要ではなさそうなのですが、どうしてuimの動作と関連するのでしょう..

114 :login:Penguin:2006/10/02(月) 12:34:19 ID:+nsWYShe.net
ためしに/modules以下のglibc-profile-2.3.6-i486-3.moを消して起動してみました。
(USBだとこういうのが簡単 ^^;)
今のところuim1.2.0も問題なく動いています(Konsole/KDEでも、jfbtermのuim-fepも)。
しばらくこのprofileモジュール外して使ってみます。もし不具合でたら報告します。

115 :login:Penguin:2006/10/02(月) 13:51:08 ID:+nsWYShe.net
fd使いのために。
.fd2rc で次のような関連付けをしてみると*moファイルの扱いがなじんできます。

arch ".mo" "mksquashfs %TA %C &>/dev/null" "unsquashfs %C"


116 :login:Penguin:2006/10/02(月) 14:40:46 ID:+nsWYShe.net
追加

launch ".mo" "unsquashfs -l %C|$PAGER"

117 :login:Penguin:2006/10/02(月) 21:52:12 ID:DY7TgomC.net
>>116
エラー表示も重要
launch ".mo" "unsquashfs -l %C 2>&1 |$PAGER"

118 :login:Penguin:2006/10/02(月) 23:13:43 ID:D3+ZApa1.net
>>113
すいません、言葉が足りませんでした。
uimをmakeするときに、i18nとprofileを一緒に入れて動いたのが確認できたので、
それをそのまま使っています。glibc関連のライブラリは、その他のモジュールで
使う場合があるので、そのままにしておこうという感じです。

119 :login:Penguin:2006/10/04(水) 11:55:28 ID:JbpUhSjT.net
>>112
unsquashfsでエラーが出るということはSLAXがブートするときにも読めてないということだろうか?
とくにエラー表示ないけどなあ。
SLAXのkernelはsquash 2.x と 3.xの両方が読めてるってことか。
すくなくとも本家のlibdvdcss_1_2_8_2.mo, alien_8_56.mo, XChat_2_6_1.mo, Syslinux_2_13.moはunsquashfs3.1では読めなかったぞ。(本家のモジュールには2.xと3.xのsquashfsが混在しているが、これでいいのか)


120 :login:Penguin:2006/10/04(水) 16:39:57 ID:JbpUhSjT.net
squashfs2.xとか3.xとかいうことより、
Ftp://ftp.slax.org/SLAX-6.x/testing/technology-preview/READMEによると
using LZMA compression for squashfs. This is not backwards compatible with old Slax modules, but it's better so Slax will switch to it.
ということなので、いずれ全てのモジュールは新しくならざるをえない。これってsquashfsが3.2ないし4.0になるってことか?

241 KB
新着レスの表示

掲示板に戻る 全部 前100 次100 最新50
名前: E-mail (省略可) :

read.cgi ver 2014.07.20.01.SC 2014/07/20 D ★