Source: xsensors
Version: 0.70-3
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

xsensors fails to cross build from source. After checking for gtk with
the proper macros, ./configure.in resorts to calling plain pkg-config.
That's the build architecture pkg-config and it will not find gtk.
Rather, I propose using the results from the previous checks. Doing so
makes xsensors cross buildable. Please consider applying the attached
patch. Please don't forget to rebuild configure as the packaging doesn't
do that by default.

Helmut
--- xsensors-0.70.orig/configure.in
+++ xsensors-0.70/configure.in
@@ -28,8 +28,8 @@
 *** development headers installed. The latest version of GTK+ is
 *** always available at http://www.gtk.org/.]))
 
-XSENSORS_CFLAGS="`pkg-config --cflags gtk+-2.0` -Werror"
-XSENSORS_LIBS="`pkg-config --libs gtk+-2.0`"
+XSENSORS_CFLAGS="$GTK_CFLAGS -Werror"
+XSENSORS_LIBS="$GTK_LIBS"
 AC_SUBST(XSENSORS_CFLAGS)
 AC_SUBST(XSENSORS_LIBS)
 

Reply via email to