Hash :
bb5b19e3
Author :
Date :
2020-01-28T12:15:59
ensure that we always install static binaries to gotweb's chroot Compile static libexec binaries for gotweb, keeping them separate from the main build. Use the same source files but a separate set of Makefiles. Previously, 'make web-install' installed whichever libexec binaries had already been built, and if those happened to be dynamically linked they failed to run inside the chroot which resulted in "privsep peer process closed pipe" being rendered on the index page.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
SUBDIR = libexec got tog
.PHONY: release dist
.if make(regress) || make(obj) || make(clean) || make(release)
SUBDIR += regress
.endif
.if make(clean) || make(obj)
SUBDIR += gotweb
.endif
.include "got-version.mk"
release: clean
sed -i -e "s/_RELEASE=No/_RELEASE=Yes/" got-version.mk
${MAKE} dist
sed -i -e "s/_RELEASE=Yes/_RELEASE=No/" got-version.mk
dist: clean
mkdir /tmp/got-${GOT_VERSION}
pax -rw * /tmp/got-${GOT_VERSION}
find /tmp/got-${GOT_VERSION} -name obj -type d -delete
rm /tmp/got-${GOT_VERSION}/got-dist.txt
tar -C /tmp -zcf got-${GOT_VERSION}.tar.gz got-${GOT_VERSION}
rm -rf /tmp/got-${GOT_VERSION}
tar -ztf got-${GOT_VERSION}.tar.gz | sed -e 's/^got-${GOT_VERSION}//' \
| sort > got-dist.txt.new
diff -u got-dist.txt got-dist.txt.new
rm got-dist.txt.new
web:
${MAKE} -C gotweb
web-install:
${MAKE} -C gotweb install
.include <bsd.subdir.mk>