Re: Problem making module packages
Hi,
> The problems you've observed after moving ~/modules to /usr/src have
> been fixed in the latest alsa-source package in unstable, so that's OK.
>
> This is the block of code that fills in the list between 'in' and ';'
> when you do make-kpkg modules_image: (Formatted for reading)
> (kernel-package 8.020, current testing version, unchanged in unstable
> version 8.022)
Ok, a good thing.
As you can see in the following script output, even if I export
$MODULE_LOC, it won't resolve the problem.
I also executed tried the find, and it behaves correctly, so the '~'
character is not the pb. The deb package I obtain is, as you can see, in
the directory /root/modules/ and the name doesn't contain any own
version information..
So I think, that it's not the right behavior,
Thanks for you answer,
Dimitri
Here the output:
keats:/usr/src/linux# make mrproprer
make[1]: Entering directory `/usr/src/kernel-source-2.4.20/arch/i386/boot'
rm -f tools/build
rm -f setup bootsect zImage compressed/vmlinux.out
rm -f bsetup bbootsect bzImage compressed/bvmlinux.out
make[2]: Entering directory `/usr/src/kernel-source-2.4.20/arch/i386/boot/compressed'
rm -f vmlinux bvmlinux _tmp_*
...
...
...
...
rm -f -r wanbook z8530book mcabook videobook kernel-api parportbook kernel-hacking kernel-locking via-audio mousedrivers sis900 deviceiobook procfs-guide tulip-user journal-api
rm -f .depend
rm -f /usr/src/kernel-source-2.4.20/scripts/mkdep-docbook
rm -rf DBTOHTML_OUTPUT*
make[1]: Leaving directory `/usr/src/kernel-source-2.4.20/Documentation/DocBook'
keats:/usr/src/linux# export MODULE_LOC="~/modules"
keats:/usr/src/linux# find ~/modules -follow -maxdepth 1 -type d -print |grep -v '^~/modules$'
/root/modules
/root/modules/alsa-driver
keats:/usr/src/linux# make menuconfig
...
...
...
...
Saving your kernel configuration...
*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'.
keats:/usr/src/linux# make-kpkg clean
/usr/bin/make -f /usr/share/kernel-package/rules real_stamp_clean
make[1]: Entering directory `/usr/src/kernel-source-2.4.20'
rm -f modules/modversions.h modules/ksyms.ver debian/files conf.vars scripts/cramfs/cramfsck scripts/cramfs/mkcramfs applied_patches stamp-build stamp-configure stamp-source stamp-image stamp-headers stamp-src stamp-diff stamp-doc stamp-buildpackage stamp-libc-kheaders stamp-debian stamp-patch
...
...
...
...
(test -f stamp-patch && /usr/bin/make -f /usr/share/kernel-package/rules unpatch_now) || true
test ! -f config.precious || mv -f config.precious .config
rm -rf debian/tmp-source debian/tmp-headers debian/tmp-image debian/tmp-doc
test -f stamp-building || test -f debian/official || rm -rf debian
make[1]: Leaving directory `/usr/src/kernel-source-2.4.20'
keats:/usr/src/linux# make-kpkg --revision=keats+1.5 kernel_image
...
...
...
...
make[3]: Leaving directory `/usr/src/kernel-source-2.4.20/Documentation/DocBook'
make[2]: Leaving directory `/usr/src/kernel-source-2.4.20'
rm -f stamp-build
touch stamp-image
make[1]: Leaving directory `/usr/src/kernel-source-2.4.20'
keats:/usr/src/linux# make-kpkg --revision=keats+1.5 modules_image
for module in /root/modules /root/modules/alsa-driver ; do \
if test -d $module; then \
(cd $module; \
if ./debian/rules KVERS="2.4.20" KSRC="/usr/src/linux" \
KMAINT="Dimitri Chausson" KEMAIL="tri2000@gmx.net" \
KDREV="keats+1.5" kdist_image; then \
echo "Module $module processed fine"; \
else \
echo "Module $module failed."; \
echo "Hit return to Continue"; \
read ans; \
fi; \
); \
fi; \
done
/bin/sh: line 1: ./debian/rules: No such file or directory
Module /root/modules failed.
Hit return to Continue
make[1]: Entering directory `/root/modules/alsa-driver'
Using kernel source of /usr/src/linux
Using kernel version of 2.4.20
Using kernel revision of keats+1.5
Using C compiler of gcc
./configure CC=gcc --prefix=/usr --with-kernel=/usr/src/linux --with-moddir=/lib/modules/2.4.20/alsa --with-sequencer=yes --with-isapnp=no --with-debug=detect --with-cards="ymfpci"
checking for gcc... gcc
...
...
...
...
make[2]: Leaving directory `/root/modules/alsa-driver'
rm -f configure-stamp
rm -f build-stamp
make[1]: Leaving directory `/root/modules/alsa-driver'
Module /root/modules/alsa-driver processed fine
keats:/usr/src/linux# ls ..
alsa-driver.tar.gz kernel-source-2.4.20
alsa-modules-2.4.20_0.9.0rc5+2+p0+keats+1.0_i386.deb kernel-source-2.4.20.tar.bz2
alsa-modules-2.4.20_0.9.0rc5+2+p0+keats+1.1_i386.deb linux
alsa-modules-2.4.20_0.9.0rc5+2+p0+keats+1.2_i386.deb linux-2.4.19.tar.gz
kernel-image-2.4.20_keats+1.0_i386.deb linux-2.4.20.tar.gz
kernel-image-2.4.20_keats+1.1_i386.deb lirc-modules-2.4.20_0.6.5-6+keats+1.0_i386.deb
kernel-image-2.4.20_keats+1.2_i386.deb lirc-modules-2.4.20_0.6.5-6+keats+1.1_i386.deb
kernel-image-2.4.20_keats+1.3_i386.deb lirc-modules-2.4.20_0.6.5-6+keats+1.2_i386.deb
kernel-image-2.4.20_keats+1.4_i386.deb lirc-modules-2.4.20_0.6.5-6+keats+1.4_i386.deb
kernel-image-2.4.20_keats+1.5_i386.deb lirc-modules.tar.gz
kernel-source-2.4.18.tar.bz2
keats:/usr/src/linux# ls /root/modules/
alsa-driver alsa-modules-2.4.20_0.9.0rc7-2_i386.deb
## no own version information !!
Reply to: