Bug 252024

Summary: devel/emscripten: symlinked executables in /usr/local/bin don't work with generic runner script
Product: Ports & Packages Reporter: Nick Briggs <nicholas.h.briggs>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Closed FIXED    
Severity: Affects Many People Flags: bugzilla: maintainer-feedback? (yuri)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Nick Briggs 2020-12-21 17:34:50 UTC
emscripten-2.0.3, as installed from the pkg repository links various emscripten /usr/local/bin executables to their corresponding name in ../lib/emscripten/ which are all created from boilerplate that ends with

exec "$PYTHON" "$0.py" "$@"

so, if you execute the /usr/local/bin/ version of the file, it produces, for example:

/usr/local/bin/python3: can't open file '/usr/local/bin/emcc.py': [Errno 2] No such file or directory
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2020-12-21 19:36:27 UTC
Fixed.

Thanks for reporting.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-12-21 19:37:14 UTC
A commit references this bug:

Author: yuri
Date: Mon Dec 21 19:36:13 UTC 2020
New revision: 558854
URL: https://svnweb.freebsd.org/changeset/ports/558854

Log:
  devel/emscripten: Fix the problem with paths in symlinked executables

  PR:		252024
  Reported by:	Nick Briggs <nicholas.h.briggs@gmail.com>

Changes:
  head/devel/emscripten/Makefile
  head/devel/emscripten/distinfo
  head/devel/emscripten/pkg-plist
Comment 3 commit-hook freebsd_committer freebsd_triage 2020-12-21 19:41:16 UTC
A commit references this bug:

Author: yuri
Date: Mon Dec 21 19:41:06 UTC 2020
New revision: 558855
URL: https://svnweb.freebsd.org/changeset/ports/558855

Log:
  MFH: r558854

  devel/emscripten: Fix the problem with paths in symlinked executables

  PR:		252024
  Reported by:	Nick Briggs <nicholas.h.briggs@gmail.com>

Changes:
_U  branches/2020Q4/
  branches/2020Q4/devel/emscripten/Makefile
  branches/2020Q4/devel/emscripten/distinfo
  branches/2020Q4/devel/emscripten/pkg-plist