Skip to contentSkip to conversation

Minor install fix

PATCH John Lenz 2 participants 2 messages Jul 14, 2007 – Jul 15, 2007 1 message not in the archive KVM

lore
Share & tools
lore

John Lenz

author
#0 lore raw

I noticed kvm 29 added a command into make install to move the distro installed kvm.ko modules out of the way.

But for me, I had already removed the drivers/kvm directory, so make install was getting a file does not exist error. So I added a test for the directory.

John

kernel/Makefile 2007-07-13 20:13:45.000000000 -0500 renamed from kernel/Makefile 2007-07-12 05:20:47.000000000 -0500 +3 -1
@@ -41,7 +41,9 @@
 install:
        mkdir -p $(DESTDIR)/$(INSTALLDIR)
        cp *.ko $(DESTDIR)/$(INSTALLDIR)
-       for i in $(ORIGMODDIR)/drivers/kvm/*.ko; do mv $$i $$i.orig; done
+       if [ -d $(ORIGMODDIR)/drivers/kvm ]; then \
+         for i in $(ORIGMODDIR)/drivers/kvm/*.ko; do mv $$i $$i.orig; done \
+       fi
        /sbin/depmod -a
 
 tmpspec = .tmp.kvm-kmod.spec

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

A message that is not in the archive (sent off-list or not yet received): 469824E8.1010809-d0mtIEKrxfl4piUD7e9S/[email protected]

#2 lore raw
Quoted 9 lines · John Lenz

I noticed kvm 29 added a command into make install to move the distro installed kvm.ko modules out of the way.

But for me, I had already removed the drivers/kvm directory, so make install was getting a file does not exist error. So I added a test for the directory.

I fixed this in a slightly different way. Thanks.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/