[MacPorts] #66976: openjdk11: wrong worksrcdir (was: Unable to install openjdk)

MacPorts noreply at macports.org
Wed Feb 22 04:27:22 UTC 2023


#66976: openjdk11: wrong worksrcdir
-------------------------------+----------------------
  Reporter:  InformationOcean  |      Owner:  usersxx
      Type:  defect            |     Status:  assigned
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.8.1
Resolution:                    |   Keywords:
      Port:  openjdk11         |
-------------------------------+----------------------
Changes (by ryandesign):

 * status:  new => assigned
 * owner:  (none) => usersxx
 * version:   => 2.8.1
 * keywords:  openjdk =>
 * port:   => openjdk11


Old description:

> 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 at 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 at 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
> }}}

New description:

 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 at 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 at 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
 }}}

--

Comment:

 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/66976#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list