Source: sxiv Version: 25-1 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
sxiv fails to cross build from source, because it uses the build architecture compiler. It actually uses the correct compiler during dh_auto_build and successfully cross builds. But then, it figures that since .git/index doesn't exist, it must remake version.h during dh_auto_install. Since dh_auto_install does not pass cross tools to make, this fails. Having to rebuild during dh_auto_install sounds like a bug though and that's what the attached patch fixes. Please consider applying it. Helmut
--- sxiv-25.orig/Makefile +++ sxiv-25/Makefile @@ -52,7 +52,7 @@ @echo "GEN $@" cp $(srcdir)/config.def.h $@ -version.h: Makefile .git/index +version.h: Makefile $(wildcard .git/index) @echo "GEN $@" v="$$(cd $(srcdir); git describe 2>/dev/null)"; \ echo "#define VERSION \"$${v:-$(version)}\"" >$@