Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287934 - mpd.py missing in sys-cluster/mpich2-1.0.8; needed for mpdboot
Summary: mpd.py missing in sys-cluster/mpich2-1.0.8; needed for mpdboot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Justin Bronder (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 337125
Blocks:
  Show dependency tree
 
Reported: 2009-10-06 18:13 UTC by peyser.alex
Modified: 2010-11-29 16:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peyser.alex 2009-10-06 18:13:31 UTC
mpdboot has hardcoded mpd.py as the mpd program; but mpd.py is installed as mpd.

This is fixed in 1.1.1p1; but that's unstable (I have code that won't work with the latest, for example).

Reproducible: Always

Steps to Reproduce:
1. mpdboot -n 1
2. 
3.

Actual Results:  
"from mpd on x, invalid port info:"

Expected Results:  
mpd running

I've just added a link to /usr/bin/mpd.py from /usr/bin/mpd
Comment 1 Martin Mokrejš 2009-11-30 22:51:48 UTC
I have re-installe dmy server machine and placed it into amd64 stable (previously unstable). Hmm, have the same problem: mpdboot does not start and complains about "invalid port info". I have different conclusion:

From strace I gather:

# strace -v -f /usr/bin/mpdboot --file=/etc/mpd.hosts -n 33
[cut]
[pid 22360] execve("/usr/bin/mpdallexit.py", ["/usr/bin/mpdallexit.py"], ["MANPATH=/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share"..., "NCBI=/etc/ncbi", "MPD_CONF_FILE=@MPD_CONF_FILE_DIR@/mpd.conf", "SHELL=/bin/bash", "TERM=xterm", 
[cut]
"INFOPATH=/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:"..., "CONFIG_PROTECT=/var/spool/torque"]) = -1 ENOENT (No such file or directory)
[pid 22360] stat("/usr/bin/mpdallexit.py", 0x7fff295b1bf0) = -1 ENOENT (No such file or directory)
[pid 22360] stat("/usr/bin/mpdallexit.py", 0x7fff295b1be0) = -1 ENOENT (No such file or directory)
[pid 22360] fstat(2, {st_dev=makedev(0, 6), st_ino=19759, st_mode=S_IFIFO|0600, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=0, st_atime=2009/11/30-23:46:05, st_mtime=2009/11/30-23:46:05, st_ctime=2009/11/30-23:46:05}) = 0
[pid 22360] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbf7ecd2000
[pid 22360] write(2, "sh: /usr/bin/mpdallexit.py: No such file or directory\n"..., 54 <unfinished ...>
[pid 22355] <... read resumed> "sh: /usr/bin/mpdallexit.py: No such file or directory\n"..., 4096) = 54
[pid 22355] read(7,  <unfinished ...>
[pid 22360] <... write resumed> )       = 54
[pid 22360] exit_group(127)             = ?
Process 22359 resumed
Process 22360 detached

# equery belongs mpdallexit.py
[ Searching for file(s) mpdallexit.py in *... ]
sys-cluster/mpich2-1.0.8 (/usr/lib64/python2.6/site-packages/mpich2/mpdallexit.py)
#
# cd /usr/bin
# ls -la mpd*
lrwxrwxrwx 1 root root    46 Nov 30 22:54 mpd -> ../lib64/python2.6/site-packages/mpich2/mpd.py
lrwxrwxrwx 1 root root    53 Nov 30 22:54 mpdallexit -> ../lib64/python2.6/site-packages/mpich2/mpdallexit.py
lrwxrwxrwx 1 root root    50 Nov 30 22:54 mpdboot -> ../lib64/python2.6/site-packages/mpich2/mpdboot.py
lrwxrwxrwx 1 root root    51 Nov 30 22:54 mpdcheck -> ../lib64/python2.6/site-packages/mpich2/mpdcheck.py
lrwxrwxrwx 1 root root    53 Nov 30 22:54 mpdcleanup -> ../lib64/python2.6/site-packages/mpich2/mpdcleanup.py
lrwxrwxrwx 1 root root    50 Nov 30 22:54 mpdexit -> ../lib64/python2.6/site-packages/mpich2/mpdexit.py
lrwxrwxrwx 1 root root    52 Nov 30 22:54 mpdgdbdrv.py -> ../lib64/python2.6/site-packages/mpich2/mpdgdbdrv.py
lrwxrwxrwx 1 root root    50 Nov 30 22:54 mpdhelp -> ../lib64/python2.6/site-packages/mpich2/mpdhelp.py
lrwxrwxrwx 1 root root    53 Nov 30 22:54 mpdkilljob -> ../lib64/python2.6/site-packages/mpich2/mpdkilljob.py
lrwxrwxrwx 1 root root    54 Nov 30 22:54 mpdlistjobs -> ../lib64/python2.6/site-packages/mpich2/mpdlistjobs.py
lrwxrwxrwx 1 root root    54 Nov 30 22:54 mpdringtest -> ../lib64/python2.6/site-packages/mpich2/mpdringtest.py
-rws--x--x 1 root root 23008 Nov 30 22:54 mpdroot
lrwxrwxrwx 1 root root    50 Nov 30 22:54 mpdrun -> ../lib64/python2.6/site-packages/mpich2/mpiexec.py
lrwxrwxrwx 1 root root    50 Nov 30 22:54 mpdrun.py -> ../lib64/python2.6/site-packages/mpich2/mpiexec.py
lrwxrwxrwx 1 root root    52 Nov 30 22:54 mpdsigjob -> ../lib64/python2.6/site-packages/mpich2/mpdsigjob.py
lrwxrwxrwx 1 root root    51 Nov 30 22:54 mpdtrace -> ../lib64/python2.6/site-packages/mpich2/mpdtrace.py
#

I think I already posted once a bug like this (about the missing symlinks from /usr/bin). ;)
Comment 2 Justin Bronder (RETIRED) gentoo-dev 2010-11-29 16:15:57 UTC
The broken ebuild has been removed from the tree and mpich2-1.2.1_p1-r1 is stable and does not have this issue.

Thanks for reporting.