Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Apr 2018 05:50:26 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r468071 - head/devel/RStudio
Message-ID:  <201804230550.w3N5oQbl061370@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Mon Apr 23 05:50:26 2018
New Revision: 468071
URL: https://svnweb.freebsd.org/changeset/ports/468071

Log:
  devel/RStudio: Add safeguards agaist running without /proc mounted
  
  Port changes:
  * Add check that /proc is mounted that fails when it is not
  * Add pkg-message warning users about the need to have /proc mounted
  * Fix typo in passing arguments in the shell script bin/rstudio
  
  Reported by:	Kostas Oikonomou <ko@research.att.com> (user)

Added:
  head/devel/RStudio/pkg-message   (contents, props changed)
Modified:
  head/devel/RStudio/Makefile

Modified: head/devel/RStudio/Makefile
==============================================================================
--- head/devel/RStudio/Makefile	Mon Apr 23 03:50:28 2018	(r468070)
+++ head/devel/RStudio/Makefile	Mon Apr 23 05:50:26 2018	(r468071)
@@ -6,6 +6,7 @@
 PORTNAME=	RStudio
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.1.447
+PORTREVISION=	1
 CATEGORIES=	devel math java
 MASTER_SITES=	https://s3.amazonaws.com/rstudio-dictionaries/:dictionaries \
 		https://s3.amazonaws.com/rstudio-buildtools/:buildtools
@@ -73,8 +74,14 @@ pre-build:
 
 post-install:
 	@(echo "#!/bin/sh"; \
+	  echo ""; \
+	  echo "if ! [ -d /proc/curproc ]; then"; \
+	  echo "  echo \"${PORTNAME} needs /proc to be mounted as procfs\" >&2"; \
+	  echo "  exit 1"; \
+	  echo "fi"; \
+	  echo ""; \
 	  echo "# workaround for the problem that RStudio passes /lib with LD_LIBRARY_PATH that causes the /lib/libgcc_s.so.1 conflict with gcc"; \
-	  echo "LD_PRELOAD=${PREFIX}/lib/gcc6/libgcc_s.so ${PREFIX}/lib/rstudio/bin/rstudio \"$@\"" \
+	  echo "LD_PRELOAD=${PREFIX}/lib/gcc6/libgcc_s.so ${PREFIX}/lib/rstudio/bin/rstudio \"$$@\"" \
 	) > ${STAGEDIR}${PREFIX}/bin/rstudio
 	@${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/rstudio
 	@${REINPLACE_CMD} -e 's|^Exec=.*/rstudio|Exec=${PREFIX}/bin/rstudio|' ${STAGEDIR}${PREFIX}/share/applications/rstudio.desktop

Added: head/devel/RStudio/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/RStudio/pkg-message	Mon Apr 23 05:50:26 2018	(r468071)
@@ -0,0 +1,11 @@
+======================================================================
+You installed RStudio: Integrated development environment (IDE) for R.
+
+Please note that RStudio requires /proc to be mounted.
+
+The usual way to do this is to add this line to /etc/fstab:
+proc /proc procfs rw 0 0
+
+and then run this command as root:
+# mount /proc
+======================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804230550.w3N5oQbl061370>