Bug 197406

Summary: emulators/linux_base-c6: `expr` command fallback to FreeBSD expr
Product: Ports & Packages Reporter: lichray
Component: Individual Port(s)Assignee: freebsd-emulation (Nobody) <emulation>
Status: Closed FIXED    
Severity: Affects Only Me CC: dchagin, delphij, kib, tijl
Priority: --- Flags: bugzilla: maintainer-feedback? (emulation)
Version: Latest   
Hardware: Any   
OS: Any   

Description lichray 2015-02-08 06:25:30 UTC
`expr` is resolved to /bin/expr in FreeBSD, also in Linux emulation layer, but linux_base-c6 only has [/compat/linux]/usr/bin/expr installed, result in the FreeBSD version of `expr` being invoked.  Some software breaks.  Linking [/compat/linux]/usr/bin/expr to [/compat/linux]/bin/expr solves the problem.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-08 06:25:30 UTC
Auto-assigned to maintainer emulation@FreeBSD.org
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-02-08 10:34:42 UTC
A commit references this bug:

Author: tijl
Date: Sun Feb  8 10:34:15 UTC 2015
New revision: 378639
URL: https://svnweb.freebsd.org/changeset/ports/378639

Log:
  - White space fixes
  - Like r315899 did for linux_base-f10, add some symlinks to linux_base-c6
    for executables that exist in /usr/bin on Linux but /bin on FreeBSD.
    This guarantees that Linux shell scripts run the Linux executables and
    not the FreeBSD ones.

  PR:		197406

Changes:
  head/emulators/linux_base-c6/Makefile
  head/emulators/linux_base-c6/pkg-plist