buildsys: fix running sbuild as root

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
Stoiko Ivanov 2024-06-04 12:45:13 +02:00
parent f887dfc0c7
commit fbb951ffb0

View File

@ -36,9 +36,12 @@ dsc:
$(DSC): $(ORIG_SRC_TAR) $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
# spamassassin fails running tests as root, since tests starting spamd cause spamd
# to setuid to nobody, resulting in EPERM when spamd tries to access the testdirectory, which is
# used for pid-files and rulesets
.PHONY: sbuild
sbuild: $(DSC)
sbuild $(DSC)
sbuild --starting-build-commands 'chmod 775 /build' --starting-build-commands 'chmod 775 %SBUILD_BUILD_DIR' $(DSC)
.PHONY: update-upstream
update-upstream: $(OPKGNAME).tar.gz