Bug 979360 - Libvirt fails to Bootstrap fails for local gnulib with 1.0.6
Summary: Libvirt fails to Bootstrap fails for local gnulib with 1.0.6
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Eric Blake
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-28 10:15 UTC by chandrashekar shastri
Modified: 2013-07-09 22:46 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-09 22:46:18 UTC
Embargoed:


Attachments (Terms of Use)

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>


Note You need to log in before you can comment on or make changes to this bug.