Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#65791 closed defect (fixed)

nhc98 fails to parse on selfupdate

Reported by: JohnFHall (John Hall) Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc:
Port: nhc98

Description

Port -v selfupdate returns:

Failed to parse file lang/nhc98/Portfile: invalid command name "build_arch"

Change History (5)

comment:1 Changed 2 years ago by jmroot (Joshua Root)

Can you run port version to make sure you are running the current MacPorts version? The build_arch option has been around since 1.8.0.

comment:2 Changed 2 years ago by jmroot (Joshua Root)

Owner: set to barracuda156

Never mind, definitely a problem with the Portfile, the problematic code is just conditional and only runs when on an OS version between Lion and Mojave. It shouldn't be setting build_arch, that is only supposed to be set in macports.conf (or left at its autodetected default).

comment:3 Changed 2 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In 404d666382ebedaf6a21cda4356f1763795a8814/macports-ports (master):

nhc98: remove invalid code

Base already knows which archs are supported by the SDK in use, so even
if build_arch was an option that could be set by Portfiles, it wouldn't
be necessary.

Fixes: #65791

comment:4 in reply to:  2 Changed 2 years ago by barracuda156

Replying to jmroot:

Never mind, definitely a problem with the Portfile, the problematic code is just conditional and only runs when on an OS version between Lion and Mojave. It shouldn't be setting build_arch, that is only supposed to be set in macports.conf (or left at its autodetected default).

Thank you for fixing that!

comment:5 Changed 2 years ago by JohnFHall (John Hall)

Confirming I'm running 10.13.6 High Sierra on an old 2009 MacPro5,1

Note: See TracTickets for help on using tickets.