File d70a51d5-pygrub-path.patch of Package libvirt.11695

commit d70a51d5ea0b9aecb429334714e8331f44fb9df7
Author: Ian Campbell <>
Date:   Fri Nov 21 14:32:53 2014 +0000

    libxl: Allow libxl to find pygrub binary.
    Specifying an explicit path to pygrub (e.g. BINDIR "/pygrub") only works if
    Xen and libvirt happen to be installed to the same prefix. A more flexible
    approach is to simply specify "pygrub" which will cause libxl to use the
    correct path which it knows (since it is built with the same prefix as pygrub).
    This is particular problematic in the Debian packaging, since the Debian Xen
    package relocates pygrub into a libexec dir, however I think this change makes
    sense upstream.
    Signed-off-by: Ian Campbell <>
    Signed-off-by: Jim Fehlig <>

Index: libvirt-1.2.5/src/libxl/libxl_conf.h
--- libvirt-1.2.5.orig/src/libxl/libxl_conf.h
+++ libvirt-1.2.5/src/libxl/libxl_conf.h
@@ -53,7 +53,7 @@
 # define LIBXL_LIB_DIR LOCALSTATEDIR "/lib/libvirt/libxl"
 # define LIBXL_SAVE_DIR LIBXL_LIB_DIR "/save"
 # define LIBXL_DUMP_DIR LIBXL_LIB_DIR "/dump"
+# define LIBXL_BOOTLOADER_PATH "pygrub"
 typedef struct _libxlDriverPrivate libxlDriverPrivate;