トップ «前の日記(2011年03月23日) 最新 次の日記(2011年05月13日)» 編集

Masa's blog

検索キーワード:

2011年03月24日 build of firefox-4.0 on Slackware-13.1 [長年日記]

_ build of firefox-4.0 on Slackware-13.1

ビルド

$ tar xvjf firefox-4.0.source.tar.bz2
$ cd mozilla-2.0/
$ vi .mozconfig
. $topsrcdir/browser/config/mozconfig
ac_add_options --disable-debug
ac_add_options --enable-optimize
ac_add_options --enable-default-toolkit=cairo-gtk2
$ make -f client.mk build

ここで何故か browser/locales/en-US/updater/updater.ini をsedで処理するステップで、sedがCPUを100%使い切ってループしてしまう。updater.iniの末尾に制御コードらしきものが紛れ込んでいるのが原因ぽいのでそれを削除してやる。

sedのバージョンを上げてもいいのかもしれない。

$ vi browser/locales/en-US/updater/updater.ini
; This file is in the UTF-8 encoding
[Strings]
TitleText=%MOZ_APP_DISPLAYNAME% Update
InfoText=%MOZ_APP_DISPLAYNAME% is installing your updates and will start in a few moments(ここの部分の文字化けを削除する)
$ make -f client.mk build
$ cd obj-i686-pc-linux-gnu/
$ make package

インストール

# cd /usr/local
# mkdir firefox-4.0
# cd firefox-4.0
# tar xvjf /_any_where_/mozilla-2.0/obj-i686-pc-linux-gnu/dist/firefox-4.0.en-US.linux-i686.tar.bz2

プラグイン

# mkdir /usr/local/firefox-4.0/firefox/plugins
# cd /usr/local/firefox-4.0/firefox/plugins
# cp /_any_where_/libflashplayer.so .