Summary: | net/mpich2: Doesn't look for the installed /usr/local/etc/mpd.conf | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Yuri Victorovich <yuri> |
Component: | Individual Port(s) | Assignee: | Thierry Thomas <thierry> |
Status: | Open --- | ||
Severity: | Affects Only Me | CC: | w.schwarzenfeld, yuri |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(thierry) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
It should either look for /home/{user}/.mpd.conf and /usr/local/etc/mpd.conf, or only for /usr/local/etc/mpd.conf, but not just for /home/{user}/.mpd.conf. Are you sure? According to the comments in src/pm/mpd/mpdroot.c: /* * We look for a readable mpd.conf in the following order. * - MPD_CONF_FILE set in environment * - .mpd.conf in the user's home directory * - The system wide default in SYSCONFDIR/mpd.conf */ (In reply to Thierry Thomas from comment #2) Ok, then it should follow this order, but the last step (SYSCONFDIR/mpd.conf) obviously isn't followed, or SYSCONFDIR is mismatching or not set. (Sorry for the delay...) I tested it on 2 different machines, and I cannot see the problem. Could you please run `make configure' and then attach the file /usr/ports/net/mpich2/work/mpich2-1.5/src/pm/mpd/Makefile ? It should contain a line beginning with: sysconfdir = ${prefix}/etc Could you please also attach the installed file /usr/local/bin/mpdlib.py ? It should contain the lines: elif hasattr(os,'getuid') and os.getuid() == 0: # if ROOT parmsRCFilename = os.path.abspath('/usr/local/etc/mpd.conf') Thanks! Yuri, is this still relevant? (In reply to Walter Schwarzenfeld from comment #5) I'll retest once I get a chance. |
mpirun command doesn't find mpd.conf by default: > printf "Hello worldktrace -di mpirun -np 4 prinf "Hello worldktrace -di mpirun -np 4 ls"" > unable to find mpd.conf file Based on the ktrace log it only looks for /home/{user}/.mpd.conf and then fails, while the mpd.conf file /usr/local/etc/mpd.conf is installed (with a sample). Could you please change the behavior and make it look for the installed /usr/local/etc/mpd.conf by default? Thanks!