qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] 答复: Re: [PATCH v2 RESEND] Makefile: Fix owner and group fo


From: Lin Ma
Subject: [Qemu-devel] 答复: Re: [PATCH v2 RESEND] Makefile: Fix owner and group for qemu-version.h.tmp
Date: Mon, 13 Feb 2017 04:53:55 -0700


>>> Paolo Bonzini <address@hidden> 2017/2/13 星期一 下午 6:07 >>>
>
>
>On 13/02/2017 10:51, Lin Ma wrote:
>> By commit 67a1de0d, When we perform 'git pull && make && sudo make install',
>> In 'make' stage a qemu-version.h.tmp will be generated. If the content of
>> qemu-version.h.tmp and qemu-version.h aren't consistent, The 
>> qemu-version.h.tmp
>> will be renamed to qemu-version.h. Because of the target FORCE, The same 
>> action
>> will be do again in 'make install' stage.
>
>But why does the content of .h and .h.tmp not match during "make install"?
The content of qemu-version.h recorded the git head info of last build.
After 'git pull && make ', Because the content of qemu-version.h.tmp is 
generated
based on the lastest git describe, Now this .h.tmp and the old .h aren't 
consistent,
So this .h.tmp will be renamed to qemu-version.h.
Then during 'sudo make install', because there is no .h.tmp any more, a new one 
will be
generated with privileged permissions.

Thanks,
Lin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]