Created attachment 173723 [details] Fix Uses/cran.mk when compiles ARG specified After r419666 USE_GCC is conditionally set in math/R/compiler.mk, however USE_GCC was bringing in the dependency on gfortran. Fix this by including Uses/fortran.mk when USES=cran:compiles. Also, while in the neighborhood, also strip any libraries installed when compiling.
Assign to owner. CC maintainer of R.
I think I would prefer if you used "-exec ${STRIP_CMD} {} +" instead of xargs. Also, to include another USES, you need to do: .include "${USESDIR}/foo.mk"
Created attachment 173741 [details] Update patch per mat's recommendations
(In reply to David Naylor from comment #3) Please go ahead ! wen
A commit references this bug: Author: dbn Date: Wed Aug 17 15:42:24 UTC 2016 New revision: 420356 URL: https://svnweb.freebsd.org/changeset/ports/420356 Log: Mk/Uses/cran.mk: fix 'compiles' argument. Due to the change in r419666 USE_GCC is not conditionally set, however it was bringing in the dependencies for fortran (silently). Explicitly bring in the dependencies for fortran. Also, add a target to strip the compiled shared library. PR: 211891 Reviewed by: mat Approved by: wen Changes: head/Mk/Uses/cran.mk
"Due to the change in r419666 USE_GCC is not conditionally set..." The change in r419666 was the opposite. That is, to *conditionally* set USE_GCC=yes only for older OS versions. I'm guessing the "not" was inadvertently added since the problem was (1) correctly described in the first comment and (2) properly addressed.
Thanks for catching that. I've issued a correction on the mailing list.