2005/05/04

dpkg-dev 1.13.4 (experimental) が入っている時の kernel-package

dpkg-architecture が返す値が変っています。このため、make-kpkg が動きません。
カレントディレクトリ がkernel の top level directry ではない というエラーがでます。

You should invoke this command from the top level directory of
a linux kernel source directory tree, and as far as I can tell,
the current directory:
$(SRCTOP)
is not a top level linux kernel source directory. "

(If I am wrong then kernel-packages and the linux kernel"
are so out sync that you'd better get the latest versions"
of the kernel-package package and the Linux sources)"

Please change directory to wherever linux kernel sources
reside and try again.

これは
dpkg-dev 1.10は
DEB_HOST_GNU_SYSTEM=linux
なのにdpkg-dev 1.13.4 は
DEB_HOST_GNU_SYSTEM=linux-gnu
となっているからです。
対策は /usr/share/kernel-package/rule の中身にある

ifeq ($(DEB_HOST_GNU_SYSTEM), linux)



ifeq ($(DEB_HOST_GNU_SYSTEM), linux-gnu)


に変更しないといけません。