tools/configure: Add QEMU dependencies
v2 cover tools/configure: Add QEMU dependencies
Hello,
This small patch series replaces the patch [1] sent earlier.
Sincerely yours,
[1] https://patches.linaro.org/43077/
Julien Grall (2):
tools/configure: Check if Glib is present only when building QEMU tools/configure: Check if pixman is present on the system when
building QEMU
tools/configure.ac | 5 +++++ 1 file changed, 5 insertions(+)
Signature · 1 line
2.1.4
PATCH v2 1/2 tools/configure: Check if Glib is present only when building QEMU
---
This patch requires to regenerate tools/configure
Changes in v2:
- Patch added
--- tools/configure.ac | 4 ++++ 1 file changed, 4 insertions(+)
tools/configure.ac +4 -0
@@ -322,7 +322,11 @@ i[[3456]]86|x86_64) esac AX_CHECK_UUID AX_CHECK_CURSES + +dnl Glib 2.0 is only required when QEMU is built +AS_IF([test "x$qemu_xen" = "xy"], [ PKG_CHECK_MODULES(glib, [glib-2.0 >= 2.12]) +]) AX_CHECK_FETCHER # Checks for libraries.
Signature · 1 line
2.1.4
PATCH v2 2/2 tools/configure: Check if pixman is present on the system when building QEMU
In reply to Julien GrallQEMU upstream requires the use of pixman. When pixman is not present the system, the configure of QEMU will fail with:
ERROR: pixman not present. Your options:
(1) Preferred: Install the pixman devel package (any recent distro should have packages as Xorg needs pixman too).
(2) Fetch the pixman submodule, using:
git submodule update --init pixman
I think we can use by default the version on the system. So check it a Xen configuration time to avoid a build issue later.
---
This patch requires to regenerate tools/configure.
Changes in v2:
- Only check if pixman is present when building QEMU
--- tools/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tools/configure.ac +2 -1
@@ -323,9 +323,10 @@ esac AX_CHECK_UUID AX_CHECK_CURSES -dnl Glib 2.0 is only required when QEMU is built +dnl Glib 2.0 and pixman are only required when QEMU is built AS_IF([test "x$qemu_xen" = "xy"], [ PKG_CHECK_MODULES(glib, [glib-2.0 >= 2.12]) +PKG_CHECK_MODULES(pixman, pixman-1) ]) AX_CHECK_FETCHER
Signature · 1 line
2.1.4
Re: [PATCH v2 2/2] tools/configure: Check if pixman is present on the system when building QEMU
Quoted 28 lines · Julien Grall
QEMU upstream requires the use of pixman. When pixman is not present the system, the configure of QEMU will fail with:
ERROR: pixman not present. Your options:
(1) Preferred: Install the pixman devel package (any recent distro should have packages as Xorg needs pixman too).
(2) Fetch the pixman submodule, using:
git submodule update --init pixmanI think we can use by default the version on the system. So check it a Xen configuration time to avoid a build issue later.
Signed-off-by Julien Grall <[email protected]>---
This patch requires to regeneratetools/configure.Changes in v2:
- Only check if pixman is present when building QEMU--- tools/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tools/configure.ac +0
-0
tools/configure.ac esac · line 326
Quoted 5 lines
tools/configure.ac +1
-1@@ -323,9 +323,10 @@ esac AX_CHECK_UUID AX_CHECK_CURSES -dnl Glib 2.0 is only required when QEMU is built +dnl Glib 2.0 and pixman are only required when QEMU is built
Rather than an ever increasing list here I propose to say "The following are only...", and perhaps insert an "upstream" before QEMU, unless these are needed for trad too (in which case the condition isn't quite right). I think glib and pixman are only for upstream though.
I can do that on commit though if you like.
Quoted 6 lines
tools/configure.ac +1
-0AS_IF([test "x$qemu_xen" = "xy"], [ PKG_CHECK_MODULES(glib, [glib-2.0 >= 2.12]) +PKG_CHECK_MODULES(pixman, pixman-1) ]) AX_CHECK_FETCHER
Re: [PATCH v2 2/2] tools/configure: Check if pixman is present on the system when building QEMU
Ian Campbell writes ("Re: [PATCH v2 2/2] tools/configure: Check if pixman is present on the system when building QEMU"):
Quoted 10 lines · Julien Grall
tools/configure.ac esac · line 326
Quoted 2 lines
tools/configure.ac +1
-1-dnl Glib 2.0 is only required when QEMU is built +dnl Glib 2.0 and pixman are only required when QEMU is builtRather than an ever increasing list here I propose to say "The following are only...", and perhaps insert an "upstream" before QEMU, unless these are needed for trad too (in which case the condition isn't quite right). I think glib and pixman are only for upstream though.
I can do that on commit though if you like.
Either way is fine by me.
Ian.
Re: [PATCH v2 2/2] tools/configure: Check if pixman is present on the system when building QEMU
In reply to Ian CampbellHi Ian,
Quoted 32 lines · Ian Campbell
Quoted 31 lines · Julien Grall
QEMU upstream requires the use of pixman. When pixman is not present the system, the configure of QEMU will fail with:
ERROR: pixman not present. Your options:
(1) Preferred: Install the pixman devel package (any recent distro should have packages as Xorg needs pixman too).
(2) Fetch the pixman submodule, using:
git submodule update --init pixmanI think we can use by default the version on the system. So check it a Xen configuration time to avoid a build issue later.
Signed-off-by Julien Grall <[email protected]>---
This patch requires to regeneratetools/configure.Changes in v2:
- Only check if pixman is present when building QEMU--- tools/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tools/configure.ac +0
-0@@ -323,9 +323,10 @@ esac AX_CHECK_UUID AX_CHECK_CURSES
Quoted 7 lines
tools/configure.ac esac · line 326
Quoted 2 lines
tools/configure.ac +1
-1-dnl Glib 2.0 is only required when QEMU is built +dnl Glib 2.0 and pixman are only required when QEMU is builtRather than an ever increasing list here I propose to say "The following are only...", and perhaps insert an "upstream" before QEMU, unless these are needed for trad too (in which case the condition isn't quite right). I think glib and pixman are only for upstream though.
Right.
Quoted 1 line
I can do that on commit though if you like.
Yes please.
Regards,
Signature · 1 line
Julien Grall
Re: [PATCH v2 2/2] tools/configure: Check if pixman is present on the system when building QEMU
Quoted 43 lines · Julien Grall
Hi Ian,
Quoted 32 lines · Ian Campbell
Quoted 31 lines · Julien Grall
QEMU upstream requires the use of pixman. When pixman is not present the system, the configure of QEMU will fail with:
ERROR: pixman not present. Your options:
(1) Preferred: Install the pixman devel package (any recent distro should have packages as Xorg needs pixman too).
(2) Fetch the pixman submodule, using:
git submodule update --init pixmanI think we can use by default the version on the system. So check it a Xen configuration time to avoid a build issue later.
Signed-off-by Julien Grall <[email protected]>---
This patch requires to regeneratetools/configure.Changes in v2:
- Only check if pixman is present when building QEMU--- tools/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tools/configure.ac +0
-0@@ -323,9 +323,10 @@ esac AX_CHECK_UUID AX_CHECK_CURSESQuoted 7 lines
tools/configure.ac esac · line 326
Quoted 2 lines
tools/configure.ac +1
-1-dnl Glib 2.0 is only required when QEMU is built +dnl Glib 2.0 and pixman are only required when QEMU is builtRather than an ever increasing list here I propose to say "The following are only...", and perhaps insert an "upstream" before QEMU, unless these are needed for trad too (in which case the condition isn't quite right). I think glib and pixman are only for upstream though.
Quoted 5 lines
Right.
Quoted 1 line
I can do that on commit though if you like.
Yes please.
Applied and done, with Ian and my acks.
I also reran autogen.sh after each patch.
I happened to notice in the diff against configure:
+Alternatively, you may set the environment variables pixman_CFLAGS +and pixman_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5
I'm imagining this is true even though we don't use pixman ourselves, since we don't censor the envvars we pass to qemu's real configure. Assuming qemu uses pkg-config I suppose.
I don't propose we need to do anything except keep this in mind if people start saying they were told to uxe pixman_CFLAGS and it didn't do what they has been told it would.
Ian.
v2 cover tools/configure: Add QEMU dependencies
In reply to Julien GrallJulien Grall writes ("[PATCH v2 0/2] tools/configure: Add QEMU dependencies"):
Quoted 1 line
This small patch series replaces the patch [1] sent earlier.
Both:
Thanks,
Ian.