Date: Sat, 29 Oct 2022 12:08:36 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 267416] Mk/bsd.port.mk: install-missing-packages fails in automated runs without TTY Message-ID: <bug-267416-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267416 Bug ID: 267416 Summary: Mk/bsd.port.mk: install-missing-packages fails in automated runs without TTY Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: pat@patmaddox.com I am trying to run `make install-missing-packages` on Cirrus CI. When I do,= it fails with: xargs: can't open /dev/tty: Device not configured The `install-missing-packages` target includes a line with `${XARGS} -o` wh= ere `-o` means `Reopen stdin as /dev/tty in the child process` (see xargs(1)). I'm not sure why `-o` is in there, what else might be expecting it... but w= hen I removed it, it worked fine: sed -i '' -e 's:${XARGS} -o:${XARGS}:' /usr/ports/Mk/bsd.port.mk or this patch: --- bsd.port.mk 2022-10-29 04:59:04.058879000 -0700 +++ bsd.port.mk-fixed 2022-10-29 04:59:58.919773000 -0700 @@ -4323,7 +4323,7 @@ install-missing-packages: @_dirs=3D$$(${MISSING-DEPENDS-LIST}); \ ${ECHO_CMD} "$${_dirs}" | ${SED} "s%${PORTSDIR}/%%g" | \ - ${SU_CMD} "${XARGS} -o ${PKG_BIN} install -A" + ${SU_CMD} "${XARGS} ${PKG_BIN} install -A" ################################################################ # Everything after here are internal targets and really --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267416-7788>