Bug 252024 - devel/emscripten: symlinked executables in /usr/local/bin don't work with generic runner script
Summary: devel/emscripten: symlinked executables in /usr/local/bin don't work with gen...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-21 17:34 UTC by Nick Briggs
Modified: 2020-12-21 19:41 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 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