Source: xsensors
Version: 0.80-0.1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
xsensors fails to cross build from source, because the upstream
configure.ac hard codes the build architecture pkg-config to determine
the gtk+-3.0 cflags and libs. It earlier detected the correct ones using
PKG_CHECK_MODULES already so the extra calls can be removed in favour of
the detected values. I'm attaching a patch for your convenience.
Helmut
--- xsensors-0.80.orig/configure.ac
+++ xsensors-0.80/configure.ac
@@ -37,8 +37,8 @@
fi
if [ $foundgtk3 ]; then
- XSENSORS_CFLAGS="`pkg-config --cflags gtk+-3.0` -Werror -Wall"
- XSENSORS_LIBS="`pkg-config --libs gtk+-3.0`"
+ XSENSORS_CFLAGS="$GTK_CFLAGS -Werror -Wall"
+ XSENSORS_LIBS="$GTK_LIBS"
else
if [ test "x$with_gtk2" == xno ]; then
echo "GTK3 is not installed, checking for GTK2 instead..."