[MacPorts] #64924: openjdk## ports should be meta ports
MacPorts
noreply at macports.org
Fri Apr 22 18:35:21 UTC 2022
#64924: openjdk## ports should be meta ports
-------------------------------------------+----------------------
Reporter: zman0900 | Owner: usersxx
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: openjdk17 openjdk11 openjdk8 |
-------------------------------------------+----------------------
Comment (by catap):
Right now `-zulu` ports are required for M1 machine.
For example I have a clean macOS 12 M1 machine where I'm installing
`maven3` and it fails:
{{{
catap at Kirills-mini-m1 ~ % sudo port install maven3
---> Computing dependencies for maven3
The following dependencies will be installed:
autoconf
bash
gettext
gettext-runtime
gettext-tools-libs
gmake
libiconv
libtextstyle
m4
maven_select
ncurses
openjdk11
openjdk11-zulu
Continue? [Y/n]: y
...
---> Verifying checksums for openjdk11
---> Extracting openjdk11
---> Configuring openjdk11
Error: Failed to configure openjdk11: consult
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk11/openjdk11/work/jdk-11.0.15+10/config.log
Error: Failed to configure openjdk11: configure failure: command execution
failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk11/openjdk11/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port maven3 failed
---> Some of the ports you installed have notes:
openjdk11-zulu has the following notes:
If you have more than one JDK installed you can make openjdk11-zulu
the default
by adding the following line to your shell profile:
export
JAVA_HOME=/Library/Java/JavaVirtualMachines/openjdk11-zulu/Contents/Home
catap at Kirills-mini-m1 ~ %
}}}
the same happened with `sbt`:
{{{
catap at Kirills-mini-m1 ~ % sudo port install sbt
---> Computing dependencies for sbt
The following dependencies will be installed:
autoconf
bash
brotli
bzip2
cctools
freetype
gettext
gettext-runtime
gettext-tools-libs
gmake
libiconv
libpng
libtextstyle
m4
ncurses
openjdk8
openjdk8-bootstrap
pkgconfig
xz
zlib
Continue? [Y/n]: y
...
---> Extracting openjdk8
---> Applying patches to openjdk8
---> Configuring openjdk8
---> Building openjdk8
Error: Failed to build openjdk8: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk8/openjdk8/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port sbt failed
catap at Kirills-mini-m1 ~ %
}}}
To be honest I think that this is a major issue for new users who attempts
to install `sbt` or `maven3` and move away from MacPorts.
--
Ticket URL: <https://trac.macports.org/ticket/64924#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list