#1115557 sacc FTCBFS: rebuilds during make install

Package:
src:sacc
Source:
src:sacc
Submitter:
Helmut Grohne
Date:
2025-09-18 06:19:15 UTC
Severity:
normal
Tags:
#1115557#5
Date:
2025-09-10 13:49:31 UTC
From:
To:
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