[MacPorts] #70586: ocaml-bigstringaf does not build if ocaml was built with ccache

MacPorts noreply at macports.org
Tue Aug 20 20:49:25 UTC 2024


#70586: ocaml-bigstringaf does not build if ocaml was built with ccache
---------------------------------------+--------------------
  Reporter:  barracuda156              |      Owner:  (none)
      Type:  defect                    |     Status:  new
  Priority:  Normal                    |  Milestone:
 Component:  ports                     |    Version:  2.10.1
Resolution:                            |   Keywords:
      Port:  ocaml-bigstringaf, ocaml  |
---------------------------------------+--------------------

Comment (by pguyot):

 The following seems to work:
 {{{
 if {${configure.ccache}} {
     post-configure {
         reinplace "s|=ccache |=|g" ${worksrcpath}/Makefile.config
     }
 }
 if {${configure.distcc}} {
     post-configure {
         reinplace "s|=distcc |=|g" ${worksrcpath}/Makefile.config
     }
 }
 }}}

 But why do we want to use ccache (or distcc) while building ocaml? Most of
 the time is spent compiling ocaml libraries...

 I would simply do:
 {{{
 configure.ccache    no
 configure.distcc    no
 }}}

 BTW, the problem is strictly related to ocaml being built with ccache.
 `ocaml-bigstringaf` compiles fine with ccache enabled as long as active
 ocaml was either built without ccache or with the modifications above.

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


More information about the macports-tickets mailing list