unbound 使ってでびあんの勉強 (2)
このシリーズはいつまで続くのか、という事はさて置き (を
以下、いくつか断片的なメモ
- 現実トウヒ環境では dpkg-dev 入れただけだと dh が導入されんかった
- devscripts 導入で問題解決。何故だ
- unbound-1.0.2 を debuild したら lintian に叱られている模様
- debuild のログ見たら以下を順に呼び出している模様
とゆーコトで今からもう少し確認予定
追記
もっかいログを見つつ動作を追い掛けてみる。ログからは何が何を呼び出してるかが微妙に分かりづらい。類推でメモ。コマンドとしては
# debuild
一発。
- dpkg-buildpackage -rfakeroot -D -us -uc
- これは debuild から呼ばれてるはず。以降、上記の通り rules と 3 つのターゲットで云々のはず
- -D は依存、衝突のチェックらしい
- fakeroot debian/rules clean
これは rules によれば dh clean をナニ- dh clean
- dh_testdir
- dh_auto_clean
- dh_clean
- dh clean
- dpkg-source -b unbound-1.0.2
ソースパケジを作っている模様。 - debian/rules build
- dh build --before configure
- dh_testdir
- libtoolize --before
- aclocal
- autoheader
- autoconf
- dh_auto_configure (ry
このあたりは rules に記述あり - dh_auto_build
コンパイルが延々続く - dh build --after test
- touch build-stamp
- dh build
- dh build --before configure
- fakeroot debian/rules binary
- dh build
- dh install
- dh_testroot
- dh_prep
- dh_installdirs
- dh_auto_install
で、その後大量の dh_install* がナニ。その後
-
- install -m 0644 doc/example.conf debian/unbound/etc/unbound/unbound.conf
- dh binary-arch
- dh_strip -a
- dh_makeshlibs -a
- dh_shlibdeps -a
- dh_installdeb -a
- dh_gencontrol -a
- dh_md5sum -a
- dh_builddeb -a
- dh binary-indep
- dh binary
で終了してますな。こうしたナニを見るに、debian/rules のナニを垣間見る事はできるかな、と。それにしてももの凄い抽象化。