Date: Sat, 20 Jul 2019 11:12:08 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 239333] bmake Entering/Leaving messages not suppresed by .SILENT: Message-ID: <bug-239333-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239333 Bug ID: 239333 Summary: bmake Entering/Leaving messages not suppresed by .SILENT: Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: d@dcepelik.cz URL: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html POSIX.2017 states the following about -s: "Do not write makefile command li= nes or touch messages (see -t) to standard output before executing. This mode s= hall be the same as if the special target .SILENT were specified without prerequisites." However, with -s the "Entering/Leaving directory ..." messages are suppress= ed, while with .SILENT: they're not. I'm not sure whether bmake is actually aiming for POSIX compliance (it would seem so), if that's the case, this minor discrepancy should be fixed. ~% uname -a Linux a285 5.1.16-arch1-1-ARCH #1 SMP PREEMPT Wed Jul 3 20:23:07 UTC 2019 x86_64 GNU/Linux ~% pacman -Qi bmake | fgrep Version Version : 20181221-1 Since this is relatively obscure bug, I assume this wasn't addressed before= and all versions of bmake are affected. To demonstrate, two Makefiles are needed. First: ~/bsdreport% cat Makefile .POSIX: .PHONY: all .SILENT: all: make -f Makefile.2 Second: ~/bsdreport% cat Makefile.2 foo: touch $@ Then: ~/bsdreport% bmake make[1]: Entering directory '/home/d/bsdreport' make[1]: 'foo' is up to date. make[1]: Leaving directory '/home/d/bsdreport' While bmake -s is indeed silent. (The help for -s states that -s is equival= ent to prefixing each command with @; that's not true as adding @ before the recursive make call does not suppress the Entering/Leaving messages.) Please let me know if I can provide further details. - David --=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-239333-227>