Source: s3fs-fuse
Version: 1.84-1
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap
s3fs-fuse fails to cross build from source, because configure.ac abuses
AC_CHECK_FILE. The macro is meant to check for files on the host system.
configure.ac however uses it to inspect the build tree. A simple test
invocation better serves that need. The attached patch fixes that and
makes s3fs-fuse cross buildable. Please consider applying it.
Helmut
--- s3fs-fuse-1.84.orig/configure.ac
+++ s3fs-fuse-1.84/configure.ac
@@ -273,7 +273,7 @@ dnl ------------------------------------
dnl short commit hash
dnl ----------------------------------------------
AC_CHECK_PROG([GITCMD], [git —version], [yes], [no])
-AC_CHECK_FILE([.git], [DOTGITDIR=yes], [DOTGITDIR=no])
+AS_IF([test -d .git], [DOTGITDIR=yes], [DOTGITDIR=no])
AC_MSG_CHECKING([github short commit hash])
if test “x${GITCMD}” = “xyes” -a “x${DOTGITDIR}” = “xyes”; then