[MacPorts] #66012: Can we use legacysupport with R packages?

MacPorts noreply at macports.org
Mon Oct 17 03:11:58 UTC 2022


#66012: Can we use legacysupport with R packages?
--------------------------+------------------------
 Reporter:  barracuda156  |      Owner:  i0ntempest
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.7.2
 Keywords:                |       Port:  R
--------------------------+------------------------
 Trying to build `vroom` package fails on 10.5.8:
 {{{
 * installing *source* package ‘vroom’ ...
 ** package ‘vroom’ successfully unpacked and MD5 sums checked
 ** using staged installation
 ** libs
 /opt/local/bin/g++-mp-11 -std=gnu++11
 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG
 -Imio/include -DWIN32_LEAN_AND_MEAN -Ispdlog/include -DFMT_HEADER_ONLY
 -I'/Users/svacchanda/Library/R/Power Macintosh/4.2/library/cpp11/include'
 -I'/Users/svacchanda/Library/R/Power
 Macintosh/4.2/library/progress/include'
 -I'/Users/svacchanda/Library/R/Power Macintosh/4.2/library/tzdb/include'
 -I/opt/local/include   -fPIC  -pipe -Os -arch ppc  -c Iconv.cpp -o Iconv.o
 Iconv.cpp: In function 'SEXPREC* safeMakeChar(const char*, size_t, bool)':
 Iconv.cpp:70:23: error: 'strnlen' was not declared in this scope; did you
 mean 'strlen'?
    70 | #define readr_strnlen strnlen
       |                       ^~~~~~~
 Iconv.cpp:76:24: note: in expansion of macro 'readr_strnlen'
    76 |   size_t m = hasNull ? readr_strnlen(start, n) : n;
       |                        ^~~~~~~~~~~~~
 make: *** [Iconv.o] Error 1
 ERROR: compilation failed for package ‘vroom’
 }}}

 However `legacysupport` PG has this definition. Can we set it to be used
 with R packages?

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


More information about the macports-tickets mailing list