2008年1月29日火曜日

Re: %NoSource と %NoPatch 廃止への第一歩

sha512sum だとチェックに時間がかかるため、sha256sum を使うことになった。

詳しくは、下記のページを参照してください。

2008年1月27日日曜日

%NoSource と %NoPatch 廃止への第一歩

Momonga Linux の %NoSource、%NoPatch の各独自マクロは、他のディストリビューションとの spec ファイルの互換性に問題があると思うので、廃止すべきだと思う。

というわけで、OmoiKondara2 でファイルの sha512sum を検査することにした。

うまくいくのかどうか、不安ではあるが。

2008年1月22日火曜日

『松井龍哉展 フラワー・ロボティクス』@水戸芸術館

何日か前に、水戸芸術館へ行った。ミュージアム・ショップに寄ろうと思っただけだったが、たまたま『松井龍哉展 フラワー・ロボティクス』という展示があったので、ついでに観た。
そこそこ面白かった。まあ、デザインの善し悪しは分からないので、何もいうことがないが。

ロボットを実際に動かしている部屋がよかった。ただロボットを動かしているだけではなく、ロボットのセンサーがどんな情報を得ているのか、その情報をどう使っているのか、を MacBook や iPod touch で見られるようになっていた。さらに、解説をしてくれる係員もいた。

そこで個人的に気になったのは、いくつかあった MacBook のうちのひとつで twm が動いていたこと。正確にいうと、MacBook の上で VNCViwer が動いていて、その中に緑色の twm がいた。場違いだよね。係員のお姉さんがロボットマネキンの仕組みや有用性をいろいろと解説してくれたんだけど、僕は「でも、twm ですよね」と返したかった。まあ、でも我慢した。

eb

数日前に EB を 4.3.1 へ上げて、その周辺のパッケージをリビルドした。

ただし、EBView は x86_64 だと動作が不安定で落ちやすい。下記のページを参考にして、SUSE の 64bit.patch を当ててはみたが、不安定なままだった。とりあえず、このパッチは当てないことにした。

2008年1月16日水曜日

Re: IcedTea のビルドがうまくいかない

Ant を 1.7.0 に上げたら、少し前進した。でも、まだビルドがうまくいかないまま。

上記は間違い。下記のエラーは、Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher が投げられる箇所をこえていなかった。

そもそも、Ant がちゃんとインストールされてないようだ。

mkdir -p lib/tools
/usr/bin/ecj -nowarn -g -d lib/tools \
-source 1.6 \
-sourcepath tools \
@tools-source-files.txt
Annotation processing got disabled, since it requires a 1.6 compliant JVM
----------
1. ERROR in tools/netx/jnlp/tools/JarSigner.java (at line 37)
import sun.security.x509.*;
^^^^^^^^^^^^
The import sun.security cannot be resolved
----------
2. ERROR in tools/netx/jnlp/tools/JarSigner.java (at line 38)
import sun.security.util.*;
^^^^^^^^^^^^
The import sun.security cannot be resolved
----------
3. ERROR in tools/netx/jnlp/tools/JarSigner.java (at line 163)
CodeSigner[] signers = je.getCodeSigners();
^^^^^^^^^^
CodeSigner cannot be resolved to a type
----------
4. ERROR in tools/netx/jnlp/tools/JarSigner.java (at line 163)
CodeSigner[] signers = je.getCodeSigners();
^^^^^^^^^^^^^^
The method getCodeSigners() is undefined for the type JarEntry
----------
5. ERROR in tools/netx/jnlp/tools/JarSigner.java (at line 235)
SignatureFileVerifier.isBlockOrSF(ucName)) {
^^^^^^^^^^^^^^^^^^^^^
SignatureFileVerifier cannot be resolved
----------
6. ERROR in tools/netx/jnlp/tools/JarSigner.java (at line 298)
DerInputStream in = new DerInputStream(netscapeEx);
^^^^^^^^^^^^^^
DerInputStream cannot be resolved to a type
----------
7. ERROR in tools/netx/jnlp/tools/JarSigner.java (at line 298)
DerInputStream in = new DerInputStream(netscapeEx);
^^^^^^^^^^^^^^
DerInputStream cannot be resolved to a type
----------
8. ERROR in tools/netx/jnlp/tools/JarSigner.java (at line 300)
encoded = new DerValue(encoded).getUnalignedBitString()
^^^^^^^^
DerValue cannot be resolved to a type
----------
9. ERROR in tools/netx/jnlp/tools/JarSigner.java (at line 303)
NetscapeCertTypeExtension extn =
^^^^^^^^^^^^^^^^^^^^^^^^^
NetscapeCertTypeExtension cannot be resolved to a type
----------
10. ERROR in tools/netx/jnlp/tools/JarSigner.java (at line 304)
new NetscapeCertTypeExtension(encoded);
^^^^^^^^^^^^^^^^^^^^^^^^^
NetscapeCertTypeExtension cannot be resolved to a type
----------
11. ERROR in tools/netx/jnlp/tools/JarSigner.java (at line 307)
NetscapeCertTypeExtension.OBJECT_SIGNING);
^^^^^^^^^^^^^^^^^^^^^^^^^
NetscapeCertTypeExtension cannot be resolved
----------
11 problems (11 errors)make: *** [stamps/tools-class-files.stamp] エラー 255

