[libvirt] [PATCH] build: avoid infinite autogen loop

Eric Blake eblake at redhat.com
Mon Oct 1 20:53:21 UTC 2012


On 10/01/2012 11:09 AM, Laine Stump wrote:
> On 10/01/2012 11:48 AM, Eric Blake wrote:
>> Several people have reported that if the .gnulib submodule is dirty,
>> then 'make' will go into an infinite loop attempting to rerun bootstrap,
>> because that never cleans up the dirty submodule.  By default, we
>> should halt and make the user investigate, but if the user doesn't
>> know why or care that the submodule is dirty, I also added the ability
>> to 'make CLEAN_SUBMODULE=1' to get things going again.
>>
>> Also, while testing this, I noticed that when a submodule update was
>> needed, 'make' would first run autoreconf, then bootstrap (which
>> reruns autoreconf); adding a strategic dependency allows for less work.
>>
>> * .gnulib: Update to latest, for maint.mk improvements.
>> * cfg.mk (_autogen): Also hook maint.mk, to run before autoreconf.
>> * autogen.sh (bootstrap): Refuse to run if gnulib is dirty, unless
>> user requests discarding gnulib changes.
> 
> ACK. I had saved a directory that was giving me this problem, applied
> this patch, and the loop was broken!
> 
> (I added CLEAN_SUBMODULE=1 as suggested, and this fixed the build).

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121001/b091ff7d/attachment-0001.sig>


More information about the libvir-list mailing list