shells/modernish: Fix build

It looks like modernish requires /dev/tty to be available during the
installation as it tries to run its install-time test suite. A solution
to that is wrapping ./install.sh with script(1) to make a TTY available.
Interestingly, if we replace script(1) with daemon(8), we can reproduce
the error present in the pkg fallout logs.

(cherry picked from commit 0e66f42601)
This commit is contained in:
Mateusz Piotrowski 2021-04-28 14:47:43 +02:00
parent d339d9eb63
commit 311e536752

View File

@ -19,7 +19,8 @@ OPTIONS_DEFINE= DOCS EXAMPLES
do-install:
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ./install.sh -d ${PREFIX} -D ${STAGEDIR} -n -s ${SH}
${SETENV} ${MAKE_ENV} script -q /dev/stdout \
${SH} -x ./install.sh -d ${PREFIX} -D ${STAGEDIR} -n -s ${SH}
${RM} ${STAGEDIR}${DOCSDIR}/LICENSE
${MKDIR} ${STAGEDIR}${EXAMPLESDIR:H}