トップ «前の日(02-02) 最新 次の日(02-04)» 追記

Masa's blog

検索キーワード:

2012年02月03日 ARMedslack-13.37 on zaurus(SL-C760)

_ ARMedslack-13.37 on zaurus(SL-C760)

予備機のSL-C760ARMedslack-13.37を仕込んでみる。

ポイントだけ備忘録として記す。

今回はext4にインストール

ARMedslack-13.1の時はext3にインストールしたが、最新のkexecbootはext4からのブートをサポートしていると聞いたので、ext4にインストールする。

もちろん、カーネル(linux-3.1.9)にext4を組み込んでおく必要があるのだが、当初以下のメッセージを出してブートの途中で止まってしまった。

EXT4-fs (mmcblk0p3): Filesystem with huge files cannot be mounted read-write without CONFIG_LBDAF

ext4を組み込む場合は、CONFIG_LBDAFも必須らしい。ARMedslack-13.1 on SL-C860上でカーネルをビルドして対応。

CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_BLOCK=y
CONFIG_LBDAF=y
CONFIG_BLK_DEV_BSG=y

/usr/bin/Xorg

なんの設定も無しに起動して、一応タッチパネルも反応する。ARMedslack-13.1の時はtslib関係を入れないとダメだった(参考1参考2)が、今回はevdev経由で動いてしまっている。ただし、キャリブレーションは合わせないと使えない。

キャリブレーションの設定はxinput_calibratorというツールが有るので、ソースから入れた。xterm等のコンソールから起動し、キャリブレーションを行うと標準出力に結果が出るので、それを編集して/etc/X11/xorg.conf.d/99-calibration.confを作成すれば完了...のはずなのだが、現時点ではうまく調整できない。

xinput_calibratorの出力結果がデタラメっぽい。

Calibrating EVDEV driver for "ADS7846 Touchscreen" id=7
        current calibration values (from XInput): min_x=2594, max_x=2652 and min_y=2369, max_y=2436

Doing dynamic recalibration:
        Setting new calibration data: 2585, 2660, 2358, 2446


--> Making the calibration permanent <--
  copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf'
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ADS7846 Touchscreen"
        Option  "Calibration"   "2585 2660 2358 2446"
EndSection

Ximageon

Angstromから拝借したXimageonの場合はtslibが必要(参考1参考2)なのだが、libtoolのバージョンの関係でインストールの途中でこけた。

