[MacPorts] #41179: wemux @2.2.0_0 points to file in /etc instead of ${prefix}/etc
#41179: wemux @2.2.0_0 points to file in /etc instead of ${prefix}/etc ---------------------+-------------------------------- Reporter: nando@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: wemux ---------------------+-------------------------------- After a freshly-installed wemux, I copied the sample config at '/opt/local/etc/wemux.conf.example' to '/opt/local/etc/wemux.conf' with a modified 'host_list' including my login name. However, I still couldn't start the server as an unprivileged user. It works OK with 'sudo' though. A 'sudo dtruss wemux start' gives the following relevant info: {{{ ... read(0xFF, "# Set $EDITOR default to vi if not configured on host machine.\neditor=${EDITOR:=\"vi\"}\n\n# Load configuration options from /etc/wemux.conf\n[ -f /etc/wemux.conf ] && . /etc/wemux.conf\n\n# Sanitize session name, replace spaces and underscores with dashes.\n# Rem", 0x2000) = 8192 0 sigprocmask(0x1, 0x0, 0x7FFF53F80900) = 0x0 0 ... stat64("/etc/wemux.conf\0", 0x7FFF53F7FF80, 0x10BCC49EC) = -1 Err#2 ... }}} Then I moved the file to /etc and there was no problem with wemux. So, shouldn't the config file be read from '${prefix}/etc' instead of '/etc' ? -- My '/opt/local/etc/macports/macports.conf' prefix var points to '/opt/local' btw. Thanks in advance, //nando -- Ticket URL: <https://trac.macports.org/ticket/41179> MacPorts <http://www.macports.org/> Ports system for OS X
#41179: wemux @2.2.0_0 points to file in /etc instead of ${prefix}/etc ----------------------+-------------------- Reporter: nando@… | Owner: g5pw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: wemux | ----------------------+-------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => g5pw@… -- Ticket URL: <https://trac.macports.org/ticket/41179#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41179: wemux @2.2.0_0 points to file in /etc instead of ${prefix}/etc ----------------------+-------------------- Reporter: nando@… | Owner: g5pw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: wemux | ----------------------+-------------------- Comment (by nando@…): Hi again, Apparently, the script '/opt/local/bin/wemux' is to be blamed: {{{ 63. # Load configuration options from /etc/wemux.conf 64. [ -f /etc/wemux.conf ] && . /etc/wemux.conf }}} -- Ticket URL: <https://trac.macports.org/ticket/41179#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#41179: wemux @2.2.0_0 points to file in /etc instead of ${prefix}/etc ----------------------+-------------------- Reporter: nando@… | Owner: g5pw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: wemux | ----------------------+-------------------- Comment (by g5pw@…): Thanks, I'll investigate and fix it this week. -- Ticket URL: <https://trac.macports.org/ticket/41179#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#41179: wemux @2.2.0_0 points to file in /etc instead of ${prefix}/etc ----------------------+-------------------- Reporter: nando@… | Owner: g5pw@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: wemux | ----------------------+-------------------- Changes (by g5pw@…): * status: new => closed * resolution: => fixed Comment: Fixed in r112990, thanks. -- Ticket URL: <https://trac.macports.org/ticket/41179#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts