From: Paul Durrant <Paul.Durrant@citrix.com>
To: 'Juergen Gross' <jgross@suse.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: Anthony Perard <anthony.perard@citrix.com>,
"kraxel@redhat.com" <kraxel@redhat.com>,
"sstabellini@kernel.org" <sstabellini@kernel.org>
Subject: Re: [Qemu-devel] [PATCH v2] configure: use pkg-config for obtaining xen version
Date: Mon, 27 Mar 2017 09:28:18 +0000 [thread overview]
Message-ID: <24e4427dea5d4991bf8e64227886cb86@AMSPEX02CL03.citrite.net> (raw)
In-Reply-To: <552de1bb-46bf-1579-d8b2-763d4612eb44@suse.com>
> -----Original Message-----
> From: Juergen Gross [mailto:jgross@suse.com]
> Sent: 27 March 2017 10:15
> To: Paul Durrant <Paul.Durrant@citrix.com>; qemu-devel@nongnu.org; xen-
> devel@lists.xenproject.org
> Cc: Anthony Perard <anthony.perard@citrix.com>; kraxel@redhat.com;
> sstabellini@kernel.org
> Subject: Re: [PATCH v2] configure: use pkg-config for obtaining xen version
>
> On 27/03/17 11:07, Paul Durrant wrote:
> >> -----Original Message-----
> >> From: Juergen Gross [mailto:jgross@suse.com]
> >> Sent: 27 March 2017 08:43
> >> To: qemu-devel@nongnu.org; xen-devel@lists.xenproject.org
> >> Cc: Anthony Perard <anthony.perard@citrix.com>; kraxel@redhat.com;
> >> sstabellini@kernel.org; Paul Durrant <Paul.Durrant@citrix.com>; Juergen
> >> Gross <jgross@suse.com>
> >> Subject: [PATCH v2] configure: use pkg-config for obtaining xen version
> >>
> >> Instead of trying to guess the Xen version to use by compiling various
> >> test programs first just ask the system via pkg-config. Only if it
> >> can't return the version fall back to the test program scheme.
> >>
> >> If configure is being called with dedicated flags for the Xen libraries
> >> use those instead of the pkg-config output. This will avoid breaking
> >> an in-tree Xen build of an old Xen version while a new Xen version is
> >> installed on the build machine: pkg-config would pick up the installed
> >> Xen config files as the Xen tree wouldn't contain any of them.
> >>
> >> Signed-off-by: Juergen Gross <jgross@suse.com>
> >> ---
> >> V2: - use pkg-config only if no Xen library paths have been specified via
> >> --extra-ldflags
> >> - keep test program for detecting Xen 4.9
> >
> > This all looks plausible but it doesn't seem to be working for me when
> trying to build 4.8. I'm still getting a xen ctrl version of 40900... still trying to
> figure out why.
>
> I suppose you reverted my previous patch?
>
Yes, I reverted that then applied this one.
> Do you happen to have some stale 4.9 libraries in your Xen tree?
>
Yes, it was picking up a libxendevicemodel when it should not have been. It would be handy if the probe compilations used --nostdlib, but that's not regression introduced by your patch. Now that pkg-config is used for out-of-tree builds I guess it may be possible to add that though.
> What happens without this patch?
>
> > Also, the whitespace changes later on in the patch should probably be split
> out.
>
> Hmm, those are just due to the nesting level of the if's changed.
> I don't think they can easily be split out without having a
> malformed indentation.
>
Ok, I see that now I look at the code rather than just the patch. So, having fixed my linkage issue...
Tested-by: Paul Durrant <paul.durrant@citrix.com>
>
> Juergen
next prev parent reply other threads:[~2017-03-27 9:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-27 7:42 [Qemu-devel] [PATCH v2] configure: use pkg-config for obtaining xen version Juergen Gross
2017-03-27 9:07 ` Paul Durrant
2017-03-27 9:14 ` Juergen Gross
2017-03-27 9:28 ` Paul Durrant [this message]
2017-03-27 20:11 ` Stefano Stabellini
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=24e4427dea5d4991bf8e64227886cb86@AMSPEX02CL03.citrite.net \
--to=paul.durrant@citrix.com \
--cc=anthony.perard@citrix.com \
--cc=jgross@suse.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.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).