pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Rust amd64 build failure.





On 13/04/2023 12:42, Havard Eidnes wrote:

and completed successfully.

How, exactly, do you run your build?

Like this as detailed in my last email:
mkfifo /tmp/pipe
tee -a logfile </tmp/pipe &
make install >/tmp/pipe 2>&1
status=$?
rm /tmp/pipe

Running a test program that just reports the isatty status instead of make install on NetBSD 9.3-STABLE and 10-BETA indicates that isatty returns 0 and sets errno to 45 so this isn't new behaviour.

This construct is necessary as if you do:
make install 2>&1 | tee -a logfile
status=$?

Then status is the status of the 'tee' command not the make command. Yes I know about set -o pipefail but there are some places I use the script where that's not a supported option.

Mike



Home | Main Index | Thread Index | Old Index