[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pkgsrc-users
Subject:    Re: Rust amd64 build failure.
From:       Mike Pumford <mpumford () mudcovered ! org ! uk>
Date:       2023-04-24 17:56:33
Message-ID: 8c16ffd3-022b-dde8-3007-39ab74e8f222 () mudcovered ! org ! uk
[Download RAW message or body]



On 23/04/2023 13:36, Rhialto wrote:

> Would
> 
> script -c "make install" logfile
> status=$?
> 
You need the -e option for the exit code of the process to be preserved.

Without that option the exit code of the process isn't preserved and 
that's an option that only works on NetBSD 10. I need a solution that 
works on older versions as well.

Heres how I tested:
$ script -qc 'false' file
$ echo $?
0

This is the same on NetBSD-9.3-STABLE and 10-BETA

On NetBSD 10 which has the -e option:
$ script -eqc 'false' file
$ echo $?
1

Even on 10-BETA without the -e option $? is 0.

Mike


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic