[MacPorts] #55680: Trace mode fails when ccache is used

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #55680: Trace mode fails when ccache is used

MacPorts
#55680: Trace mode fails when ccache is used
------------------------+-------------------
 Reporter:  ryandesign  |      Owner:
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  base        |    Version:  2.4.2
 Keywords:              |       Port:
------------------------+-------------------
 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
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55680>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55680: Trace mode fails when ccache is used

MacPorts
#55680: Trace mode fails when ccache is used
-------------------------+-------------------
  Reporter:  ryandesign  |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.4.2
Resolution:              |   Keywords:
      Port:              |
-------------------------+-------------------

Comment (by raimue):

 I use the same, but I cannot reproduce the problem. The ccache port is
 [https://github.com/macports/macports-
 base/blob/9606edb0b27814d5eb31525806e3253aad62fffe/src/port1.0/portutil.tcl#L1450-L1453
 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`.

--
Ticket URL: <https://trac.macports.org/ticket/55680#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55680: Trace mode fails when ccache is used

MacPorts
In reply to this post by MacPorts
#55680: Trace mode fails when ccache is used
-------------------------+-------------------
  Reporter:  ryandesign  |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.4.2
Resolution:              |   Keywords:
      Port:              |
-------------------------+-------------------

Comment (by ryandesign):

 Any port, such as zlib.

--
Ticket URL: <https://trac.macports.org/ticket/55680#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55680: Trace mode fails when ccache is used

MacPorts
In reply to this post by MacPorts
#55680: Trace mode fails when ccache is used
-------------------------+-------------------
  Reporter:  ryandesign  |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.4.2
Resolution:              |   Keywords:
      Port:              |
-------------------------+-------------------

Comment (by ryandesign):

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

--
Ticket URL: <https://trac.macports.org/ticket/55680#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55680: Trace mode fails when ccache is used

MacPorts
In reply to this post by MacPorts
#55680: Trace mode fails when ccache is used
-------------------------+-------------------
  Reporter:  ryandesign  |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.4.2
Resolution:              |   Keywords:
      Port:              |
-------------------------+-------------------

Comment (by raimue):

 Proposed fix: https://github.com/macports/macports-base/pull/57

--
Ticket URL: <https://trac.macports.org/ticket/55680#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55680: Trace mode fails when ccache is used

MacPorts
In reply to this post by MacPorts
#55680: Trace mode fails when ccache is used
-------------------------+--------------------
  Reporter:  ryandesign  |      Owner:  raimue
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.4.2
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+--------------------
Changes (by raimue):

 * owner:   => raimue
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"64c60f29d85d6290913efb6dd1c718e9f5da811e/macports-base"
 64c60f29d85d6290913efb6dd1c718e9f5da811e/macports-base]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-base"
 revision="64c60f29d85d6290913efb6dd1c718e9f5da811e"
 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: https://trac.macports.org/ticket/55680
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55680#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55680: Trace mode fails when ccache is used

MacPorts
In reply to this post by MacPorts
#55680: Trace mode fails when ccache is used
-------------------------+-----------------------------
  Reporter:  ryandesign  |      Owner:  raimue
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts Future
 Component:  base        |    Version:  2.4.2
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+-----------------------------
Changes (by neverpanic):

 * milestone:   => MacPorts Future


--
Ticket URL: <https://trac.macports.org/ticket/55680#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55680: Trace mode fails when ccache is used

MacPorts
In reply to this post by MacPorts
#55680: Trace mode fails when ccache is used
-------------------------+----------------------------
  Reporter:  ryandesign  |      Owner:  raimue
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts 2.5.0
 Component:  base        |    Version:  2.4.2
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+----------------------------
Changes (by jmroot):

 * milestone:  MacPorts Future => MacPorts 2.5.0


--
Ticket URL: <https://trac.macports.org/ticket/55680#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55680: Trace mode fails when ccache is used

MacPorts
In reply to this post by MacPorts
#55680: Trace mode fails when ccache is used
-------------------------+----------------------------
  Reporter:  ryandesign  |      Owner:  raimue
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts 2.5.0
 Component:  base        |    Version:  2.4.2
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+----------------------------

Comment (by raimue):

 In [changeset:"217e1441e601573eb3e25656cdaf3c1ea2daa30f/macports-base"
 217e1441e601573eb3e25656cdaf3c1ea2daa30f/macports-base]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-base"
 revision="217e1441e601573eb3e25656cdaf3c1ea2daa30f"
 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: https://trac.macports.org/ticket/55680
 (cherry picked from commit 64c60f29d85d6290913efb6dd1c718e9f5da811e)
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55680#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55680: Trace mode fails when ccache is used

MacPorts
In reply to this post by MacPorts
#55680: Trace mode fails when ccache is used
-------------------------+----------------------------
  Reporter:  ryandesign  |      Owner:  raimue
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts 2.4.4
 Component:  base        |    Version:  2.4.2
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+----------------------------
Changes (by ryandesign):

 * milestone:  MacPorts 2.5.0 => MacPorts 2.4.4


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