[bug #52922] -Otarget does not function properly and errors on FreeBSD, with stdout to a pipe

2021-09-15 Thread Thomas Munro
Follow-up Comment #11, bug #52922 (project make): [comment #10 comment #10:] > Is there a number of ports which have gnu make specific makefiles? Yes. Depending how you count there's about ~30k ports and about ~4k of them have a build-time dependency on GNU make (I searched the FreeBSD ports tre

[bug #52922] -Otarget does not function properly and errors on FreeBSD, with stdout to a pipe

2021-09-14 Thread Thomas Munro
Follow-up Comment #8, bug #52922 (project make): Yeah, it's implemented at VFS level, so it needs a vnode: https://github.com/freebsd/freebsd-src/blob/7326e8589cc21431d62f25802eac7c5dd6f74122/sys/kern/kern_descrip.c#L617 I considered fixing that in FreeBSD, but I'm running build farm stuff acros

[bug #52922] -Otarget does not function properly and errors on FreeBSD, with stdout to a pipe

2021-09-12 Thread Thomas Munro
Follow-up Comment #3, bug #52922 (project make): Here's a draft patch to create a lock file if an initial test of the output descriptor fails. Tested on FreeBSD. I don't currently have any good ideas for how to detect redirection and use a separate lock file. (file #51900)