Making install in plugins
make[1]: Entering directory `/home/m-ito/INSTALLED/tslib-1.0/plugins'
make[2]: Entering directory `/home/m-ito/INSTALLED/tslib-1.0/plugins'
test -z "/angstrom/usr/lib/ts/" || /bin/mkdir -p "/angstrom/usr/lib/ts/"
/bin/sh ../libtool   --mode=install /bin/ginstall -c   linear.la dejitter.la variance.la pthres.la ucb1x00.la corgi.la collie.la h3600.la mk712.la arctic2.la linear_h2200.la input.la '/angstrom/usr/lib/ts/'
libtool: install: error: cannot install `linear.la' to a directory not ending in /angstrom/usr/lib/ts/

以下のパッチを、./autogen.shの実行後に当てるとうまく行った。

*** libtool.ORG	2012-02-03 00:47:39.020020756 +0900
--- libtool	2012-02-03 00:49:03.380022311 +0900
***************
*** 3399,3406 ****
  	  # At present, this check doesn't affect windows .dll's that
  	  # are installed into $libdir/../bin (currently, that works fine)
  	  # but it's something to keep an eye on.
! 	  test "$inst_prefix_dir" = "$destdir" && \
! 	    func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"

  	  if test -n "$inst_prefix_dir"; then
  	    # Stick the inst_prefix_dir data into the link command.
--- 3399,3406 ----
  	  # At present, this check doesn't affect windows .dll's that
  	  # are installed into $libdir/../bin (currently, that works fine)
  	  # but it's something to keep an eye on.
! ##	  test "$inst_prefix_dir" = "$destdir" && \
! ##	    func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"

  	  if test -n "$inst_prefix_dir"; then
  	    # Stick the inst_prefix_dir data into the link command.
*** ltmain.sh.ORG	2012-02-03 00:49:12.050022121 +0900
--- ltmain.sh	2012-02-03 00:49:36.740022257 +0900
***************
*** 2962,2969 ****
  	  # At present, this check doesn't affect windows .dll's that
  	  # are installed into $libdir/../bin (currently, that works fine)
  	  # but it's something to keep an eye on.
! 	  test "$inst_prefix_dir" = "$destdir" && \
! 	    func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"

  	  if test -n "$inst_prefix_dir"; then
  	    # Stick the inst_prefix_dir data into the link command.
--- 2962,2969 ----
  	  # At present, this check doesn't affect windows .dll's that
  	  # are installed into $libdir/../bin (currently, that works fine)
  	  # but it's something to keep an eye on.
! ##	  test "$inst_prefix_dir" = "$destdir" && \
! ##	    func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"

  	  if test -n "$inst_prefix_dir"; then
  	    # Stick the inst_prefix_dir data into the link command.

フォントの設定

そのままだと漢字の表示が出来なかった。

/usr/share/fonts/以下の各フォントディレクトリの中で、

# mkfontscale
# mkfontdir -e ../encodings -e ../encodings/large

1度だけ、

# fc-cache -f -v

をしてやると正常に表示できるようになる。

aircrack-ng-1.1

をmakeすると以下のエラーが出る。

aircrack-ng.c:4189:8: error: array subscript is below array bounds

以下のパッチを当てればOK。

*** src/aircrack-ng.c.ORG	2012-02-03 16:17:41.610033040 +0900
--- src/aircrack-ng.c	2012-02-03 16:19:19.220032835 +0900
***************
*** 4185,4191 ****
  			if( i > 64 ) i = 64;

  			while(i>0 && (key1[i-1]=='\r' || key1[i-1]=='\n')) i--;
! 			if (i==0) continue;
  			key1[i] = '\0';

  			for(j=0; j<i; j++)
--- 4185,4191 ----
  			if( i > 64 ) i = 64;

  			while(i>0 && (key1[i-1]=='\r' || key1[i-1]=='\n')) i--;
! 			if (i==0||i<0) continue;
  			key1[i] = '\0';

  			for(j=0; j<i; j++)

2013年02月03日 time.h in ffmpeg-1.x causes some trouble :(

_ time.h in ffmpeg-1.x causes some trouble :(

I installed ffmpeg-1.1.1 in Slackware-14.0. But when I build some application with this, I get failure. Because ffmpeg-1.1.1 has own time.h as /usr/local/include/libavutil/time.h. In some condition, when I need /usr/include/time.h, but /usr/local/include/libavutil/time.h is searched first instead of /usr/include/time.h. In this case, I have to adjust search path for header files in Makefile(etc).


2019年02月03日 How to build firefox-65.0 on Slackware-14.2(64)

_ Slackware-14.2(64)でfirefox-65.0のビルド

autoconf-2.13をインストール

$ tar xvf autoconf-2.13.tar.gz
$ cd autoconf-2.13
$ ./configure --prefix=/usr/local/autoconf-2.13
$ make && sudo make install

rustcをインストール

$ curl https://sh.rustup.rs -sSf | sh
$ PATH="/home/m-ito/.cargo/bin:${PATH}"; export PATH
$ rustup update

cbindgenをインストール

$ wget https://github.com/eqrion/cbindgen/archive/v0.7.1.tar.gz
$ tar xvf v0.7.1.tar.gz
$ cd cbindgen-0.7.1
$ cargo install cbindgen

node.jsをインストール

$ wget https://nodejs.org/dist/v10.15.1/node-v10.15.1.tar.gz
$ tar xvf node-v10.15.1.tar.gz
$ cd node-v10.15.1
$ ./confgure && make && sudo make install

ようやくビルド!

$ cd /tmp
$ tar xvf firefox-65.0.source.tar.xz
$ cd firefox-65.0

.mozconfig

export LDFLAGS="-latomic"
. $topsrcdir/browser/config/mozconfig
ac_add_options --enable-optimize
ac_add_options --enable-default-toolkit=cairo-gtk3
ac_add_options --disable-debug
ac_add_options --disable-tests
$ PATH="/home/m-ito/.cargo/bin:/usr/local/autoconf-2.13/bin:${PATH}"; export PATH
$ export LANG=C; export LC_ALL=C
$ ./mach build && ./mach build package

インストール

# mkdir /usr/local/firefox-65.0
# cd /usr/local/firefox-65.0
# tar xvf /tmp/firefox-65.0/obj-x86_64-pc-linux-gnu/dist/firefox-65.0.en-US.linux-x86_64.tar.bz2

ja.xpi(language pack)の為の設定(about:config)

intl.locale.requested=ja-JP

環境変数

export MOZ_DISABLE_CONTENT_SANDBOX=1
export MOZ_PLUGIN_PATH=/usr/lib64/mozilla/plugins

Web socket over h2 causes us to loop CONNECT request to a proxy

facebookにログインする時、この問題に遭遇した。firefox-65.0 はedge-chat.facebook.com:443に秒間50回程度アクセスしようとした。

対処方法

  • about:config から network.http.spdy.websocket=false を設定する...又は
  • firefox-65.0.1にバージョンアップする