Source: fakeroot
Version: 1.25.3-1.1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

fakeroot fails to cross build from source, because it uses AC_RUN_IFELSE
without a separate argument for cross building. It's only one occasion.
Please consider applying the attached patch to preseed the test result
on linux at least.

Helmut
--- fakeroot-1.25.3.orig/configure.ac
+++ fakeroot-1.25.3/configure.ac
@@ -50,9 +50,17 @@
     return 0;
   }
 
-}], [ac_cv_use_ipc=sysv], [ac_cv_use_ipc=tcp])
+}], [ac_cv_use_ipc=sysv], [ac_cv_use_ipc=tcp], [ac_cv_use_ipc=cross])
 
-  if test $ac_cv_use_ipc = "tcp"; then
+  if test $ac_cv_use_ipc = cross; then
+    if test "$host_os" = linux-gnu; then
+      ac_cv_use_ipc=sysv
+      AC_MSG_RESULT([cross, guessing yes])
+    else
+      (set -o posix; set)
+      AC_MSG_ERROR([cross compiling, unknown result for $host_os])
+    fi
+  elif test $ac_cv_use_ipc = "tcp"; then
     AC_MSG_RESULT([No, using TCP])
   else
     AC_MSG_RESULT([Yes])

Reply via email to