Source: mathic
Version: 1.0~git20180311-2
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
mathic fails to cross build from source, because it abuses AC_CHECK_FILE
for searching files on the build system while it is meant for checking
files on the host system. When inspecting the build system, please use
plain test -e. Please consider applying the attached patch.
Helmut
--- mathic-1.0~git20180311.orig/configure.ac
+++ mathic-1.0~git20180311/configure.ac
@@ -35,7 +35,7 @@
AS_IF([test "$with_gtest" = ""], [with_gtest="download"])
AS_IF([test "$with_gtest" = "download"],
- [with_gtest="yes"; AC_CHECK_FILE([$GTEST_PATH/src/gtest-all.cc], [], [
+ [with_gtest="yes"; AS_IF([test -e "$GTEST_PATH/src/gtest-all.cc"], [], [
mkdir -p "$GTEST_PATH";
(
cd $GTEST_PATH;
@@ -54,7 +54,7 @@
fi
])],
[test "$with_gtest" = "yes"], [
- AC_CHECK_FILE([$GTEST_PATH/src/gtest-all.cc], [], [
+ AS_IF([test -e "$GTEST_PATH/src/gtest-all.cc"], [], [
AC_MSG_ERROR([could not find gtest source at path $GTEST_PATH.])
])
],
--
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers