Package: i2c-source Version: 2.5.4-3 When i2c-source is turned into a package with make-kpkg for a kernel built with --append-to-version=-cw, the package has the correct name (with the appended version), the control file installs doc files and the modutile file with the full version, but installs the kernel modules into
/lib/modules/2.4.1/misc instead of /lib/modules/2.4.1-cw/misc This confuses (unresolved symbols) lm-sensors, which seems to handle this correctly. If I symlink the i2c modules from one directory to the other everything works. I've compared debian/rules of i2c-source and lm-sensors-source. The latter uses binary-modules: build_modules dh_install_dirs lib/modules/$(KVERS)/misc find -name \*.o | grep /kernel/ | egrep -v 'RPM|CVS' | \ xargs -i install -m 0644 {} debian/tmp/lib/modules/$(KVERS)/misc i2c OTOH doesn't use dh_install_dirs (or KVERS) in the same way, and seems to just call 'make install' on the package Makefile (which doesn't know about KVERS). I'm not sure I have that last part right as I'm new to Debian and the magic of deb-helper and make-kpkg. Thanks. --clemens