Bug 232923 - devel/RStudio: fails to start after GCC upgrade
Summary: devel/RStudio: fails to start after GCC upgrade
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords: regression
Depends on:
Blocks: 222542
  Show dependency treegraph
 
Reported: 2018-11-03 04:45 UTC by Jan Beich
Modified: 2018-11-03 06:04 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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