From: "Jan Beulich" Subject: [PATCH] tools: adjust --datadir option passed to qemu-upstream's configure script Date: Mon, 04 Jun 2012 09:34:34 +0100 Message-ID: <4FCC8F3A020000780008812B@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part92BC1C0A.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part92BC1C0A.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Passing $(SHAREDIR)/qemu-xen isn't compatible with the way os-posix.c:os_find_datadir() works. While one would generally expect that function to honour the --datadir configure option, fixing this is quite a bit more involved than simply adjusting the configure options to match the function's behavior (in that, for an installed binary, it looks in $bindir/../share/qemu). Afaict, so far this can have worked only by virtue of what CONFIG_QEMU_DATADIR points to being populated due to (presumably) some other qemu instance being installed on people's systems (but being absent when running qemu-system-i386 from the dist/ portion of the build tree). Signed-off-by: Jan Beulich --- a/tools/Makefile +++ b/tools/Makefile @@ -155,7 +155,7 @@ subdir-all-qemu-xen-dir subdir-install-q --extra-ldflags=3D"-L$(XEN_ROOT)/tools/libxc \ -L$(XEN_ROOT)/tools/xenstore" \ --bindir=3D$(LIBEXEC) \ - --datadir=3D$(SHAREDIR)/qemu-xen \ + --datadir=3D$(dir $(LIBEXEC))share/qemu \ --disable-kvm \ --python=3D$(PYTHON) \ $(IOEMU_CONFIGURE_CROSS); \ --=__Part92BC1C0A.0__= Content-Type: text/plain; name="tools-qemu-upstream-config.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="tools-qemu-upstream-config.patch" tools: adjust --datadir option passed to qemu-upstream's configure = script=0A=0APassing $(SHAREDIR)/qemu-xen isn't compatible with the = way=0Aos-posix.c:os_find_datadir() works. While one would generally = expect=0Athat function to honour the --datadir configure option, fixing = this is=0Aquite a bit more involved than simply adjusting the configure = options=0Ato match the function's behavior (in that, for an installed = binary, it=0Alooks in $bindir/../share/qemu). Afaict, so far this can have = worked=0Aonly by virtue of what CONFIG_QEMU_DATADIR points to being = populated=0Adue to (presumably) some other qemu instance being installed = on=0Apeople's systems (but being absent when running qemu-system-i386 = from=0Athe dist/ portion of the build tree).=0A=0ASigned-off-by: Jan = Beulich =0A=0A--- a/tools/Makefile=0A+++ b/tools/Makefil= e=0A@@ -155,7 +155,7 @@ subdir-all-qemu-xen-dir subdir-install-q=0A = --extra-ldflags=3D"-L$(XEN_ROOT)/tools/libxc \=0A -L$(XEN_ROO= T)/tools/xenstore" \=0A --bindir=3D$(LIBEXEC) \=0A- = --datadir=3D$(SHAREDIR)/qemu-xen \=0A+ --datadir=3D$(dir = $(LIBEXEC))share/qemu \=0A --disable-kvm \=0A = --python=3D$(PYTHON) \=0A $(IOEMU_CONFIGURE_CROSS); \=0A --=__Part92BC1C0A.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part92BC1C0A.0__=--