Oh, I see that it's a variable defined and used by debian/rules itself,
not a debhelper thing.
It was introduced in commit [6a2792a]
+BUILDHOME=$(CURDIR)/debian/build
+
override_dh_auto_configure:
# Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is
wrong.
# So until Debian bug 719148 is fixed, do it ourselves.
@@ -16,6 +18,14 @@ override_dh_auto_build:
dh_auto_build
$(MAKE) -C obj-$(DEB_HOST_GNU_TYPE) pot
+override_dh_clean:
+ dh_clean
+ rm -rf $(BUILDHOME)
+
+override_dh_auto_test:
+ mkdir -p $(BUILDHOME)
+ HOME=$(BUILDHOME) dh_auto_test
Would maybe a recent debhelper make all that unnecessary?
(I'm still puzzled that we didn't find this before,
maybe it's a subtle change in sbuild behavior).
Thanks.