• I
    autogen.sh: Restore --no-git (avoid git submodule update) · 8915c9cb
    Ian Jackson 提交于
    Prior to 2621d48f "gnulib: delete all gnulib integration",
    one could pass ./autogen.sh --no-git to prevent the libvirt build
    system from running git submodule update.
    
    This feature is needed by systems like the Xen Project CI which want
    to explicitly control the revisions of every tree.  These will
    typically arrange to initialise the submodules check out the right
    version of everything, and then expect the build system not to mess
    with it any more.
    
    Despite to the old documentation comments referring only to gnulib,
    the --no-git feature is required not only because of gnulib but also
    because of the other submodule, src/keycodemapdb.
    
    (And in any case, even if it were no longer required because all the
    submodules were removed, it ought ideally to have been retained as a
    no-op for compaibility reasons.)
    
    So restore the --no-git feature.
    
    Because of the way the argument parsing of autogen.sh works, it is
    easiest to recognise this option only if it comes first.  This works
    for the Xen Project CI, which has always passed this option first.
    
    If something else is using this option (and hasn't introduced a
    different workaround in the meantime), not in the first position,
    then perhaps a more sophisticated approach will be needed.  But I
    think this will do for now.
    Signed-off-by: NIan Jackson <ian.jackson@eu.citrix.com>
    Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
    8915c9cb
autogen.sh 1.2 KB