[Libguestfs] [PATCH 1/4] p2v: fix Gtk dependencies on Debian

Pino Toscano ptoscano at redhat.com
Fri Mar 17 17:11:47 UTC 2017


On Debian, the names of the packages containing the Gtk 2 and 3
libraries have different patterns, and thus just the name will not work
for Gtk 3.

Apply a bit of m4 to use a different package name on Gtk 2 and other
versions.  It can be easily adapted to new models in future Gtk 4+,
should the naming pattern change from Gtk 3.
---
 p2v/dependencies.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/p2v/dependencies.m4 b/p2v/dependencies.m4
index 2037477..3160dce 100644
--- a/p2v/dependencies.m4
+++ b/p2v/dependencies.m4
@@ -64,7 +64,7 @@ ifelse(REDHAT,1,
 ifelse(DEBIAN,1,
   libpcre3
   libxml2
-  libgtk`'GTK_VERSION`'.0-0
+  ifelse(GTK_VERSION,2,libgtk`'GTK_VERSION`'.0-0,libgtk-`'GTK_VERSION`'-0)
   libdbus-1-3
   ifdef(`HAVE_LIBVIRT', `libvirt0')
   openssh-client
-- 
2.9.3




More information about the Libguestfs mailing list