Opened 4 years ago

Closed 4 years ago

#61077 closed defect (fixed)

otfcc: Error: Unable to open port: can't read "short_arch": no such variable

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: amake (Aaron Madlon-Kay)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc:
Port: otfcc

Description

On any system where build_arch is set to neither i386 nor x86_64 the otfcc Portfile will fail to work at all:

$ port info otfcc
Error: Unable to open port: can't read "short_arch": no such variable

When fixing this, also consider what happens when the universal variant is used.

Change History (3)

comment:1 Changed 4 years ago by Aaron Madlon-Kay <amake@…>

Resolution: fixed
Status: assignedclosed

In ca569403edbfe68092994423f8390b35f7598ba8/macports-ports (master):

otfcc: use the right compiler, specify supported archs

Also

  • Disable universal variant
  • Fix categories

Fixes #61077

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: closedreopened

Thanks but that change doesn't fix the reported problem.

Please add

} else {
    set short_arch ""

to ensure that short_arch is always defined.

comment:3 Changed 4 years ago by Aaron Madlon-Kay <amake@…>

Resolution: fixed
Status: reopenedclosed

In 3f1594ad64b9c442f22826b0574000a6fe931822/macports-ports (master):

otfcc: fix unset variable

Fixes #61077

Note: See TracTickets for help on using tickets.