[MacPorts] #67288: R: many packages ask to link to Fortran libs, while having no Fortran code at all: keep that or patch out ldflags?

MacPorts noreply at macports.org
Sat Apr 22 14:26:25 UTC 2023


#67288: R: many packages ask to link to Fortran libs, while having no Fortran code
at all: keep that or patch out ldflags?
--------------------------+--------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.8.1
 Keywords:                |       Port:  R
--------------------------+--------------------
 Numerous `R` packages put FLIBS into PKG_LIBS in attached Makevars files,
 while having zero Fortran code (well, I did not read every line of code,
 admittedly, but no .f90 or whatsoever Fortran file formats, nothing is
 compiled with `gfortran` etc.). It is not a big deal to satisfy that
 requirement, of course, all it needs is `compilers.setup` in the portfile.
 However I am not sure if that is a desirable, after all. It is also
 possible to patch out FLIBS, at least when we notice that Fortran is not
 involved.

 Any opinions?

 (To be clear, I do not propose to do this as a once-for-all clean-up
 measure for 1500+ packages, it is unrealistic. But whenever it is relevant
 and feasible to do.)

-- 
Ticket URL: <https://trac.macports.org/ticket/67288>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list