<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>98038</bug_id>
          
          <creation_ts>2005-07-05 11:56 0000</creation_ts>
          <short_desc>paths in scripts for mpich-1.2.6* point to /var/tmp/portage/mpich*</short_desc>
          <delta_ts>2005-09-05 06:49:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>hoozh@ksu.edu</reporter>
          <assigned_to>hp-cluster@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>hoozh@ksu.edu</who>
            <bug_when>2005-07-05 11:56:51 0000</bug_when>
            <thetext>Ebuilds for sys-cluster/mpich-1.2.6* produce scripts in /usr/bin that have bad
paths in them.  Examples are seen below:

[root@talon]:{hoozh}# grep -I portage/mpich /usr/bin/*
/usr/bin/clog2TOslog2:GUI_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/clog2print:GUI_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/clogTOslog2:GUI_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/clogprint:GUI_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/jumpshot:GUI_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/logconvertor:GUI_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/mpicxx:prefix=/var/tmp/portage/mpich-1.2.6-r1/image//usr
/usr/bin/mpicxx:includedir=/var/tmp/portage/mpich-1.2.6-r1/image//usr/include
/usr/bin/mpicxx:libdir=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/mpicxx:sharedlibdir=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib/shared
/usr/bin/mpireconfig:top_srcdir=/var/tmp/portage/mpich-1.2.6-r1/work/mpich-1.2.6
/usr/bin/mpireconfig.dat:srcdir=&apos;/var/tmp/portage/mpich-1.2.6-r1/work/mpich-1.2.6&apos;
/usr/bin/mpireconfig.dat:top_srcdir=&apos;/var/tmp/portage/mpich-1.2.6-r1/work/mpich-1.2.6&apos;
/usr/bin/mpireconfig.dat:builddir=&apos;/var/tmp/portage/mpich-1.2.6-r1/work/mpich-1.2.6&apos;
/usr/bin/mpireconfig.dat:libbuild_dir=&apos;/var/tmp/portage/mpich-1.2.6-r1/work/mpich-1.2.6/lib&apos;
/usr/bin/mpireconfig.dat:binbuild_dir=&apos;/var/tmp/portage/mpich-1.2.6-r1/work/mpich-1.2.6/bin&apos;
/usr/bin/mpireconfig.dat:includebuild_dir=&apos;/var/tmp/portage/mpich-1.2.6-r1/work/mpich-1.2.6/include&apos;
/usr/bin/mpireconfig.dat:mpich_includes=&apos;-I/var/tmp/portage/mpich-1.2.6-r1/work/mpich-1.2.6/include
-I/var/tmp/portage/mpich-1.2.6-r1/work/mpich-1.2.6/include
-I/var/tmp/portage/mpich-1.2.6-r1/work/mpich-1.2.6/mpid/ch_p4
-I/var/tmp/portage/mpich-1.2.6-r1/work/mpich-1.2.6/mpid/util&apos;
/usr/bin/rlogTOslog2:TRACE_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/rlogTOslog2:GUI_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/rlogprint:TRACE_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/rlogprint:GUI_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/slog2navigator:GUI_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib
/usr/bin/slog2print:GUI_LIBDIR=/var/tmp/portage/mpich-1.2.6-r1/image//usr/lib


