Bug#93545: Simple patch to debian/rules
There seem to be two minor problems in debian/rules that result in
both of these problems. This patch should address it:
--- debian/rules.orig Thu Apr 26 11:19:33 2001
+++ debian/rules Thu Apr 26 11:19:43 2001
@@ -27,7 +27,7 @@
dh_testdir
I2C_HEADERS=/usr/local/include
# The i2c headers are in the i2c-source package's directory.
- $(MAKE) kernel LINUX=$(KSRC) I2C_HEADERS=$(MODULE_LOC)/i2c
+ $(MAKE) all-kernel all-kernel-busses all-kernel-chips LINUX=$(KSRC) I2C_HEADERS=/usr/src/modules/i2c
clean:
dh_testdir
@@ -63,7 +63,7 @@
dh_gencontrol -- -v$(PKG_VERSION)
dh_makeshlibs
dh_md5sums
- dh_builddeb --destdir=$(MODULE_LOC)/..
+ dh_builddeb --destdir=$(KSRC)/..
# Build architecture-independent files here.
binary-indep:
One problem is that the source's top-level Makefile, and the
Modules.mk files it includes, never actually define a "kernel" target,
so no modules are ever built. The other problem is that MODULE_LOC is
never defined as a Make variable, so it comes up empty.
It should be noted that this solution adds an explicit dependency on
the i2c-modules-source package; this is probably inappropriate for
2.4.x kernels, which include i2c support in the kernel itself.
--
David Maze dmaze@debian.org http://people.debian.org/~dmaze/
"Theoretical politics is interesting. Politicking should be illegal."
-- Abra Mitchell
Reply to: