[OpenAFS] building openafs-modules on debian
david l goodrich
Sun, 27 Jun 2010 22:34:25 -0500
Strangely, it returns valid data:
# perl debian/kernel-version /usr/src/linux
On 6/27/10 10:24 PM, Russ Allbery wrote:
> david l goodrich<email@example.com> writes:
>> It exists:
>> # cat /usr/src/linux-headers-2.6.34-linode26/include/config/kernel.release
>> But I don't know what that means for me. Use 1.4.12? Use an older
>> kernel? Curl up in a ball and sob uncontrollably?
> The kernel-version Perl script in the OpenAFS module package directory is
> failing to extract a kernel version from your kernel headers. I'd try
> running it by hand to see what it outputs and try to figure out why it's
> failing. You could also add warn statements to it to make it more obvious
> what it's doing.
> The relevant code of the current Debian packages is:
> # Find kernel build information.
> ifndef KSRC
> KSRC = /usr/src/linux
> ifndef KPKG_DEST_DIR
> KPKG_DEST_DIR = ..
> KVERS := $(shell perl debian/kernel-version $(KSRC))
> export KSRC
> export KVERS
> export KPKG_DEST_DIR
> I don't know of anything that's specifically been fixed in later versions
> of the OpenAFS packaging that may be related to what you're running into.
> Usually when the module won't build against a custom kernel, it ends up
> being something that wasn't built properly in the custom kernel build that
> causes it to not look enough like the regular kernel headers.