On Fri, Oct 14, 2005 at 10:38:49AM +0000, [EMAIL PROTECTED] wrote: > RE:Could you please go back to the page you were looking > and report the bug numbers, they are preceeded by a #. > -------- > Don't have time this AM, but will respond to > > RE: Could you give some details of the failure that you are seeing? > ------ > The issue concerns installation of drivers compiled out of the kernel tree, > such as modem drivers. I co-maintain the ltmodem package for Lucent DSP > modems in particular. Our package is contrived to be Linux Distro variant > independent. The preliminary configure program searches subfolders of > /usr/src/ for a UTS in linux/include/version.h matching > ./build_module version > with default version being `uname -r`. Cross version compiling is thus > supported, so we can easily make ltmodem-version.deb for Newbies using > Distros various . > > The drivers compile is not affected by .extraversion. The problem arises in > the install, purely because of the Debian dual kernel(linux)-header package > split like: > /usr/src/linux-headers-2.6.12-1 > /usr/src/linux-headers-2.6.12-1-686 > wherein there is only in the Makefile an > EXTRAVERSION = > > The standard modules_install command does not read > linux/include/version.h > but rather the Makefile. Our particular install usage initally setup my Mark > Speith for 2.6.n is below. The LOCALVERSION= parameter was added by me to > deal with the Debian dual kernel(linux)-header situation > > install: > make $(EXTMOD_SWITCH)=`pwd` -C $(KERNEL_DIR) > INSTALL_MOD_PATH=$(ROOTDIR) LOCALVERSION=-1-686 modules_install > > --- > wherein in this particular case the "-1-686" was read in from (a corrected) > .extraversion during the configure step. This generates a Debian pacakge > with a correct: > > /ltmodem-8.31b1/source# tree debian/tmp/lib > debian/tmp/lib > `-- modules > `-- 2.6.12-1-686 > `-- extra > |-- ltmodem.ko > `-- ltserial.ko > > In contrast for the original flawed .extraversion with only "-" , the > structure is: > /ltmodem-8.31b1/source# tree debian/tmp/lib > debian/tmp/lib > `-- modules > `-- 2.6.12- <<<WRONG > `-- extra > |-- ltmodem.ko > `-- ltserial.ko > > There are "make install" variants which can be made to use INSTALL_DIR, > but a Debian decision on this .extraversion issue would first be usefull.
Thanks, I think the following micro patch fixes this problem which was introduced with the new packaging format that came with 2.6.12. I'm testing this now and will add to svn if successful. Index: templates/post-install.in =================================================================== --- templates/post-install.in +++ templates/post-install.in @@ -59,7 +59,8 @@ mkdir -p $dir/include/asm-$arch mkdir -p $dir/include/linux cp -a .config $dir -echo $debnum-$suffix > $dir/.extraversion +echo $DEBIAN_VERSION-$DEBIAN_ABINAME-$DEBIAN_FLAVOUR > $dir/.extraversion + cp -a Module.symvers $dir find . -mindepth 1 -maxdepth 1 \ > Slightly related. > For the KNOPPIX variant of Debian, I have observed that modem drivers using > kernel-kbuild-2.6 gives non-functional drivers, while functional drivers are > obtained by terporarily hiding /usr/src/kernel-kbuild-2.6. KNOPPIX claims to > use vanilla kernel.org sources. kernel-kbuild-2.6 has been removed from etch -- Horms -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]