[MacPorts] #74393: openjdk25 @25.0.4.1 Build fails with ccache configured

MacPorts noreply at macports.org
Sun Sep 13 01:32:56 UTC 2026


#74393: openjdk25 @25.0.4.1 Build fails with ccache configured
------------------------+----------------------
  Reporter:  McDaMastR  |      Owner:  breun
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.12.6
Resolution:             |   Keywords:
      Port:  openjdk25  |
------------------------+----------------------

Comment (by McDaMastR):

 Replying to [comment:2 McDaMastR]:
 > Replying to [comment:1 breun]:
 > > {{{
 > > if {[option configure.ccache]} {
 > >     # replace MacPorts ccache integration into JDK
 > >     configure.ccache        no
 > >     depends_build-append    path:bin/ccache:ccache
 > >     configure.args-append   --enable-ccache \
 > >                             --with-ccache-dir=${ccache_dir}
 > > }
 > > }}}
 >
 > I know I have `ccache_dir` configured as the default, namely
 `${portdbpath}/build/.ccache` or (expanded)
 `/opt/local/var/macports/build/.ccache`.  Could it be that because this
 directory is outside `${worksrcpath}`, the build did not have permission
 to access `${ccache_dir}` directly?  I'll try to test this when I have
 time.

 I've now tested replacing `${ccache_dir}` with `${worksrcpath}/.ccache` in
 the above section of the Portfile.  And with ccache configured, the
 building and installation of the port is now successful.  So I think the
 issue was indeed that access to `${ccache_dir}` is not permitted due to
 being outside of `${worksrcpath}`.

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


More information about the macports-tickets mailing list