Opened 3 years ago

Closed 3 years ago

#63543 closed defect (fixed)

godot: fails to parse with some configure.compiler values

Reported by: RobK88 Owned by: jasonliu-- (Jason Liu)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: kencu (Ken)
Port: godot

Description

When I run sync with the macports tree using selfupdate, I get a strange message:

Warning: Failed to open old entry for games/godot, making a new one
Adding port games/godot
Failed to parse file games/godot/Portfile with subport 'godot-3.2': can't read "clang_version": no such variable

Is there a problem with the macports tree? Or is this just a lion specific quirk?

Change History (5)

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

Cc: @… removed
Keywords: godot removed
Owner: set to jasonliu--
Port: godot added; lion removed
Status: newassigned
Summary: Failed to Parse File When Syncing with macports treegodot: fails to parse with some configure.compiler values

It is a bug in the Portfile. There is no handling of the case where the regexp on lines 123-124 doesn't match, and it doesn't match in all cases allowed by the enclosing if statement.

comment:2 Changed 3 years ago by jasonliu-- (Jason Liu)

Interesting; I wonder if this bug might also be causing some of the problems Ken and I have been discussing in this PR:

https://github.com/macports/macports-ports/pull/12269

Thanks for reporting the issue, I'll work on fixing it.

comment:3 Changed 3 years ago by jasonliu-- (Jason Liu)

After looking into the Portfile code, it doesn't look like GitHub PR #12269 is directly related to this issue.

Patch for this issue will be submitted shortly.

comment:4 Changed 3 years ago by jasonliu-- (Jason Liu)

comment:5 Changed 3 years ago by Jason Liu <jasonliu--@…>

Resolution: fixed
Status: assignedclosed

In 9d8ec313b4cea0c0f0b361a640fc66b8ec70978b/macports-ports (master):

godot: fix regex handling for clang version detection (https://github.com/macports/macports-ports/pull/12407)

Closes: #63543

Note: See TracTickets for help on using tickets.