Bug 232923

Summary: devel/RStudio: fails to start after GCC upgrade
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: regression
Priority: --- Flags: bugzilla: maintainer-feedback? (yuri)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 222542    

Description Jan Beich freebsd_committer freebsd_triage 2018-11-03 04:45:01 UTC
$ rstudio
Cannot open "/usr/local/lib/gcc6/libgcc_s.so"

$ sed -n \$p $(which rstudio)
LD_PRELOAD=/usr/local/lib/gcc6/libgcc_s.so /usr/local/lib/rstudio/bin/rstudio ""

There 2 issues:
- Doesn't respect GCC version used by USES=fortran which already embeds RPATH
- Loses additional arguments as $@ is gone after substitution

I've tried invoking /usr/local/lib/rstudio/bin/rstudio directly in otherwise pristine 11.2 amd64 jail and rstudio starts fine.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2018-11-03 06:04:15 UTC
Fixed, thanks for reporting this.
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-11-03 06:04:57 UTC
A commit references this bug:

Author: yuri
Date: Sat Nov  3 06:04:08 UTC 2018
New revision: 483877
URL: https://svnweb.freebsd.org/changeset/ports/483877

Log:
  devel/RStudio: Fix the gcc version in LD_PRELOAD to be based on GCC_DEFAULT

  PR:		232923
  Reported by:	jbeich

Changes:
  head/devel/RStudio/Makefile