Bug#961772: fossil FTCBFS: attempts to run a host tool to check for sqlite3

2020-08-20 Thread Barak A. Pearlmutter
Oops, just saw this. Thanks for the patch.

It's really an upstream issue, so I'm going to forward it there. If
they don't want to merge this functionality, I'll maintain it in a
Debian patch.

Cheers,

--Barak.



Bug#961772: fossil FTCBFS: attempts to run a host tool to check for sqlite3

2020-05-28 Thread Helmut Grohne
Source: fossil
Version: 1:2.10-1
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

fossil fails to cross build from source, because it introduced a new
check for sqlite3 compatibility that runs a host program. Unfortunately,
there is not much we can do here but trust that it actually works when
cross compiling. Please consider applying the attached patch to make
fossil cross buildable again.

Helmut
--- fossil-2.11.orig/auto.def
+++ fossil-2.11/auto.def
@@ -171,9 +171,11 @@
 if {!$ok} {
   user-error "unable to compile SQLite compatibility test program"
 }
-set err [catch {exec-with-stderr ./conftest__} result errinfo]
-if {$err} {
-  user-error $result
+if {[get-define build] eq [get-define host]} {
+  set err [catch {exec-with-stderr ./conftest__} result errinfo]
+  if {$err} {
+user-error $result
+  }
 }
 file delete ./conftest__
   }