[MacPorts] #64710: ncarg: /dev/tty: Device not configured.
MacPorts
noreply at macports.org
Mon Feb 21 20:48:48 UTC 2022
#64710: ncarg: /dev/tty: Device not configured.
------------------------+----------------------
Reporter: ryandesign | Owner: tenomoto
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: arm64 | Port: ncarg
------------------------+----------------------
ncarg fails to configure on arm64 systems:
https://build.macports.org/builders/ports-
12_arm64-builder/builds/43236/steps/install-port/logs/stdio
The error coming from `ymake` is:
{{{
/dev/tty: Device not configured.
}}}
This happens because config/ymake contains this code:
{{{
case Darwin:
set os = $opsys
switch ("$mach[1]")
case Power:
set model = $mach
set arch = $mach
set sysincs = Darwin
set vendor = Apple
breaksw
case i386:
case x86_64:
set model = $mach
set arch = $mach
set sysincs = Darwin_Intel
set vendor = Apple
breaksw
default:
echo "$0 : Unknown machine type" > /dev/tty
exit 1
endsw
breaksw
}}}
As you see, there is no case for ARM systems, so it is trying to run the
command `echo "$0 : Unknown machine type" > /dev/tty`, but this command
fails when run under the control of MacPorts for some reason.
I gather that ncarg is no longer being developed, so I presume the
developers will not assist us. If you think it's easy to add arm64 support
to ncarg, feel free to do so. Otherwise, you should mark the port as not
supporting arm64 by adding this line:
{{{
supported_archs i386 ppc ppc64 x86_64
}}}
--
Ticket URL: <https://trac.macports.org/ticket/64710>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list