#66976 closed defect (fixed)

openjdk11: wrong worksrcdir

Reported by: InformationOcean (Information Ocean) Owned by: usersxx
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: openjdk11

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I am on aMacBook Air M1 2020 with the latest OS, 13.1 (22C65). I tried to install openjdk. Here are the messages on the Terminal window:

janos@Dads-MacBook-Air / % sudo port install openjdk11
--->  Computing dependencies for openjdk11
--->  Fetching archive for openjdk11
--->  Attempting to fetch openjdk11-11.0.18_0+release+server.darwin_22.arm64.tbz2 from https://packages.macports.org/openjdk11
--->  Attempting to fetch openjdk11-11.0.18_0+release+server.darwin_22.arm64.tbz2 from https://mse.uk.packages.macports.org/openjdk11
--->  Attempting to fetch openjdk11-11.0.18_0+release+server.darwin_22.arm64.tbz2 from http://mirror.fcix.net/macports/packages/openjdk11
--->  Fetching distfiles for openjdk11
--->  Verifying checksums for openjdk11
--->  Extracting openjdk11
Error: reinplace: couldn't read file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk11/openjdk11/work/jdk-11.0.18-ga/make/autoconf/lib-ffi.m4": no such file or directory
Error: Failed to patch openjdk11: reinplace sed(1) 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 openjdk11 failed

The problem is that the install created a 'jdk11u-jdk-11.0.18-ga' directory instead of the jdk-11.0.18-ga in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk11/openjdk11/work.

See:

janos@Dads-MacBook-Air / % ls -al  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk11/openjdk11/work
total 8
drwxr-xr-x   6 macports  wheel  192 Feb 21 22:33 .
drwxr-xr-x   3 macports  wheel   96 Feb 21 22:33 ..
drwxr-xr-x   2 macports  wheel   64 Feb 21 22:33 .home
-rw-r--r--   1 macports  wheel  207 Feb 21 22:33 .macports.openjdk11.state
drwxr-xr-x   2 macports  wheel   64 Feb 21 22:33 .tmp
drwxr-xr-x  17 macports  wheel  544 Jan 10 03:32 jdk11u-jdk-11.0.18-ga

Change History (2)

comment:1 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: openjdk removed
Owner: set to usersxx
Port: openjdk11 added
Status: newassigned
Summary: Unable to install openjdkopenjdk11: wrong worksrcdir
Version: 2.8.1

This is a consequence of MacPorts 2.8.1 having removed the automatic symlink creation code; ports must now either set worksrcdir correctly (as they had to prior to MacPorts 2.6.0 as well) or set extract.rename yes to request that MacPorts fix it.

comment:2 Changed 15 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In dfd0fb4aebdccd7c0abfae879463010328caea4e/macports-ports (master):

openjdk11: set correct worksrcdir

Closes: #66976

Note: See TracTickets for help on using tickets.