public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Akio Takebe <takebe_akio-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [Patch][RFC] fix make rpm
Date: Tue, 30 Oct 2007 14:24:21 +0200	[thread overview]
Message-ID: <47272275.7020703@qumranet.com> (raw)
In-Reply-To: <CEC81AEEA48120takebe_akio-+CUm20s59erQFUHtdCDX3A@public.gmane.org>

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.
>
> [root@vmx08 kvm-49]# make rpm
> mkdir -p SOURCES SRPMS
> mkdir: `SOURCES' exists but is not a directory
> make: *** [srpm] Error 1
> [root@vmx08 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.
>
> [root@vmx08 kvm-49]# rm SOURCES 
> rm: remove regular file `SOURCES'? yes
> [root@vmx08 kvm-49]# mkdir SOURCES
> [root@vmx08 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
> [root@vmx08 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/

  parent reply	other threads:[~2007-10-30 12:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-30 10:15 [Patch][RFC] fix make rpm Akio Takebe
     [not found] ` <CBC81ADDCF7D33takebe_akio-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2007-10-30 11:59   ` Avi Kivity
     [not found]     ` <47271CB2.1020503-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-30 12:16       ` Akio Takebe
     [not found]         ` <CEC81AEEA48120takebe_akio-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2007-10-30 12:24           ` Avi Kivity [this message]
2007-10-30 15:10       ` Hollis Blanchard
2007-10-31  0:39         ` Avi Kivity
     [not found]           ` <4727CEDF.8060304-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-31 15:25             ` Hollis Blanchard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47272275.7020703@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=takebe_akio-+CUm20s59erQFUHtdCDX3A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox