今日こそは hello-debhelper 確認するぞ

ということで debian ディレクトリの中身を確認。

$ ls
changelog
compat
control
copyright
patches
rules
rules-dh
source
$

入門 Debian パッケージなケイススタディの状態と若干違う。patches とか rules-dh とか source というナニは無いけど本に載ってる dirs とか docs とか info とかが無くなってますね。
ちなみに patches と source はディレクトリですね。存在の根拠は Debian ポリシーマニュアルとのことなのでそちらを確認した方が良いのかどうなのか。

とりあえず

cdbs 対応にするとしたら control の Build-Depends: なナニを

Build-Depends: debhelper (>= 8)

から

Build-Depends: debhelper (>= 8), cdbs

にしなければならないはず。後は多分昨日エントリで引用した rules を上書きすれば基本的には動作するはず。とりあえず盛り込んで試験してみますね。

盛り込んで debuild してみる

ええと、最後らへん。

dh_gencontrol -phello-debhelper  
dpkg-gencontrol: warning: Depends field of package hello-debhelper: unknown substitution variable ${shlibs:Depends}
# only call dh_scour for packages in main
if grep -q '^Component:[[:space:]]*main' /CurrentlyBuilding 2>/dev/null; then dh_scour -phello-debhelper ; fi
dh_md5sums -phello-debhelper 
dh_builddeb -phello-debhelper 
dpkg-deb: building package `hello-debhelper' in `../hello-debhelper_2.7-1_amd64.deb'.
 dpkg-genchanges  >../hello-debhelper_2.7-1_amd64.changes
dpkg-genchanges: including full source code in upload
 dpkg-source --after-build hello-debhelper-2.7
dpkg-buildpackage: full upload (original source is included)
Now running lintian...
W: hello-debhelper source: debian-rules-ignores-make-clean-error line 15
W: hello-debhelper: description-synopsis-starts-with-article
W: hello-debhelper: empty-binary-package
Finished running lintian.
Now signing changes and any dsc files...
Could not find a signing program (pgp or gpg)!
debuild: fatal error at line 1269:
running debsign failed

なんか失敗してそげなメセジだな。でも一応 hello-debhelper_2.7-1_amd64.deb ができている模様。これ、pgp 乃至 gpg な鍵使ってサインしてないのが悪いのかな。こっちの世界に手を出し始めるのであれば鍵も登録しとく必要ありますね。

宿題

今日はもうへろへろなので手を止める方向ですが宿題として

  • このパケジの試験しなきゃ
    • 試験な環境って chroot なナニの方が軽そう
    • 鍵不要なコマンドで試験してみる
    • 鍵作って試験してみる
  • rules の中身確認してメモを控え
    • とは言えそのまんま、なんですが

多分明日以降は gitosis-web-admin をでびあんパケジ化する作業を始めると思います。