Public bug reported:

Hi,

actually I'm building the modules for a Sid system, but I hope it won't
matter.

First problem:
When one uses make-kpkg modules-images without having the kernel-image package 
already installed, the variable VM_UNAME points to a non-existing directory. So 
I replaced VM_UNAME by $(KSRC)/include

Second problem:
The /etc/init.d/vmware script always wants to insmod 
/lib/modules/$KVERS/misc/somefile.o and doesn't even try to use modprobe. How 
did you actually solve this with ubuntu? Have you already tried to ask the 
vmware people first to try modprobe?
As a temporary fix I added a copy to the .ko files, thinking about it again, 
probably a link would also do.

Hmm, how can I attach a patch here? No button and no questions as in
reportbug reports. I'm putting it inline

--- /home/bernd/tmp/vmare/vmware-player-kernel-2.6.15-2.6.15.10/debian/rules    
2006-07-04 23:01:55.000000000 +0200
+++ /usr/src/modules/vmware/debian/rules        2006-07-04 22:56:11.000000000 
+0200
@@ -139,8 +139,8 @@
 build-kernel-stamp:
        dh_testdir
        for i in $(flavours); do \
-               cd $(builddir)/$$i/vmmon-only && $(MAKE) VM_UNAME=$$i; \
-               cd $(builddir)/$$i/vmnet-only && $(MAKE) VM_UNAME=$$i; \
+               cd $(builddir)/$$i/vmmon-only && $(MAKE) 
HEADER_DIR=$(KSRC)/include; \
+               cd $(builddir)/$$i/vmnet-only && $(MAKE) 
HEADER_DIR=$(KSRC)/include; \
        done
        touch build-kernel-stamp

@@ -171,12 +171,14 @@
        dh_installdirs lib/modules/$(KVERS)/misc

        # Build the module
-       cd vmnet-only && $(MAKE) VM_UNAME=$(KVERS)
-       cd vmmon-only && $(MAKE) VM_UNAME=$(KVERS)
+       cd vmnet-only && $(MAKE) HEADER_DIR=$(KSRC)/include
+       cd vmmon-only && $(MAKE) HEADER_DIR=$(KSRC)/include

        # Install the modules
        cp vmnet-only/vmnet.ko 
debian/$(PACKAGE)-modules-$(KVERS)/lib/modules/$(KVERS)/misc
+       cp vmnet-only/vmnet.ko 
debian/$(PACKAGE)-modules-$(KVERS)/lib/modules/$(KVERS)/misc/vmnet.o
        cp vmmon-only/vmmon.ko 
debian/$(PACKAGE)-modules-$(KVERS)/lib/modules/$(KVERS)/misc
+       cp vmmon-only/vmmon.ko 
debian/$(PACKAGE)-modules-$(KVERS)/lib/modules/$(KVERS)/misc/vmmon.o

        dh_installdocs
        dh_installchangelogs


Cheers,
Bernd

** Affects: vmware-player-kernel-2.6.15 (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
patch for rules file
https://launchpad.net/bugs/51890

--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to