mirror of
https://git.proxmox.com/git/proxmox-spamassassin
synced 2025-04-28 10:30:00 +00:00
buildsys: fix running sbuild as root
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
f887dfc0c7
commit
fbb951ffb0
5
Makefile
5
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user