[MacPorts] #46857: update rNMR to 1.1.8 using new xvfb-run port and xvfb subport as well as return to ${prefix}/lib/R/library
#46857: update rNMR to 1.1.8 using new xvfb-run port and xvfb subport as well as return to ${prefix}/lib/R/library -----------------------------------+-------------------------------- Reporter: howarth.at.macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: rNMR -----------------------------------+-------------------------------- The attached Portfile diff relies on the following tickets... 1) Ticket #46849 which restores the ability of the R package to find R packages placed in ${prefix}/lib/R/library 2) Ticket #46842 which adds the new xvfb-run package which provides the Debian xvfb-run utility. 3) Ticket #46856 which adds the new xvfb subport to the xorg-server package which the new xvfb-run package depends_run on. The new rNMR Portfile.diff implements the following changes... a) Moves the location of the installed rNMR R package back to its previous location in ${prefix}/lib/R/library. b) Adds the missing "require_active_variants tk x11" as the rNMR package requires a tk to use X11. c) Updates the rNMR package to the 1.1.8 release. d) passes the "${prefix}/bin/R CMD INSTALL -l pkg --byte-compile --build ${distpath}/[lindex ${distfiles} 0]" command through "`which xvfb-run`" to avoid build failures due to the use of X11 in newer version of rNMR.r. -- Ticket URL: <https://trac.macports.org/ticket/46857> MacPorts <https://www.macports.org/> Ports system for OS X
#46857: update rNMR to 1.1.8 using new xvfb-run port and xvfb subport as well as return to ${prefix}/lib/R/library ------------------------------------+-------------------------------- Reporter: howarth.at.macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: rNMR | ------------------------------------+-------------------------------- Comment (by jeremyhu@…):
system -W ${worksrcpath} "`which xvfb-run` ${prefix}/bin/R CMD INSTALL -l pkg --byte-compile --build ${distpath}/[lindex ${distfiles} 0]"
No, let's not run an X11 server for the sake of installing a port. Can't you fix R to not try to use the X11 server if it isn't going to be rendering anything? -- Ticket URL: <https://trac.macports.org/ticket/46857#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#46857: update rNMR to 1.1.8 using new xvfb-run port and xvfb subport as well as return to ${prefix}/lib/R/library ------------------------------------+-------------------------------- Reporter: howarth.at.macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: rNMR | ------------------------------------+-------------------------------- Comment (by howarth.at.macports@…): There doesn't appear to be any way around this should of using Xvfb. The error occurs at... {{{ * installing *source* package ‘rNMR’ ... ** R ** inst ** preparing package for lazy loading Warning in fun(libname, pkgname) : couldn't connect to display "/private/tmp/com.apple.launchd.wGXyLuKQtG/org.macosforge.xquartz:0" Warning in X11(title = "Main Plot Window", width = defaultSettings$size.main[1], : unable to open connection to X11 display '' Error in .External2(C_X11, d$display, d$width, d$height, d$pointsize, : unable to start device X11 Error : unable to load R code in package ‘rNMR’ ERROR: lazy loading failed for package ‘rNMR’ }}} and R has made lazy-loading mandatory for R CMD Install for some time now. http://r.789695.n4.nabble.com/disable-lazy-loading-in-install-packages- td795231.html -- Ticket URL: <https://trac.macports.org/ticket/46857#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts