Opened 3 months ago

Last modified 3 months ago

#70591 assigned defect

Antlr dependency bug

Reported by: GAlvare Owned by: Dave-Allured (Dave Allured)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: antlr

Description

When I try to install antlr, it says that I still need to install openjdk8, despite that openjdk8-powerpc is installed.

From reading the MacPorts documentation, and looking at the antlr Portfile, it seems that the problem may have something to do with the line below and the need to handle an alternate fallback:

java.fallback openjdk8

However, I also noticed that this seems to be a fallback for if a version of java > 1.4 cannot be found. Since Leopard already seems to have Java 1.5 installed, it is unclear whether the requirement for openjdk8 on my computer may be anoterh bug (?).

Change History (4)

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

Keywords: antlr openjdk8 openjdk8-powerpc removed
Owner: set to Dave-Allured
Status: newassigned

comment:2 Changed 3 months ago by Dave-Allured (Dave Allured)

@GAlvare, try this. It might work. I am not sure. I do not have a PPC to test, or the time to work on this right now.

  1. port uninstall antlr
  1. In your local Portfile for antlr, change java.fallback openjdk8 to java.fallback openjdk8-powerpc.
  1. port install antlr

Let us know whether or not this works. Thanks.

Last edited 3 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 3 months ago by GAlvare

When I try that, I get the error message:

$ sudo port install antlr
Password:
--->  Computing dependencies for antlr
--->  Fetching archive for antlr
--->  Attempting to fetch antlr-2.7.7_4.darwin_9.ppc.tbz2 from http://packages.macports.org/antlr
--->  Attempting to fetch antlr-2.7.7_4.darwin_9.ppc.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/antlr
--->  Attempting to fetch antlr-2.7.7_4.darwin_9.ppc.tbz2 from http://bos.us.packages.macports.org/antlr
--->  Fetching distfiles for antlr
Error: antlr requires Java 1.4+ but no such installation could be found.
Error: Failed to fetch antlr: missing required Java version
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_antlr/antlr/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port antlr failed

# My installed version of Java is:

$ which java
/usr/bin/java
$ /usr/bin/java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
Last edited 3 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 3 months ago by Dave-Allured (Dave Allured)

Okay, thanks for testing. I wonder if you had performed a selfupdate recently. Regardless, try this:

port clean antlr
port selfupdate
port install openjdk8-powerpc
port install antlr
Last edited 3 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)
Note: See TracTickets for help on using tickets.