make install in zaptel copies modules to wrong location with Ubuntu 5.10

Mike Fedyk mfedyk at mikefedyk.com
Mon May 22 02:23:59 BST 2006


I sent this to the asterisk-dev list a few days ago, and it looks like
the issue is Ubuntu and Debian Etch specific.

http://lists.digium.com/pipermail/asterisk-dev/2006-May/020751.html

It isn't reproducible on debian stable and a quick grep shows why:

$ grep -i extraversion /lib/modules/2.6.8-2-686/build/Makefile
EXTRAVERSION =
ifeq ($(EXTRAVERSION),)
EXTRAVERSION := $(shell [ ! -f .extraversion ] || cat .extraversion)
KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
export  VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION KERNELRELEASE ARCH \

It is reproducible in -testing though:

$ grep -i extraversion /lib/modules/2.6.15-1-686-smp/build/Makefile
EXTRAVERSION =
KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION)
export  VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION LOCALVERSION
KERNELRELEASE \

Testing has a "localversion" file though which contains the portion that
should be in extraversion:

$ cat /lib/modules/2.6.15-1-686-smp/build/localversion
-1-686-smp

Ubuntu's kernel doesn't have a file like "localversion".

It looks like this is a Ubuntu and Debian Etch specific bug.  Is there
any chance this fix will get into a future update for breezy?

Let's get this fixed.  What are the next steps?

Mike

========== to asterisk-dev:

Hi,

I did an install last week on Ubuntu 5.10 recently and when running make
install, instead of installing under /lib/modules/`uname -r` (which was
2.6.12-9-686) it went in /lib/modules/2.6.12.

I traced the issue to the call to "make modules_install" from the zaptel
Makefile to the packaged Makefile for the kernel in ubuntu.  It didn't
have $(EXTRAVERSION) defined properly.

Now I'm no Makefile expert and I realize it is a bug in Ubuntu (and
possibly other distributions), but think there should be a work-around
in the zaptel Makefile.

One possible solution is to just copy the kernel modules in the zaptel
Makefile instead of calling the kernel Makefile.  What do you think?

Mike
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev





More information about the ubuntu-devel mailing list