On Tue, Mar 04, 2003 at 03:09:20PM +0100, Dimitri Chausson wrote: > Hi, > > I tried to compile version 0.9.0rc7-2 of alsa-source with make-kpkg, but I > didn't expect this result : > > ## Using kernel-package_8.020_all.deb > > keats:/usr/src/linux# make menuconfig > keats:/usr/src/linux# MODULE_LOC="~/modules" > keats:/usr/src/linux# make-kpkg clean > .. > .. > > keats:/usr/src/linux# make-kpkg --revision=keats+1.4 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' > > ## So it builds correctly > > keats:/usr/src/linux# make-kpkg --revision=keats+1.4 modules_image > for module in ; do \ > if test -d $module; then \ > (cd $module; \ > if ./debian/rules KVERS="2.4.20" KSRC="/usr/src/linux" \ > KMAINT="Dimitri Chausson" KEMAIL="[EMAIL > PROTECTED]" \ > KDREV="keats+1.4" kdist_image; then \ > echo "Module $module processed fine"; \ > else \ > echo "Module $module failed."; \ > echo "Hit return to Continue"; \ > read ans; \ > fi; \ > ); \ > fi; \ > done > > ## Don't know why it doesn't do anything here > ## If I move ~/modules to /usr/src/, it processes but just produce a file > alsa-modules-2.4.20_0.9.0rc7-2_i386.deb (without my local version number) in > /usr/src/modules instead of alsa-modules-2.4.20_0.9.0rc7-2+keats+1.4_i386.deb > in /usr/src > ## Am I setting the MODULE_LOC environment variable the wrong way ?? > > Maybe some of you can tell me where the problem is.
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)
valid_modules:=
# See what modules we are talking about
ifeq ($(strip $(MODULES_ENABLED)),YES)
ifneq ($(strip $(KPKG_SELECTED_MODULES)),)
canonical_modules=$(subst
$(comma),$(space),$(KPKG_SELECTED_MODULES))
else
canonical_modules=$(shell test -e $(MODULE_LOC) && find
$(MODULE_LOC) -follow -maxdepth 1 -type d -print | egrep -v '^$(MODULE_LOC)$$')
endif
# Now, if we have any modules at all, they are in canonical_modules
ifneq ($(strip $(canonical_modules)),)
# modules can have the full path, or just the name of the
module. We
# make all the modules ahve absolute paths by fleshing them out.
path_modules :=$(filter /%, $(canonical_modules))
no_path_modules:=$(filter-out /%, $(canonical_modules))
fleshed_out :=$(foreach
mod,$(no_path_modules),$(MODULE_LOC)/$(mod))
# Hmmph. recreate the canonical modules; now everything has a
full
# path name.
canonical_modules:=$(path_modules) $(fleshed_out)
# test to see if the dir names are real
valid_modules = $(shell for dir in $(canonical_modules); do \
if [ -d $$dir ]; then \
echo $$dir; \
fi; \
done)
endif
endif
So try:
find ~/modules -follow -maxdepth 1 -type d -print |grep -v '^~/modules$'
and see what you get...
(BTW, did you try /root/modules instead, in case the '~' is causing
issues?)
--
-----------------------------------------------------------
Paul "TBBle" Hampson, MCSE
6th year CompSci/Asian Studies student, ANU
The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361)
[EMAIL PROTECTED]
Of course Pacman didn't influence us as kids. If it did,
we'd be running around in darkened rooms, popping pills and
listening to repetitive music.
-- Kristian Wilson, Nintendo, Inc, 1989
This email is licensed to the recipient for non-commercial
use, duplication and distribution.
-----------------------------------------------------------
pgpZZsMcMmoof.pgp
Description: PGP signature