2008年1月13日日曜日

ocaml, ocaml-*, unison

OCaml を 3.10.1 へアップデート。OCaml をひとつのパッケージにまとめるか、このまま分割させたままにするかを考えた結果、分割させたままでいいということにした。なので、OmoiKondara は次のように実行する必要がある。
$ ../tools/OmoiKondara -i ocaml ocaml-lablgl ocaml-lablgtk
$ ../tools/OmoiKondara ocaml-* unison

2008年1月11日金曜日

OmoiKondara はヤバい

OCaml 関係のパッケージと OmoiKondara との相性が悪すぎる。悲惨だ。どうしよう。OmoiKondara -i で乗り切ってもらうか。

下記は例。ocaml-3.10.1-1m がビルドしたがインストールはされていない状態で、ocaml-lablgtk を rebuild against ocaml-3.10.1-m しようとしたところ。OmoiKondara にインストールしてもらいたいのは、ocaml-3.10.1-1m と ocaml-{runtime, x11, source, camlp4, camlp4-devel, labltk, labltk-devel, ocamldoc, docs, emacs, xemacs}-3.10.1-1m だけなのだが。perl-*、python-*、ruby-* とかでも同じようなことになりそうな気がする。
bash-3.2$ ../tools/OmoiKondara -v ocaml-lablgtk
number of specfiles: 3098
scanning specfile: 100%
reading RPM database to see what is installed ... OK
ocaml-lablgtk needs ocaml >= 3.10.1 installed to build:
checking whether ocaml == 3.10.0-2m.mo4 is sufficient ... NO
ocaml needs ncurses-devel installed to build:
checking whether ncurses-devel == 5.6-9m.mo4 is sufficient ... YES
ocaml needs gdbm-devel installed to build:
checking whether gdbm-devel == 1.8.3-7m.mo4 is sufficient ... YES
ocaml needs tcl-devel installed to build:
checking whether tcl-devel == 8.4.16-1m.mo4 is sufficient ... YES
ocaml needs tk-devel installed to build:
checking whether tk-devel == 8.4.16-1m.mo4 is sufficient ... YES
ocaml needs emacs >= 22.1 installed to build:
checking whether emacs == 23.0.50-0.20080105.2m.mo4 is sufficient ... YES
ocaml needs xemacs >= 21.4.20 installed to build:
checking whether xemacs == 21.4.20-4m.mo4 is sufficient ... YES
ocaml needs gawk installed to build:
checking whether gawk == 3.1.5-1m.mo4 is sufficient ... YES
ocaml needs perl installed to build:
checking whether perl == 4:5.8.8-17m.mo4 is sufficient ... YES
ocaml needs util-linux installed to build:
checking whether util-linux == 2.13.1-0.999.3m.mo4 is sufficient ... YES
ocaml needs libICE-devel installed to build:
checking whether libICE-devel == 1.0.4-1m.mo4 is sufficient ... YES
ocaml needs libSM-devel installed to build:
checking whether libSM-devel == 1.0.3-1m.mo4 is sufficient ... YES
ocaml needs libX11-devel installed to build:
checking whether libX11-devel == 1.1.3-2m.mo4 is sufficient ... YES
ocaml needs libXaw-devel installed to build:
checking whether libXaw-devel == 1.0.4-1m.mo4 is sufficient ... YES
ocaml needs libXext-devel installed to build:
checking whether libXext-devel == 1.0.3-1m.mo4 is sufficient ... YES
ocaml needs libXft-devel installed to build:
checking whether libXft-devel == 2.1.12-3m.mo4 is sufficient ... YES
ocaml needs libXmu-devel installed to build:
checking whether libXmu-devel == 1.0.3-1m.mo4 is sufficient ... YES
ocaml needs libXrender-devel installed to build:
checking whether libXrender-devel == 0.9.4-1m.mo4 is sufficient ... YES
ocaml needs libXt-devel installed to build:
checking whether libXt-devel == 1.0.5-1m.mo4 is sufficient ... YES
ocaml needs mesa-libGL-devel installed to build:
checking whether mesa-libGL-devel == 7.0.2-3m.mo4 is sufficient ... YES
ocaml needs mesa-libGLU-devel installed to build:
checking whether mesa-libGLU-devel == 7.0.2-3m.mo4 is sufficient ... YES
ocaml needs chrpath installed to build:
checking whether chrpath == 0.13-1m.mo4 is sufficient ... YES

--[rpm -Uvh --force --test /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-lablgtk-doc-2.10.0-2m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-emacs-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-source-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-runtime-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-lablgtk-devel-2.10.0-2m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-docs-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-findlib-devel-1.2.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-xemacs-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-findlib-1.2.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-mysql-1.0.4-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-facile-1.1-3m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-camlp4-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-lablgl-1.03-2m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-camlgi-0.6-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-labltk-devel-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-labltk-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-x11-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-ocamldoc-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-camlp4-devel-3.10.1-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-lablgl-devel-1.03-2m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-facile-devel-1.1-3m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-camlgi-devel-0.6-1m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-lablgtk-2.10.0-2m.mo4.i686.rpm /home/nakaya/momonga/i686/trunk/PKGS/i686/ocaml-mysql-devel-1.0.4-1m.mo4.i686.rpm ]--
エラー: 依存性の欠如:
ocaml(Thread) = e2377aef73842c2ee2b34a8bad15102f は ocaml-lablgtk-devel-2.10.0-2m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は ocaml-lablgtk-devel-2.10.0-2m.mo4.i686 に必要とされています
ocaml(Types) = c2ef3369acfd38dafc8294786964051c は ocaml-findlib-1.2.1-1m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は ocaml-findlib-1.2.1-1m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は ocaml-mysql-1.0.4-1m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は ocaml-facile-1.1-3m.mo4.i686 に必要とされています
ocaml(Tk) = 858990e4df7b9932a6863d07ccc61cb9 は ocaml-lablgl-1.03-2m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は ocaml-lablgl-1.03-2m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は ocaml-camlgi-0.6-1m.mo4.i686 に必要とされています
ocaml(Thread) = e2377aef73842c2ee2b34a8bad15102f は ocaml-lablgtk-2.10.0-2m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は ocaml-lablgtk-2.10.0-2m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は (インストール済み)ocaml-facile-1.1-3m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は (インストール済み)ocaml-mysql-1.0.4-1m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は (インストール済み)ocaml-findlib-1.2.1-1m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は (インストール済み)ocaml-camlgi-0.6-1m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は (インストール済み)ocaml-lablgtk-2.10.0-2m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は (インストール済み)ocaml-lablgtk-devel-2.10.0-2m.mo4.i686 に必要とされています
ocaml(runtime) = 3.10.0 は (インストール済み)ocaml-camlp5-5.05-1m.mo4.i686 に必要とされています
ocaml(Thread) = e2377aef73842c2ee2b34a8bad15102f は (インストール済み)ocaml-lablgtk-2.10.0-2m.mo4.i686 に必要とされています
ocaml(Thread) = e2377aef73842c2ee2b34a8bad15102f は (インストール済み)ocaml-lablgtk-devel-2.10.0-2m.mo4.i686 に必要とされています
ocaml(Types) = c2ef3369acfd38dafc8294786964051c は (インストール済み)ocaml-findlib-1.2.1-1m.mo4.i686 に必要とされています
ocaml(Types) = c2ef3369acfd38dafc8294786964051c は (インストール済み)ocaml-camlp5-5.05-1m.mo4.i686 に必要とされています

IcedTea のビルドがうまくいかない

IcedTea をビルドできるものなのかどうか試してみたが、うまくいかない。Ant が古いせいかもしれない。

ビルドの手順は、 IcedTea のページにある通り。
hg clone http://icedtea.classpath.org/hg/icedtea
cd icedtea
./configure
make
make の途中でエラーになる。
make[2]: Entering directory `/tmp/icedtea-1.5/openjdk/langtools/make'
JAVA_HOME=/tmp/icedtea-1.5/bootstrap/jdk1.6.0 ANT_OPTS=-Djava.io.tmpdir='/tmp/icedtea-1.5/openjdk/build/linux-i586/langtools/build/ant-tmp' ant -diagnostics > /tmp/icedtea-1.5/openjdk/build/linux-i586/langtools/build/ant-diagnostics.log
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher
at java.net.URLClassLoader$2.run(URLClassLoader.java:220)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:209)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
Error: Could not find the main class.
Error: A JNI error has occurred, please check your installation and try again
make[2]: *** [build] Error 1
make[2]: Leaving directory `/tmp/icedtea-1.5/openjdk/langtools/make'
make[1]: *** [langtools-build] エラー 2
make[1]: ディレクトリ `/tmp/icedtea-1.5/openjdk' から出ます
make: *** [icedtea] エラー 2
あと、よく分かってないのだけど、Momonga Linux では下記のようなシンボリックリンクを張っておかないとダメそうな気がする。
% ln -s /usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/i686 \
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/i386

2008年1月1日火曜日

起動戦死

新年早々、HDD が読めなくなったわけだけど、ケーブルをつなぎ直してみたら動いた。

どうしたもんか。