Source: sacc Version: 1.07-1 Tags: patch User: [email protected] Usertags: ftcbfs
sacc fails to cross build from source, because it rebuilds during make install and dh_auto_install does not pass cross tools there, so it ends up using the wrong toolchain. The root cause here is that the version.h target depends on .git/refs/heads/ and that happens to not exist in the Debian source package. Hence, the target is unconditionally rebuilt. In a git clone, that location will always exist and refresh version.h appropriately. I am attaching a patch to remove this dependency, but this is not a patch upstream would want to apply. It adapts sacc to the non-git way that Debian consumes. Does this work for you? Helmut
Subject: avoid building several times From: Helmut Grohne Forwarded: not-needed Prevent version.h (and more) from being rebuilt during make install when building from tarball rather than a git clone. --- sacc-1.07.orig/Makefile +++ sacc-1.07/Makefile @@ -17,7 +17,7 @@ config.h: cp config.def.h config.h -version.h: .git/refs/heads/ +version.h: printf '#define VERSION "%s"\n' "$(GETVER)" > $@ $(BIN): $(OBJ)

