[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:03194] Re: cmail



> > し。Recommendsパッケージを入れないというのは結構面倒ですよね。
> 
> 面倒かな…
> dpkg で入れる場合は全く無視されるし
> dselect で入れる場合は 選択の時に Q すればそのまま
> インストールできますよ、たしか。

Q…知らなかった…。(^_^;;

でも、
| The Recommends field should list packages that would be found
| together with this one in all but unusual installations.
と
| Suggests: This is used to declare that one package may be
| more useful with one or more others.  Using this field tells
| the packaging system and the user that the listed packages
| are be related to this one and can perhaps enhance its
| usefulness, but that installing this one without them is
| perfectly reasonable.
を読み比べてみて、やっぱりmailcryptはSuggestsだと感じるので、
そうしますね。

ところで。

cmail, cmail-emu, cmail-iconsの3つのパッケージを作りました。
/usr/share/emacs/site-lisp/emu以下はcmail-emuに、
/usr/X11R6/include/X11/pixmaps以下はcmail-iconsが持てばいい
ので、cmailにはこれらのディレクトリも不要です。

そこで、debian/dirsにこれらを含めず、debian/cmail-emu.dirsと
debian/cmail-icons.dirsを設定することを考えましたが、そうす
ると、必要なファイル群のコピーも、debian/tmpの下だけにすれば
いいのではなくなり、debian/cmail-iconsなどの下にコピーしなけ
ればいけなくなりますよね。また、この場合、dh_movefilesも使え
なくなってしまいます。

かといって、debian/dirsにすべてのディレクトリを設定すると、
<package>.dirsというファイルの意義が失われてしまう気がするだ
けでなく(少くともこの場合は不要になる)、dh_movefilesの結果、
debian/tmpの下のディクレトリが空になってしまっても、それは残っ
てしまいます。したがって、cmailをインストールすると、空の
/usr/share/emacs/site-lisp/emuができることになります。

これは気持が悪いので、debian/rulesでdh_movefilesした後、
rmdirしているのですが、釈然としません。debhelperの設計が変な
んじゃないかと感じます。例えば、dh_installdirsは
<package>.dirsに書かれたディレクトリについてもdebian/tmpの下
に作り、dh_movifilesの後、空になったdebian/tmpの下のヂィレク
トリはrmdirするといった振舞いはどうでしょう。

他のパッケージメンテナの方はどうお考えですか?

# 何か勘違いしてなければいいのですが。

-- 
川村 尚生