Akio Takebe wrote:
> Hi, Avi
>
> Thank you for your comments.
>
>
>   
>>> This patch fix "make rpm".
>>> When I used the rpm option, I got some error.
>>> So I fixed it, but it is a just sample?
>>>
>>>   
>>>       
>> 'make rpm' works for me on F7 (after I fixed fallout from the libkvm 
>> separation patch).  What distribution did you run it on?  What error did 
>> you get?
>>
>>     
> I used RHEL5. I got the following error at fist.
>
> [EMAIL PROTECTED] kvm-49]# make rpm
> mkdir -p SOURCES SRPMS
> mkdir: `SOURCES' exists but is not a directory
> make: *** [srpm] Error 1
> [EMAIL PROTECTED] kvm-49]# 
>   

Ah, SOURCES only exists in the distributed package, not in the git tree. 
That's why I never got an error. It's probably best to push all the rpm 
build directories under a new subdirectory rpm/.

> So I retried it after remaking SOURCES.
>
> [EMAIL PROTECTED] kvm-49]# rm SOURCES 
> rm: remove regular file `SOURCES'? yes
> [EMAIL PROTECTED] kvm-49]# mkdir SOURCES
> [EMAIL PROTECTED] kvm-49]# make rpm
> mkdir -p SOURCES SRPMS
> sed 's/^Release:.*/Release: devel/' kvm.spec > .tmp.kvm.spec
> tar czf SOURCES/kvm.tar.gz qemu
> tar czf SOURCES/user.tar.gz user
> tar czf SOURCES/kernel.tar.gz kernel
> tar czf SOURCES/scripts.tar.gz scripts
> cp Makefile configure kvm_stat SOURCES
> rpmbuild  --define="_topdir $(pwd)" -bs .tmp.kvm.spec
> error: types must match
> error: /root/kvm-49/.tmp.kvm.spec:18: parseExpressionBoolean returns -1
>   

This can be fixed by updating the check on line 18 to include RHEL. We 
do need the BuildRequires below...

> error: Package has no %description: kvm
> make: *** [srpm] Error 1
> [EMAIL PROTECTED] kvm-49]# 
>
> After I fixed above, I got some more errors...
>   

-- 
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to