From owner-svn-ports-all@freebsd.org Mon Apr 23 05:50:27 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02F42FBF2B8; Mon, 23 Apr 2018 05:50:27 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AAEB77EDAA; Mon, 23 Apr 2018 05:50:26 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A5E59200A8; Mon, 23 Apr 2018 05:50:26 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3N5oQRq061372; Mon, 23 Apr 2018 05:50:26 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3N5oQbl061370; Mon, 23 Apr 2018 05:50:26 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201804230550.w3N5oQbl061370@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Mon, 23 Apr 2018 05:50:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r468071 - head/devel/RStudio X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: head/devel/RStudio X-SVN-Commit-Revision: 468071 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2018 05:50:27 -0000 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 (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 +======================================================================