Opened 17 months ago
Closed 9 months ago
#67377 closed defect (fixed)
openjdk8: Error: Unable to open port: can't read "datamodel": no such variable
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | usersxx |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | mascguy (Christopher Nielsen), cooljeanius (Eric Gallager) | |
Port: | openjdk8 |
Description
The openjdk8 Portfile fails to parse if build_arch is i386 or ppc64:
% port info openjdk8 build_arch=i386 Error: Unable to open port: can't read "datamodel": no such variable
Even if the port does not support building for those architectures, the portfile should still parse so that users can get port info
, etc.
A simple fix would be:
--- java/openjdk8/Portfile +++ java/openjdk8/Portfile @@ -54,11 +54,9 @@ set tpath /Library/Java use_xcode yes use_configure yes -if {${configure.build_arch} eq "ppc"} { +if {${configure.build_arch} in [list i386 ppc]} { set datamodel 32 -} elseif {${configure.build_arch} eq "x86_64"} { - set datamodel 64 -} elseif {${configure.build_arch} eq "arm64"} { +} else { set datamodel 64 }
Change History (3)
comment:1 Changed 17 months ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|
comment:2 Changed 9 months ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
comment:3 Changed 9 months ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
[f529d26a97de05012b8100b9eae68e8da10f740d/macports-ports]