Skip to contentSkip to conversation

tools/configure: Check if pixman is present on the system

PATCH In review Julien Grall 6 participants 14 messages Jan 13, 2015 – Jan 14, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/configure: Check if pixman is present on the system

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 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.

---
 tools/configure.ac | 1 +
 1 file changed, 1 insertion(+)
tools/configure.ac +1 -0
index 1ac63a3..321b645 100644
@@ -325,6 +325,7 @@ esac
  AX_CHECK_UUID
  AX_CHECK_CURSES
 PKG_CHECK_MODULES(glib, [glib-2.0 >= 2.12])
+PKG_CHECK_MODULES(pixman, pixman-1)
 AX_CHECK_FETCHER
 
 # Checks for libraries.
Signature · 1 line
2.1.4
#1 lore raw
Quoted 4 lines
Quoted 1 line
Quoted 1 line

Julien Grall <[email protected]> 01/13/15 7:17 PM >>>

QEMU upstream requires the use of pixman. When pixman is not present the system, the configure of QEMU will fail with:

Quoted 8 lines

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.

Since qemu building isn't a required part of building the tools, is a check in the tools configure process really an appropriate thing to do?

Jan

#2 lore raw
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line

Julien Grall <[email protected]> 01/13/15 7:17 PM >>>

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 pixman

Quoted 5 lines
Quoted 2 lines

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.

Since qemu building isn't a required part of building the tools, is a check in the tools configure process really an appropriate thing to do?

It's quite annoying as a user to have configure appear to succeed and then the build to fail due to a missing dependency (whether in a 3rd party component or not).

We could make this check conditional on --with-qemu-system not being given, but given the library is readily available I don't think its the end of the world to have a potentially unnecessary check.

A far more heavy weight (but probably better) solution would be to arrange for the clone (and necessary downloads) + submodule configure to happen at configure rather than build time. That's a much bigger job though and I wouldn't expect anyone to take that on unless they are super duper keen.

Ian.

#3 lore raw
Quoted 25 lines · Ian Campbell
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line

Julien Grall <[email protected]> 01/13/15 7:17 PM >>>

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 pixman

Quoted 5 lines
Quoted 2 lines

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.

Since qemu building isn't a required part of building the tools, is a check in the tools configure process really an appropriate thing to do?

It's quite annoying as a user to have configure appear to succeed and then the build to fail due to a missing dependency (whether in a 3rd party component or not).

We could make this check conditional on --with-qemu-system not being given, but given the library is readily available I don't think its the end of the world to have a potentially unnecessary check.

Quoted 6 lines

A far more heavy weight (but probably better) solution would be to arrange for the clone (and necessary downloads) + submodule configure to happen at configure rather than build time. That's a much bigger job though and I wouldn't expect anyone to take that on unless they are super duper keen.

Or we can state clearly in README / INSTALL that Xen's configure doesn't check for external projects' dependencies so that we don't end up adding check for every new dependency in QEMU. Just my 2 cents.

Wei.

Quoted 2 lines

Ian.

#4 lore raw
Quoted 33 lines · Wei Liu
Quoted 25 lines · Ian Campbell
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line

Julien Grall <[email protected]> 01/13/15 7:17 PM >>>

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 pixman

Quoted 5 lines
Quoted 2 lines

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.

Since qemu building isn't a required part of building the tools, is a check in the tools configure process really an appropriate thing to do?

It's quite annoying as a user to have configure appear to succeed and then the build to fail due to a missing dependency (whether in a 3rd party component or not).

We could make this check conditional on --with-qemu-system not being given, but given the library is readily available I don't think its the end of the world to have a potentially unnecessary check.

Quoted 6 lines

A far more heavy weight (but probably better) solution would be to arrange for the clone (and necessary downloads) + submodule configure to happen at configure rather than build time. That's a much bigger job though and I wouldn't expect anyone to take that on unless they are super duper keen.

Quoted 3 lines

Or we can state clearly in README / INSTALL that Xen's configure doesn't check for external projects' dependencies so that we don't end up adding check for every new dependency in QEMU. Just my 2 cents.

Having it written down doesn't make it any less annoying when you trip over it though ;-)

