[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: openafs-modules-source build with kernel-heades



Close but no cigar.  I get these errors:

<shell output>
awk: cannot open /usr/src/linux/Makefile (No such file or directory)
-- repeated many times, snipped--
awk: cannot open /usr/src/linux/Makefile (No such file or directory)
make[1]: Entering directory `/usr/src/modules/openafs'
test -f debian/rules
test `id -u` = "0"
rm -rf debian/openafs-modules- debian/substvars
install -d debian/openafs-modules-
install -d -g root -o root -m 755
debian/openafs-modules-/lib/modules/`awk '{ if (NR==1) v=$3; else if
(NR==2) p=$3; else if (NR==3) s=$3; else if (NR==4) { e=$3; exit; } }
END { printf("%s.%s.%s%s\n",v,p,s,e); }' /usr/src/linux/Makefile`/fs
awk: cannot open /usr/src/linux/Makefile (No such file or directory)
install -g root -o root -m 755 
dest/root.client/usr/vice/etc/modload/*.o \
        debian/openafs-modules-/lib/modules/`awk '{ if (NR==1) v=$3;
else if (NR==2) p=$3; else if (NR==3) s=$3; else if (NR==4) { e=$3;
exit; } } END { printf("%s.%s.%s%s\n",v,p,s,e); }'
/usr/src/linux/Makefile`/fs
awk: cannot open /usr/src/linux/Makefile (No such file or directory)
install: cannot stat `dest/root.client/usr/vice/etc/modload/*.o': Too
many levels of symbolic links
make[1]: *** [binary-modules] Error 1
make[1]: Leaving directory `/usr/src/modules/openafs'
make: *** [kdist_image] Error 2
</shell output>

It seems that the presence of linux/Makefile is hard-coded in the rules
file, specifcly in the determination of KVERS.  Since I am specifying
that variable from the shell, I simply commented out that part of the
rules makefile, and got these errors instead:

<shell output>
illuvatar:/usr/src/modules/openafs# KVERS=2.4.18-686 KSRC=/usr/src/linux
debian/rules kdist_image
/usr/bin/make  -f debian/rules MODDIR=/usr/src/linux/.. binary-modules
make[1]: Entering directory `/usr/src/modules/openafs'
test -f debian/rules
test `id -u` = "0"
rm -rf debian/openafs-modules-2.4.18-686 debian/substvars
install -d debian/openafs-modules-2.4.18-686
install -d -g root -o root -m 755
debian/openafs-modules-2.4.18-686/lib/modules/2.4.18-686/fs
install -g root -o root -m 755 
dest/root.client/usr/vice/etc/modload/*.o \
        debian/openafs-modules-2.4.18-686/lib/modules/2.4.18-686/fs
install: cannot stat `dest/root.client/usr/vice/etc/modload/*.o': Too
many levels of symbolic links
make[1]: *** [binary-modules] Error 1
make[1]: Leaving directory `/usr/src/modules/openafs'
make: *** [kdist_image] Error 2
</shell output>

Any ideas?

Thanks,
Jonathan



On Mon, 2003-05-05 at 20:55, David Z Maze wrote:
> Jonathan Brandmeyer <jbrandmeyer@earthlink.net> writes:
> 
> > What is the debian/rules target that I should use to build this package
> > against kernel-headers for a pre-built kernel-image?  
> >
> > Is there any kind of standard for this?  The nvidia-kernel-src package
> > uses binary_modules, but that isn't a valid target for the rules
> > file.
> 
> In general, 'make-kpkg modules-*' will call 'debian/rules kdist-*',
> for * being (empty), 'image', 'clean'.  So if you pass all of the
> right command-line parameters to pretend to be kernel-package (KSRC
> and KVERS come to mind), then something like this should work
> (probably):
> 
> > openafs-modules-source 1.2.9
> > kernel-image-2.4.18-686
> > kernel-headers-2.4.18-686
> 
>   debian/rules kdist-image KDREV=2.4.18-1 KVERS=2.4.18-686 \
>     KSRC=/usr/src/kernel-headers-2.4.18-686



Reply to: