Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#55680 closed defect (fixed)

Trace mode fails when ccache is used

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone: MacPorts 2.4.4
Component: base Version: 2.4.2
Keywords: Cc:
Port:

Description

I have configureccache yes in my macports.conf. If I try to build any port that honors that setting, the configure phase fails with:

ccache: command not found

Change History (11)

comment:1 Changed 7 years ago by raimue (Rainer Müller)

I use the same, but I cannot reproduce the problem. The ccache port is added automatically as a dependency for trace mdoe when it is enabled.

Which port did you try to build? Note configureccache is the name of the setting in macports.conf, but ports should use configure.ccache.

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Any port, such as zlib.

comment:3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Aha: it works if I use the ccache port. I was using the ccache-devel port.

comment:4 Changed 7 years ago by raimue (Rainer Müller)

comment:5 Changed 7 years ago by raimue (Rainer Müller)

Owner: set to raimue
Resolution: fixed
Status: newclosed

In 64c60f29d85d6290913efb6dd1c718e9f5da811e/macports-base:

Find port providing ccache binary for trace mode

Instead of assuming the ccache binary is provided by the ccache port,
query the registry which port provides ${prefix}/bin/ccache if it exists
and also include all dependencies.

Closes: #55680

comment:6 Changed 7 years ago by neverpanic (Clemens Lang)

Milestone: MacPorts Future

comment:7 Changed 7 years ago by neverpanic (Clemens Lang)

Milestone: MacPorts FutureMacPorts 2.5.0

comment:8 Changed 7 years ago by neverpanic (Clemens Lang)

Milestone: MacPorts 2.5.0MacPorts Future

comment:9 Changed 7 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.5.0

comment:10 Changed 7 years ago by raimue (Rainer Müller)

In 217e1441e601573eb3e25656cdaf3c1ea2daa30f/macports-base:

Find port providing ccache binary for trace mode

Instead of assuming the ccache binary is provided by the ccache port,
query the registry which port provides ${prefix}/bin/ccache if it exists
and also include all dependencies.

Closes: #55680
(cherry picked from commit 64c60f29d85d6290913efb6dd1c718e9f5da811e)

comment:11 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Milestone: MacPorts 2.5.0MacPorts 2.4.4
Note: See TracTickets for help on using tickets.