~ruther/guix-local

3945e556c73f1883f73bd476aa0e59d15869cb1d — Ricardo Wurmus 6 months ago 80804e1
gnu: r-rcppparallel: Patch TBB task.h.

Patching this file lets us compile downstream packages without errors.

* gnu/packages/cran.scm (r-rcppparallel)[arguments]: Add phase 'gcc-compatibility.

Change-Id: I966c09887f1536dcc623d322f6b141fad069e3dd
Signed-off-by: Simon Tournier <zimon.toutoune@gmail.com>
1 files changed, 9 insertions(+), 1 deletions(-)

M gnu/packages/cran.scm
M gnu/packages/cran.scm => gnu/packages/cran.scm +9 -1
@@ 29737,7 29737,15 @@ package provides a minimal R interface by relying on the Rcpp package.")
                  (lambda _
                    (display (string-append
                              "CXXFLAGS=-g -O2"
                              " -Wno-error=changes-meaning\n"))))))))))
                              " -Wno-error=changes-meaning\n")))))))
          ;; This change lets us use GCC 13+.  We need to patch things here so
          ;; that packages using RcppParallel to generate code can be compiled
          ;; without errors.
          (add-after 'install 'gcc-compatibility
            (lambda _
              (substitute* (string-append #$output "/site-library/RcppParallel/include/tbb/task.h")
                (("task\\* next_offloaded")
                 "tbb::task* next_offloaded")))))))
    (inputs (list tbb-2020))
    (native-inputs (list r-rcpp r-runit))
    (home-page "https://rcppcore.github.io/RcppParallel/")