emerge file-3.41 creates following wrong directories and installs files too in those directories: >>> Merging sys-apps/file-3.41 to / --- /usr/ --- /usr/share/ --- /usr/share/doc/ >>> /usr/share/doc/file-3.41/ >>> /usr/share/doc/file-3.41/README.gz >>> /usr/share/doc/file-3.41/LEGAL.NOTICE.gz >>> /usr/share/doc/file-3.41/MAINT.gz --- /usr/share/man/ --- /usr/share/man/man1/ >>> /usr/share/man/man1/file.1.gz --- /usr/share/man/man4/ >>> /usr/share/man/man4/magic.4.gz --- /usr/share/man/man5/ >>> /--dat/ >>> /--dat/usr/ >>> /--dat/usr/share/ >>> /--dat/usr/share/misc/ >>> /--dat/usr/share/misc/magic.mime >>> /--dat/usr/share/misc/magic.mime.mgc >>> /--dat/usr/share/misc/magic >>> /--dat/usr/share/misc/magic.mgc >>> /--prefix/ >>> /--prefix/usr/ >>> /--prefix/usr/bin/ >>> /--prefix/usr/bin/file >>> Regenerating /etc/ld.so.cache... >>> sys-apps/file-3.41 merged. Reproducible: Always Steps to Reproduce: 1.emerge file Actual Results: creates directories in the wrong place. Expected Results: should just copy files into directories without --prefix and --dat in the beginning of path. Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-gentoo-r10 i686 AMD Duron(tm) processor GENTOO_MIRRORS="ftp://ftp.gentoo.linux.no/pub/gentoo http://www.ibiblio.org/pub/Linux/distributions/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 oss 3dnow apm avi crypt cups encode gif jpeg kde libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime truetype xml2 xmms xv zlib gdbm berkdb slang readline guile X sdl gpm tcpd pam libwww ssl python imlib oggvorbis gtk qt motif opengl gnome -alsa -arts -svga -spell apache2 cdr esd flash imap java lcms ldap mbox mozilla mysql perl ruby samba sasl sse tcltk tiff" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -Wno-deprecated" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
which version of autoconf and automake do you use ? ebuild is good and installs it here in the right place do you see any warning or error messages during emerge ?
Created attachment 9230 [details] output of "emerge file" I use following versions: autoconf 2.54 automake 1.63
I tried to configure and compile it manually and found that configure creates invalid makefile. SHELL = /bin/sh srcdir = . top_srcdir = . prefix = --prefix/usr exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/file pkglibdir = $(libdir)/file pkgincludedir = $(includedir)/file top_builddir = .
Closing since latest stable release is 4.02. Please re-open if you still have problems with this in newer ebuilds.