Reproducible: Always
Steps to Reproduce:
1. emerge =mpich-1.2.6*
2. grep -I portage/mpich /usr/bin/*



[root@talon]:{mpich}# emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1,
2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.4.1,dev-lang/python-2.3.5 [2.4.1 (#1, May
19 2005, 17:21:54)]
distcc[27225] (dcc_mkdir) ERROR: mkdir /home/ugrads/hoozh/.distcc/state failed:
Permission denied [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4.1, 2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.5, 1.5, 1.8.5-r3, 1.7.9-r1, 1.6.3, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r10, 2.15.90.0.1.1-r4
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -march=i686 -funroll-loops -fomit-frame-pointer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -march=i686 -funroll-loops -fomit-frame-pointer -pipe&quot;
DISTDIR=&quot;/common/admin/linux/gentoo/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig candy ccache distcc distlocks sandbox sfperms
strict test&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://mirror.clarkson.edu/pub/distributions/gentoo/
http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo&quot;
LINGUAS=&quot;en da fr de hi ja ru es&quot;
MAKEOPTS=&quot;-j20&quot;
PKGDIR=&quot;/usr/portage/packages/i686-lab&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage-cis&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 X Xaw3d aalib accessibility afs aim alsa apache2 apm arts avi berkdb
bidi bitmap-fonts bonobo canna cdr cjk crypt cscope curl dga directfb doc dvd
eds emacs emboss encode esd evo f77 fam fbcon fftw flac foomaticdb fortran
freewnn gb gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile icq
imagemagick imap imlib jabber java jikes jpeg junit kde kerberos krb4 ldap leim
libg++ libgda libwww mad maildir mcal mikmod motif mozilla mp3 mpeg mpi msn mule
multislot ncurses nls objc odbc ogg oggvorbis opengl oscar oss pam pdflib perl
plotutils png python qt quicktime readline samba sdl slang snmp spell sqlite ssl
svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb
vorbis wmf workstation xine xml xml2 xmms xv yahoo zlib linguas_en linguas_da
linguas_fr linguas_de linguas_hi linguas_ja linguas_ru linguas_es userland_GNU
kernel_linux elibc_glibc&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hoozh@ksu.edu</who>
            <bug_when>2005-07-08 08:40:58 0000</bug_when>
            <thetext>Created an attachment (id=62938)
changes to 1.2.6-r2 ebuild which fixed all but the srcdir references

I ended up just adding extra dosed lines to the mpich-1.2.6-r2 ebuild to catch
the files which had references to the ${D} dir.  This leaves a few paths to
/var/tmp/portage/mpich-1.2.6-r2/work, but my user who reported mpicxx being
broken said that everything works for him now.

I&apos;m not sure if this is the Right way to fix things, but I thought I&apos;d submit
something that worked for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mmokrejs@ribosome.natur.cuni.cz</who>
            <bug_when>2005-08-21 03:33:55 0000</bug_when>
            <thetext>The fix is still not commited, right?
[cut]
+ for dir in &apos;$dirlist&apos;
+ echo &apos;if [ -d /var/tmp/portage/mpich-1.2.6-r2/image//usr/lib ] ; then rmdir
/var/tmp/portage/mpich-1.2.6-r2/image//usr/lib ; fi&apos;
+ echo installed MPICH in /var/tmp/portage/mpich-1.2.6-r2/image//usr
installed MPICH in /var/tmp/portage/mpich-1.2.6-r2/image//usr
+ echo /var/tmp/portage/mpich-1.2.6-r2/image//usr/sbin/mpiuninstall may be used
to remove the installation.
/var/tmp/portage/mpich-1.2.6-r2/image//usr/sbin/mpiuninstall may be used to
remove the installation.
+ &apos;[&apos; 0 -gt 0 &apos;]&apos;
+ rc=0
+ exit 0
mv: cannot stat `/var/tmp/portage/mpich-1.2.6-r2/image//usr/share/jumpshot-3&apos;:
No such file or directory
mv: cannot stat `/var/tmp/portage/mpich-1.2.6-r2/image//usr/share/upshot&apos;: No
such file or directory
man:
gzipping man page: Jumpshots.1
gzipping man page: MPI.1
gzipping man page: chp4_servs.1
gzipping man page: cleanipcs.1
[cut]

sys-cluster/mpich-1.2.6-r2</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tantive@gentoo.org</who>
            <bug_when>2005-09-05 06:49:59 0000</bug_when>
            <thetext>In cvs. mpich-1.2.6-r3 has the proposed patches.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>62938</attachid>
            <date>2005-07-08 08:40 0000</date>
            <desc>changes to 1.2.6-r2 ebuild which fixed all but the srcdir references</desc>
            <filename>mpich-1.2.6-r2.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">MTA5YTExMCwxMTIKPiAJZG9zZWQgL3Vzci9iaW4vY2xvZzJUT3Nsb2cyIC91c3IvYmluL2Nsb2cy
cHJpbnQKPiAJZG9zZWQgL3Vzci9iaW4vY2xvZ1RPc2xvZzIgL3Vzci9iaW4vY2xvZ3ByaW50Cj4g
CWRvc2VkIC91c3IvYmluL2p1bXBzaG90IC91c3IvYmluL2xvZ2NvbnZlcnRvcgoxMTBhMTE0Cj4g
CWRvc2VkIC91c3IvYmluL21waWN4eAoxMTJhMTE3LDExOAo+IAlkb3NlZCAvdXNyL2Jpbi9ybG9n
VE9zbG9nMiAvdXNyL2Jpbi9ybG9ncHJpbnQKPiAJZG9zZWQgL3Vzci9iaW4vc2xvZzJuYXZpZ2F0
b3IgL3Vzci9iaW4vc2xvZzJwcmludAo=
</data>        

          </attachment>
    </bug>

</bugzilla>