Opened 2 years ago

Closed 2 years ago

#65181 closed defect (fixed)

openjdk18-temurin can fail to parse depending on build_arch

Reported by: jmroot (Joshua Root) Owned by: breun (Nils Breunese)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: openjdk18-temurin

Description

% port info openjdk18-temurin build_arch=i386
Error: Unable to open port: can't read "version": no such variable

It's fine for the port to only be installable for certain archs, but the Portfile should parse validly regardless of what platform or arch it is read on.

Change History (3)

comment:1 Changed 2 years ago by breun (Nils Breunese)

I believe this should be fixed by https://github.com/macports/macports-ports/pull/14848, because 18.0.1 has also been released for arm64.

If 18.0.1 still wasn't yet available for arm64, I guess the only way to solve this would be to set a dummy version outside the arch check?

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

Thanks. Yes, you could set another version if none of the supported cases apply, or you could use else instead of elseif for the final case.

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

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.