commit 9ba43cbe9637670ad77023d6d4fdcc9e4687e8fc parent 171fdd75f8d3e351d244161acb8ee8d635230370 Author: Florian Dold <florian@dold.me> Date: Tue, 28 Nov 2023 00:56:05 +0100 make sure the compile step is never run under debian fakeroot Diffstat:
| M | Makefile | | | 3 | +++ |
| M | debian/rules | | | 8 | ++++++++ |
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -41,6 +41,9 @@ dist: deb: dpkg-buildpackage -rfakeroot -b -uc -us +# The install-nobuild-* targets install under the assumption +# that the compile step has already been run. + # Install without attempting to build first .PHONY: install-nobuild install-nobuild: install-nobuild-bank install-nobuild-nexus diff --git a/debian/rules b/debian/rules @@ -22,6 +22,14 @@ override_dh_auto_test: override_dh_auto_configure: ./configure --prefix=/usr +# Since this step is run under fakeroot and gradle +# doesn't work under fakeroot, we must make sure +# that everything is built by gradle before. +# The install-nobuild target installs under the assumption +# that everything is already built. +override_dh_auto_install: + make -j1 install-nobuild DESTDIR=$(CURDIR)/debian/tmp + # Override this step because it's very slow and likely # unnecessary for us. override_dh_strip_nondeterminism: