Bug 197406 - emulators/linux_base-c6: `expr` command fallback to FreeBSD expr
Summary: emulators/linux_base-c6: `expr` command fallback to FreeBSD expr
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: freebsd-emulation (Nobody)
Depends on:
Reported: 2015-02-08 06:25 UTC by lichray
Modified: 2015-02-08 10:38 UTC (History)
4 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
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 2015-02-08 06:25:30 UTC
Auto-assigned to maintainer emulation@FreeBSD.org
Comment 2 commit-hook freebsd_committer 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

  - 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