Bug 979360

Summary: Libvirt fails to Bootstrap fails for local gnulib with 1.0.6
Product: [Community] Virtualization Tools Reporter: chandrashekar shastri <cshastri>
Component: libvirtAssignee: Eric Blake <eblake>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, eblake
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-09 22:46:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description chandrashekar shastri 2013-06-28 10:15:48 UTC
Description of problem:


Version-Release number of selected component (if applicable): 1.0.6


The Libvirt compliation fails to bootstarp for local gnulib. We do not have outbound access for the test machines.
So, we ll pull the gnulib from and copy to the test machines.

When we run ./bootstrap --no-git  --gnulib-srcdir=/path/to/local, below is the error:

./bootstrap: Bootstrapping from checked-out libvirt sources...
./bootstrap: consider installing git-merge-changelog from gnulib
./bootstrap: getting gnulib files...
fatal: Needed a single revision
Unable to find current revision in submodule path '.gnulib'


If we run autogen.sh it tries to pull from git though the $GNULIB_SRCDIR is exported with the local gnulib.

./autogen.sh '--no-git'
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
running bootstrap --no-git...
./bootstrap: Bootstrapping from checked-out libvirt sources...
./bootstrap: consider installing git-merge-changelog from gnulib
./bootstrap: getting gnulib files...
fatal: Unable to look up git.sv.gnu.org (port 9418) (Name or service not known)
Unable to fetch in submodule path '.gnulib'
Failed to bootstrap, please investigate.

Comment 1 Eric Blake 2013-07-03 21:08:52 UTC
Upstream patch proposed:
https://www.redhat.com/archives/libvir-list/2013-July/msg00232.html

Comment 2 Eric Blake 2013-07-09 22:46:18 UTC
Fixed in libvirt.git for 1.1.1.
commit 1e503ee534af166d8bbcdd9857fa5946449634b6
Author: Eric Blake <eblake>
Date:   Wed Jul 3 14:43:11 2013 -0600

    build: honor autogen.sh --no-git
    
    Based on a report by Chandrashekar Shastri, at
    https://bugzilla.redhat.com/show_bug.cgi?id=979360
    
    On systems where git cannot access the outside world, a developer
    can instead arrange to get a copy of gnulib at the right commit
    via side channels (such as NFS share drives), set GNULIB_SRCDIR,
    then use ./autogen.sh --no-git.  In this setup, we will now
    avoid direct use of git.  Of course, this means no automatic
    gnulib updates when libvirt.git updates its submodule, but it
    is expected that any developer in such a situation is already
    prepared to deal with the fallout.
    
    * .gnulib: Update to latest, for bootstrap.
    * bootstrap: Synchronize from gnulib.
    * autogen.sh (no_git): Avoid git when requested.
    * cfg.mk (_update_required): Skip automatic rerun of bootstrap if
    we can't use git.
    * docs/compiling.html.in: Document this setup.
    * docs/hacking.html.in: Mention this.
    * HACKING: Regenerate.
    
    Signed-off-by: Eric Blake <eblake>