[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#958675: pinentry-x2go FTCBFS: fails to detect a host architecture qmake



Source: pinentry-x2go
Version: 0.7.5.10-1
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

pinentry fails to cross build from source, because configure.ac does not
consider $ac_tool_prefix when searching for qmake. Please consider
applying the attached patch to fix that.

Helmut
--- pinentry-x2go-0.7.5.10.orig/configure.ac
+++ pinentry-x2go-0.7.5.10/configure.ac
@@ -148,15 +148,10 @@
 for lrelease in $(which lrelease lrelease-qt5 lrelease-qt4 2>/dev/null); do
   break;
 done;
-for qmake in $(which qmake qmake-qt5 qmake-qt4 2>/dev/null); do
-  break;
-done;
 if test -z "$lrelease"; then
   AC_MSG_ERROR([lrelease not found])
 fi;
-if test -z "$qmake"; then
-  AC_MSG_ERROR([qmake not found])
-fi;
+AC_CHECK_TOOLS(qmake,[qmake qmake-qt5 qmake-qt4],[AC_MSG_ERROR([qmake not found])])
 ( cd pinentry-x2go && "$lrelease" pinentry-x2go.pro; cd - 1>/dev/null;)
 ( cd pinentry-x2go && "$qmake" PREFIX="$prefix" QMAKE_CFLAGS="$CPPFLAGS $CFLAGS" QMAKE_LFLAGS="$LDFLAGS" QMAKE_CXXFLAGS="$CPPFLAGS $CXXFLAGS"; cd - 1>/dev/null;)
 

Reply to: