• D
    util: activate directory override when used from library · b1b878c5
    Daniel P. Berrangé 提交于
    The Perl bindings for libvirt use the test driver for unit tests. This
    tries to load the cpu_map/index.xml file, and when run from an
    uninstalled build will fail.
    
    The problem is that virFileActivateDirOverride is called by our various
    binaries like libvirtd, virsh, but is not called when a 3rd party app
    uses libvirt.so
    
    To deal with this we allow the LIBVIRT_DIR_OVERRIDE=1 env variable to be
    set and make virInitialize look for this. The 'run' script will set it,
    so now build using this script to run against an uninstalled tree we
    will correctly resolve files to the source tree.
    Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
    Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
    b1b878c5
run.in 2.3 KB