(I'm fine if this is the consensus though)

Ian.

#5 lore raw
In reply to Wei Liu
Quoted 33 lines · Wei Liu
Quoted 25 lines · Ian Campbell
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line

Julien Grall <[email protected]> 01/13/15 7:17 PM >>>

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 pixman

Quoted 5 lines
Quoted 2 lines

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.

Since qemu building isn't a required part of building the tools, is a check in the tools configure process really an appropriate thing to do?

It's quite annoying as a user to have configure appear to succeed and then the build to fail due to a missing dependency (whether in a 3rd party component or not).

We could make this check conditional on --with-qemu-system not being given, but given the library is readily available I don't think its the end of the world to have a potentially unnecessary check.

Quoted 6 lines

A far more heavy weight (but probably better) solution would be to arrange for the clone (and necessary downloads) + submodule configure to happen at configure rather than build time. That's a much bigger job though and I wouldn't expect anyone to take that on unless they are super duper keen.

Quoted 3 lines

Or we can state clearly in README / INSTALL that Xen's configure doesn't check for external projects' dependencies so that we don't end up adding check for every new dependency in QEMU. Just my 2 cents.

I think it would be use unfriendly.

In the vast majority of cases users are going to try to build QEMU as part of the Xen build, so we might as well try to make it a bit easier for them listing all dependencies up front.

If I were to download the tarball of a given project, pass all the configure checks, only to find that the build still fails because of a missing dependency, I would be quite annoyed.

#6 lore raw
In reply to Ian Campbell
Quoted 5 lines · Ian Campbell

A far more heavy weight (but probably better) solution would be to arrange for the clone (and necessary downloads) + submodule configure to happen at configure rather than build time. That's a much bigger job though and I wouldn't expect anyone to take that on unless they are super duper keen.

There are not that many dependencies. And having such checks in tools/configure.ac for essential requirements is actually on my todo list.

Olaf

#7 lore raw
In reply to Jan Beulich

Hi Jan,

Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line

Julien Grall <[email protected]> 01/13/15 7:17 PM >>>

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 pixman

Quoted 5 lines
Quoted 2 lines

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.

Since qemu building isn't a required part of building the tools, is a check in the tools configure process really an appropriate thing to do?

QEMU is a required part of building the tools. Any failure to build QEMU will make Xen tools build fail. It's reproductible with "make install-tools" and pixman not installed.

Regards,

Signature · 1 line
Julien Grall
#8 lore raw
Quoted 13 lines · Julien Grall

Hi Jan,

Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line

Julien Grall <[email protected]> 01/13/15 7:17 PM >>>

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 pixman

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

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.

Since qemu building isn't a required part of building the tools, is a check in the tools configure process really an appropriate thing to do?

QEMU is a required part of building the tools.

Not stricty true. Pass --with-system-qemu if you wish to avoid it.

Quoted 6 lines

Any failure to build QEMU
will make Xen tools build fail. It's reproductible with "make install-tools" and pixman not installed.

Regards,

#9 lore raw
Quoted 17 lines · Ian Campbell
Quoted 16 lines · Julien Grall

Hi Jan,

Quoted 13 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line

Julien Grall <[email protected]> 01/13/15 7:17 PM >>>

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 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.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Since qemu building isn't a required part of building the tools, is a check in the tools configure process really an appropriate thing to do?

QEMU is a required part of building the tools.

Not stricty true. Pass --with-system-qemu if you wish to avoid it.

Right. So the check for glib in the configure for ARM is not necessary when --with-system-qemu is used.

Might be interesting to avoid checking dependency that is not useful.

Regards,

Signature · 1 line
Julien Grall
#10 lore raw
Quoted 21 lines · Julien Grall
Quoted 20 lines · Ian Campbell
Quoted 19 lines · Julien Grall

Hi Jan,

Quoted 15 lines · Jan Beulich
Quoted 4 lines
Quoted 1 line
Quoted 1 line

Julien Grall <[email protected]> 01/13/15 7:17 PM >>>

QEMU upstream requires the use of pixman. When pixman is not present the system, the configure of QEMU will fail with:

Quoted 8 lines

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.

Since qemu building isn't a required part of building the tools, is a check in the tools configure process really an appropriate thing to do?

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

QEMU is a required part of building the tools.

Not stricty true. Pass --with-system-qemu if you wish to avoid it.

Right. So the check for glib in the configure for ARM is not necessary when --with-system-qemu is used.

Might be interesting to avoid checking dependency that is not useful.

I didn't think it was worth it, but given the objections perhaps putting all the checks which are there solely for qemu-upstream under a conditional based on --with-system-qemu is the way to go.

Ian.

#11 lore raw
Quoted 26 lines · Ian Campbell
Quoted 25 lines · Julien Grall
Quoted 23 lines · Ian Campbell
Quoted 13 lines · Julien Grall

Hi Jan,

Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line

Julien Grall <[email protected]> 01/13/15 7:17 PM >>>

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 pixman

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

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.

Since qemu building isn't a required part of building the tools, is a check in the tools configure process really an appropriate thing to do?

QEMU is a required part of building the tools.

Not stricty true. Pass --with-system-qemu if you wish to avoid it.

Quoted 8 lines
Quoted 4 lines

Right. So the check for glib in the configure for ARM is not necessary when --with-system-qemu is used.

Might be interesting to avoid checking dependency that is not useful.

I didn't think it was worth it, but given the objections perhaps putting all the checks which are there solely for qemu-upstream under a conditional based on --with-system-qemu is the way to go.

On x86, glib seems to be required for seabios and ipxe.

Regards,

Signature · 1 line
Julien Grall
#12 lore raw
Quoted 1 line · Julien Grall

On x86, glib seems to be required for seabios

Only for make gtkconfig, I think? (surely the actual BIOS doesn't need glib!). We won't use that in our own builds I think.

Quoted 1 line

and ipxe.

Really?

If true then there'd be nothing wrong with AC_IF(using our seabios || using our qemu || whatever) AC_CHECK ... glib

Ian.

#13 lore raw
Quoted 5 lines · Ian Campbell
Quoted 1 line · Julien Grall

On x86, glib seems to be required for seabios

Only for make gtkconfig, I think? (surely the actual BIOS doesn't need glib!). We won't use that in our own builds I think.

Ok.

Quoted 4 lines
Quoted 2 lines

and ipxe.

Really?

My mistake I grepped too quickly.

So I will change this patch for checking if qemu-system is used.

Regards,

Signature · 1 line
Julien Grall