[MacPorts] #39197: New port: RStudio
#39197: New port: RStudio ---------------------------+-------------------------------- Reporter: kjell.konis@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: ---------------------------+-------------------------------- RStudio is a powerful IDE for R. Note that as part of the build process, RStudio downloads and installs 3 dependencies. I put this is the post-extract phase. The 3 pieces are (1) RStudio dictionaries (not sure about license) (2) GWT (Apache License 2.0) (3) Mathjax (Apache License 2.0) These are used in a way where it is not at all convenient to put them in separate (or even sub) ports. -- Ticket URL: <https://trac.macports.org/ticket/39197> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+-------------------------------- Reporter: kjell.konis@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Comment (by ryandesign@…): Some observations: * Line 2 should be "# $Id$" as usual. * You don't need to list "depends_build cmake"; the cmake portgroup does that for you. * Since you fetch from github, consider using the github portgroup. * The port appears to fetch the latest version from the git repository. It must instead fetch a specific commit that you've tested, so that the process is repeatable. Even better would be to fetch a git tag instead, which is what the github portgroup does by default. Perhaps "v0.98.133" which was created yesterday. Naturally your version number would change as well. So with the github portgroup, this would be "github.setup rstudio rstudio 0.98.133 v", and then remove the fetch.type and git.url, and add checksums. * Instead of "system 'cd … && …'" you should use "system -W … '…'" * I don't like the script that downloads and installs additional dependencies in post-extract, but I don't suppose I'd like it any better anywhere else either. One slight improvement might be if the scripts were patched to not download any files, and to instead list the files to be downloaded in the Portfile as usual with checksums. * The last line of the script is "sudo cp /etc/pam.d/ftpd /etc/pam.d/rstudio". Certainly MacPorts does not permit ports to touch files outside of ${workpath} except in the activate and deactivate phases. If MacPorts doesn't interrupt the install at this point, it will at least prevent action from having happened. So if this action is important to the port, you'll have to perform it in a post-activate block. However I would hope a port wouldn't put files in /etc; ${prefix}/etc would be more appropriate. -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+-------------------------------- Reporter: kjell.konis@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Comment (by kjell.konis@…): Thanks for the comments. I was able to take care of the first 5 without too much trouble. The 'sudo cp /etc/pam.d/ftpd /etc/pam.d/rstudio' should get commented out during the post-extract phase but it looks like the dependencies scrips are getting changed so whether that works depends on the specific tag (which makes your github suggestion even more useful). It turns out there is a download function in each of the dependency installer scripts. I'll see if I can patch those to just copy from distfiles. Anyway, I'll keep working on this but it might be a while. -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+-------------------------------- Reporter: kjell.konis@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Comment (by kjell.konis@…): Well, after a brief 4 month delay, I think I have addressed all of the bullet points. I couldn't get file downloads from multiple sites to work with the github portgroup but it looks like the only downside to not using that is a weirdly named worksrcdir. All downloads now occur during fetch and have checksums. -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+---------------------- Reporter: kjell.konis@… | Owner: larryv@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: RStudio | ----------------------------+---------------------- Changes (by larryv@…): * status: new => assigned * owner: macports-tickets@… => larryv@… * version: 2.1.3 => * port: => RStudio Comment: Sorry for the delay on this. I’ll take a look sometime this week. -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+---------------------- Reporter: kjell.konis@… | Owner: larryv@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: RStudio | ----------------------------+---------------------- Comment (by kjell.konis@…): Let me update the portfile to the current version of RStudio first. -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+---------------------- Reporter: kjell.konis@… | Owner: larryv@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: RStudio | ----------------------------+---------------------- Comment (by sean@…): Could we separate MathJax into its own port so that #39216 could use it as well? -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+---------------------- Reporter: kjell.konis@… | Owner: larryv@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: RStudio | ----------------------------+---------------------- Comment (by kjell.konis@…): Replying to [comment:7 sean@…]:
Could we separate MathJax into its own port so that #39216 could use it as well?
Sounds like a good idea to me. I wanted to get this port out the door quickly so I kinda hacked the RStudio build into MacPorts as quick as possible but it definitely makes sense to have the dependencies as separate (or sub) ports. -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+---------------------- Reporter: kjell.konis@… | Owner: larryv@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: RStudio | ----------------------------+---------------------- Comment (by kjell.konis@…): RStudio's reliance on Boost 1.50 (1.55 is current in Macports) is a showstopper. I'm not going to be able to move forward until I figure out a way to resolve this. -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+---------------------- Reporter: kjell.konis@… | Owner: larryv@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: RStudio | ----------------------------+---------------------- Comment (by sean@…): Replying to [comment:9 kjell.konis@…]:
RStudio's reliance on Boost 1.50 (1.55 is current in Macports) is a showstopper. I'm not going to be able to move forward until I figure out a way to resolve this.
Ouch. Well, we could at least get the mathjax and ipython ports updated. I don't know off the top of my head how to link to an external installation of mathjax for ipython nor for RStudio but can try if anyone can provide some pointers. -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+---------------------- Reporter: kjell.konis@… | Owner: larryv@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: RStudio | ----------------------------+---------------------- Comment (by howarth@…): On fink I got rstudio-0.98.826 to build against boost 1.55 with the following change gleaned from a Google search… {{{ --- rstudio-0.98.826/src/cpp/desktop-mac/MainFrameController.h.orig 2014-05-08 08:29:46.000000000 -0400 +++ rstudio-0.98.826/src/cpp/desktop-mac/MainFrameController.h 2014-05-08 08:31:28.000000000 -0400 @@ -13,6 +13,11 @@ * */ +#ifdef check +#undef check +#endif +#import "boost/type_traits.hpp" + #import "WebViewController.h" #import "MainFrameMenu.h" }}} -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+---------------------- Reporter: kjell.konis@… | Owner: larryv@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: RStudio | ----------------------------+---------------------- Comment (by kjell.konis@…): Thanks, this is really helpful. I'll see if I can get this working in mp this weekend. -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#39197: New port: RStudio ----------------------------+---------------------- Reporter: kjell.konis@… | Owner: larryv@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: RStudio | ----------------------------+---------------------- Comment (by kjell.konis@…): I had a chat with the RStudio developers and they told me they are sticking with Boost 1.50 and QT 4.8.0. Using the latest versions of these dependencies breaks things and they don't currently have the resources to deal with that. I think this port will have to be put on hold until RStudio can put some effort into portability. -- Ticket URL: <https://trac.macports.org/ticket/39197#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts