From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: Olaf Hering <olaf@aepfle.de>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
xen-devel <xen-devel@lists.xen.org>
Subject: Re: libcacard is been installed to /usr/lib while libdir=/usr/lib64
Date: Wed, 21 May 2014 09:52:14 -0400 [thread overview]
Message-ID: <537CAF8E.5000302@oracle.com> (raw)
In-Reply-To: <20140521105052.GA10202@aepfle.de>
[-- Attachment #1: Type: text/plain, Size: 1694 bytes --]
On 05/21/2014 06:50 AM, Olaf Hering wrote:
> On Wed, May 21, Ian Campbell wrote:
>
>> On Wed, 2014-05-21 at 09:46 +0200, Olaf Hering wrote:
>>> On Tue, May 20, Zhigang Wang wrote:
>>>
>>>> +++ b/tools/Makefile
>>>> @@ -188,11 +188,14 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
>>>> $$source/configure --enable-xen --target-list=i386-softmmu \
>>>> $(QEMU_XEN_ENABLE_DEBUG) \
>>>> --prefix=$(PREFIX) \
>>>
>>> Looks ok to me. You may want to change also --prefix to $PREFIX/lib/xen
>>> with this patch
>>
>> I think it would be nice to get our special qemu build out of general
>> $PATH. Ian J -- do you agree?
>>
>>> and see if anything needs adjustment.
>>
>> libxl certainly will I think, in qemu_xen_path at least
>
> This is already handled by --bindir=, the "if anything needs adjustment"
> means most likely data and /etc paths. But then, qemu is supposed to
> cope with any --prefix= so I guess the different prefix will just work.
Here is my test result with attached patch:
1. qemu_helperdir = libexecdir = $prefix/libexec moves. Affection: /usr/libexec/qemu-bridge-helper moves to /usr/lib/xen/libexec/qemu-bridge-helper.
include/net/net.h:#define DEFAULT_BRIDGE_HELPER CONFIG_QEMU_HELPERDIR "/qemu-bridge-helper"
As the C code already understands this path change, it's not a problem.
2. qemu_confdir = $prefix/etc/qeum moves. Affection: /usr/etc/qemu/target-x86_64.conf moves to /usr/lib/xen/etc/qemu/target-x86_64.conf
Also seems the C code understand this path change.
3. It seems nothing will conflict with system qemu or qemu-kvm any more.
I think it's the right way to go.
I will do more test and report any issues I find.
Thanks,
Zhigang
[-- Attachment #2: xen-tools-qemu-prefix.patch --]
[-- Type: text/x-patch, Size: 1150 bytes --]
commit 50e098b1ea0b2ca0f81e29279071ba230d841b7b
Author: Zhigang Wang <zhigang.x.wang@oracle.com>
Date: Tue May 20 13:30:54 2014 -0400
tools: install qemu libraries to xen private directory and add rpath to it
This patch will prevent our qemu libraries from conflicting with system qemu
libraries.
Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
diff --git a/tools/Makefile b/tools/Makefile
index 992fe3e..c21ec53 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -187,12 +187,15 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
cd qemu-xen-dir; \
$$source/configure --enable-xen --target-list=i386-softmmu \
$(QEMU_XEN_ENABLE_DEBUG) \
- --prefix=$(PREFIX) \
+ --prefix=$(PREFIX)/lib/xen \
+ --libdir=$(PREFIX)/lib/xen/lib \
+ --includedir=$(PREFIX)/lib/xen/include \
--source-path=$$source \
--extra-cflags="-I$(XEN_ROOT)/tools/include \
-I$(XEN_ROOT)/tools/libxc \
-I$(XEN_ROOT)/tools/xenstore \
-I$(XEN_ROOT)/tools/xenstore/compat \
+ -Wl,-rpath=$(PREFIX)/lib/xen/lib \
$(EXTRA_CFLAGS_QEMU_XEN)" \
--extra-ldflags="-L$(XEN_ROOT)/tools/libxc \
-L$(XEN_ROOT)/tools/xenstore" \
[-- Attachment #3: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-05-21 13:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-13 0:10 libcacard is been installed to /usr/lib while libdir=/usr/lib64 Zhigang Wang
2014-05-15 15:10 ` Ian Campbell
2014-05-15 15:54 ` Zhigang Wang
2014-05-20 12:40 ` Ian Campbell
2014-05-20 13:00 ` Zhigang Wang
2014-05-20 13:05 ` Olaf Hering
2014-05-20 13:02 ` Olaf Hering
2014-05-20 13:07 ` Andrew Cooper
2014-05-20 13:21 ` Zhigang Wang
2014-05-20 16:55 ` Zhigang Wang
2014-05-21 7:46 ` Olaf Hering
2014-05-21 10:25 ` Ian Campbell
2014-05-21 10:50 ` Olaf Hering
2014-05-21 13:52 ` Zhigang Wang [this message]
2014-05-21 14:16 ` Ian Campbell
2014-05-28 16:13 ` Zhigang Wang
2014-06-02 14:40 ` Ian Campbell
2014-06-02 14:49 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537CAF8E.5000302@oracle.com \
--to=zhigang.x.wang@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=olaf@aepfle.de \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).