Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21495 - mtr installs in wrong location
Summary: mtr installs in wrong location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-22 14:24 UTC by Andrei Ivanov
Modified: 2003-06-05 16:31 UTC (History)
0 users

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 Andrei Ivanov 2003-05-22 14:24:22 UTC
>>> Completed installing into /var/tmp/portage/mtr-0.54/image/

>>> Merging net-analyzer/mtr-0.54 to /
--- /usr/
--- /usr/share/
--- /usr/share/man/
--- /usr/share/man/man8/
>>> /usr/share/man/man8/mtr.8.gz
--- /usr/share/doc/
>>> /usr/share/doc/mtr-0.54/
>>> /usr/share/doc/mtr-0.54/FORMATS.gz
>>> /usr/share/doc/mtr-0.54/TODO.gz
>>> /usr/share/doc/mtr-0.54/NEWS.gz
>>> /usr/share/doc/mtr-0.54/AUTHORS.gz
>>> /usr/share/doc/mtr-0.54/ChangeLog.gz
>>> /usr/share/doc/mtr-0.54/COPYING.gz
>>> /usr/share/doc/mtr-0.54/README.gz
>>> /usr/share/doc/mtr-0.54/SECURITY.gz
--- /var/
--- /var/tmp/
--- /var/tmp/portage/
--- /var/tmp/portage/mtr-0.54/
--- /var/tmp/portage/mtr-0.54/image/
--- /var/tmp/portage/mtr-0.54/image/usr/
>>> /var/tmp/portage/mtr-0.54/image/usr/bin/
>>> /var/tmp/portage/mtr-0.54/image/usr/bin/mtr

Is this strange or what ?
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-05-22 14:36:18 UTC
please paste 
#emerge info
Comment 2 Andrei Ivanov 2003-05-22 14:38:21 UTC
Portage 2.0.48 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.5.69-mm1 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS=" ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://ftp.easynet.nl/mirror/gentoo ftp://ftp.easynet.nl/mirror/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo "
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 3dnow avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts svga java guile X sdl gpm tcpd pam libwww ssl perl python imlib oggvorbis gtk qt kde motif opengl aalib acl acpi apache2 -apm curl dga esd gd gnome gnomedb gtk2 gtkhtml imap innodb lcms ldap maildir mozilla -mysql -nls odbc oss pic -postgres samba sasl slp -sse tiff xml"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage/"
FEATURES="sandbox ccache"
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-06-04 16:52:57 UTC
how about mtr-0.49-r1

does it the same ?
Comment 4 Steven Robertson 2003-06-05 15:58:38 UTC
The line 

        make DESTDIR=${D} sbindir=${D}/usr/bin install || die

should have the second ${D} removed.  With that, the file is src_install()ed into an image directory /within/ an image directory, meaning when it's un-sandboxed, it ends up in /var/tmp/portage/mtr-0.54/usr/bin/mtr.  Change the line in src_install() of the ebuild to 

        make DESTDIR=${D} sbindir=/usr/bin install || die

which will install the binary into the correct location.
Comment 5 Steven Robertson 2003-06-05 16:00:58 UTC
Forgive me if I didn't make this clear.  The offending line is in the net-analyser/mtr/mtr-0.54.ebuild file.  I reread my post after posting.  I'll try to check before hitting commit next time... :)
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-06-05 16:31:50 UTC
fixed in cvs & marked stable